Skip to content

Commit

Permalink
Added a logo and fixed old revision layout. Fixes BookStackApp#16.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddanbrown committed Oct 1, 2015
1 parent 144eb69 commit 3aaab23
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 14 deletions.
1 change: 0 additions & 1 deletion public/bookstack.svg

This file was deleted.

Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 17 additions & 9 deletions resources/assets/sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ form.search-box {
text-align: left;
input {
background-color: transparent;
border-radius: 0;
border: none;
border-bottom: 2px solid #EEE;
border-radius: 24px;
border: 2px solid #EEE;
color: #EEE;
padding-left: $-m;
padding-right: $-l;
outline: 0;
}
button {
vertical-align: top;
margin-left: -$-l;
color: #FFF;
top: 0;
right: 0;
top: 6px;
right: 4px;
display: inline-block;
position: absolute;
&:hover {
Expand All @@ -75,17 +75,25 @@ form.search-box {
}

.logo {
display: inline-block;
&:hover {
color: #FFF;
text-decoration: none;
}
}
.logo-text {
display: inline-block;
font-size: 1.8em;
color: #fff;
font-weight: 400;
padding: $-l $-l $-l 0;
vertical-align: top;
line-height: 1;
&:hover {
color: #FFF;
text-decoration: none;
}
}
.logo-image {
padding: $-m $-s $-m 0;
vertical-align: top;
height: 75px;
}

.dropdown-container {
Expand Down
5 changes: 4 additions & 1 deletion resources/views/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-3">
<a href="/" class="logo">{{ Setting::get('app-name', 'BookStack') }}</a>
<a href="/" class="logo">
<img class="logo-image" src="/logo.png" alt="Logo">
<span class="logo-text">{{ Setting::get('app-name', 'BookStack') }}</span>
</a>
</div>
<div class="col-md-4 col-sm-3 text-center">
<form action="/search/all" method="GET" class="search-box">
Expand Down
13 changes: 11 additions & 2 deletions resources/views/pages/revision.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@

@section('content')

<div class="page-content">
@include('pages/page-display')

<div class="container">
<div class="row">
<div class="col-md-9">
<div class="page-content anim fadeIn">
@include('pages/page-display')
</div>
</div>
</div>
</div>



<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/solarized_light.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
<script>
Expand Down
6 changes: 5 additions & 1 deletion resources/views/public.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
<div class="container">
<div class="row">
<div class="col-md-6">
<a href="/" class="logo">{{ Setting::get('app-name', 'BookStack') }}</a>

<a href="/" class="logo">
<img class="logo-image" src="/logo.png" alt="Logo">
<span class="logo-text">{{ Setting::get('app-name', 'BookStack') }}</span>
</a>
</div>
<div class="col-md-6">
<div class="float right">
Expand Down

0 comments on commit 3aaab23

Please sign in to comment.