1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Updated header design

This commit is contained in:
Dan Brown
2017-08-19 15:33:22 +01:00
parent 666c86b108
commit 28a9bd514f
9 changed files with 74 additions and 69 deletions

View File

@ -64,6 +64,7 @@ $button-border-radius: 2px;
padding: 0;
margin: 0;
border: none;
user-select: none;
&:focus, &:active {
outline: 0;
}

View File

@ -248,15 +248,14 @@ div[editor-type="markdown"] .title-input.page-title input[type="text"] {
border: none;
color: $primary;
padding: 0;
margin: 0;
cursor: pointer;
margin-left: $-s;
}
button[type="submit"] {
margin-left: -$-l;
position: absolute;
left: 7px;
top: 7px;
}
input {
padding-right: $-l;
display: block;
padding-left: $-l;
width: 300px;
max-width: 100%;
}

View File

@ -12,7 +12,6 @@ header {
padding: $-m;
}
border-bottom: 1px solid #DDD;
//margin-bottom: $-l;
.links {
display: inline-block;
vertical-align: top;
@ -23,26 +22,27 @@ header {
}
.links a {
display: inline-block;
padding: $-l;
padding: $-m $-l;
color: #FFF;
&:last-child {
padding-right: 0;
}
@include smaller-than($screen-md) {
padding: $-l $-s;
padding: $-m $-s;
}
}
.avatar, .user-name {
display: inline-block;
}
.avatar {
//margin-top: (45px/2);
width: 30px;
height: 30px;
}
.user-name {
vertical-align: top;
padding-top: $-l;
padding-top: $-m;
position: relative;
top: -3px;
display: inline-block;
cursor: pointer;
> * {
@ -66,53 +66,57 @@ header {
}
}
}
@include smaller-than($screen-md) {
@include smaller-than($screen-sm) {
text-align: center;
.float.right {
float: none;
}
}
@include smaller-than($screen-sm) {
.links a {
padding: $-s;
}
form.search-box {
margin-top: 0;
}
.user-name {
padding-top: $-s;
}
}
.dropdown-container {
font-size: 0.9em;
}
.header-search {
display: inline-block;
}
header .search-box {
display: inline-block;
margin-top: $-s;
input {
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: #EEE;
}
button {
color: #EEE;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #DDD;
}
::-moz-placeholder { /* Firefox 19+ */
color: #DDD;
}
:-ms-input-placeholder { /* IE 10+ */
color: #DDD;
}
:-moz-placeholder { /* Firefox 18- */
color: #DDD;
}
@include smaller-than($screen-lg) {
max-width: 250px;
}
@include smaller-than($l) {
max-width: 200px;
}
}
form.search-box {
margin-top: $-l *0.9;
display: inline-block;
position: relative;
text-align: left;
input {
background-color: transparent;
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: 6px;
right: 4px;
display: inline-block;
position: absolute;
&:hover {
color: #FFF;
}
@include smaller-than($s) {
.header-search {
display: block;
}
}
@ -128,12 +132,12 @@ form.search-box {
font-size: 1.8em;
color: #fff;
font-weight: 400;
padding: $-l $-l $-l 0;
padding: 14px $-l 14px 0;
vertical-align: top;
line-height: 1;
}
.logo-image {
margin: $-m $-s $-m 0;
margin: $-xs $-s $-xs 0;
vertical-align: top;
height: 43px;
}
@ -227,4 +231,7 @@ form.search-box {
border-bottom: 2px solid $primary;
}
}
}
.faded-small .nav-tabs a {
padding: $-s $-m;
}