gitlab-org--gitlab-foss/app/assets/stylesheets/generic/header.scss

216 lines
3.5 KiB
SCSS
Raw Normal View History

2012-06-12 11:58:44 +00:00
/*
* Application Header
*
*/
$header-height: 46px;
2012-08-16 06:13:50 +00:00
header {
&.navbar-empty {
background: #FFF;
border-bottom: 1px solid #EEE;
}
&.navbar-gitlab {
z-index: 100;
margin-bottom: 0;
min-height: 40px;
border: none;
width: 100%;
.container {
background: #FFF;
width: 100% !important;
padding: 0;
filter: none;
.nav > li > a {
color: #888;
font-size: 14px;
line-height: 19px;
padding: 0;
background-color: #f5f5f5;
margin: 9px 0;
margin-left: 10px;
border-radius: 40px;
height: 26px;
width: 26px;
line-height: 26px;
text-align: center;
&:hover, &:focus, &:active {
background-color: #EEE;
}
}
.nav {
float: right;
margin-right: 0;
}
.navbar-toggle {
color: #666;
margin: 0;
border-radius: 0;
&:hover {
background-color: #EEE;
}
}
}
}
.header-logo {
border-bottom: 1px solid transparent;
float: left;
height: $header-height;
width: $sidebar_width;
2012-12-24 19:18:23 +00:00
2012-08-16 06:13:50 +00:00
a {
float: left;
height: $header-height;
width: 100%;
padding: 5px 8px;
h3 {
width: 158px;
float: left;
margin: 0;
margin-left: 20px;
font-size: 18px;
line-height: 34px;
font-weight: normal;
}
img {
width: 36px;
height: 36px;
float: left;
2012-06-12 11:58:44 +00:00
}
}
2012-12-24 19:18:23 +00:00
&:hover {
background-color: #EEE;
}
2012-06-12 11:58:44 +00:00
}
.header-content {
border-bottom: 1px solid #EEE;
padding-right: 35px;
height: $header-height;
.title {
position: relative;
float: left;
margin: 0;
margin-left: 35px;
font-size: 18px;
line-height: 44px;
font-weight: bold;
color: #444;
@include str-truncated(37%);
a {
color: #444;
&:hover {
text-decoration: underline;
}
}
}
}
2012-08-16 06:13:50 +00:00
.search {
2013-03-15 13:39:47 +00:00
margin-right: 10px;
margin-left: 10px;
margin-top: 8px;
form {
margin: 0;
padding: 0;
}
2012-06-12 11:58:44 +00:00
2012-07-03 17:52:48 +00:00
.search-input {
width: 220px;
background-image: image-url("icon-search.png");
2012-06-12 11:58:44 +00:00
background-repeat: no-repeat;
background-position: 10px;
height: inherit;
padding: 4px 6px;
padding-left: 25px;
font-size: 13px;
background-color: #f5f5f5;
border-color: #f5f5f5;
&:focus {
@include box-shadow(none);
outline: none;
border-color: #DDD;
background-color: #FFF;
}
2012-06-12 11:58:44 +00:00
}
}
}
@mixin collapsed-header {
.header-logo {
width: $sidebar_collapsed_width;
h3 {
display: none;
}
}
.header-content {
.title {
margin-left: 30px;
}
}
}
@media (max-width: $screen-md-max) {
header .container .title {
max-width: 43%;
}
.header-collapsed, .header-expanded {
@include collapsed-header;
}
}
@media(min-width: $screen-md-max) {
.header-collapsed {
@include collapsed-header;
}
.header-expanded {
}
}
@media (max-width: $screen-xs-max) {
header .container {
font-size: 18px;
.title {
max-width: 70%;
}
.navbar-nav {
margin: 5px 0;
.visible-xs, .visable-sm {
display: table-cell !important;
}
}
li {
display: table-cell;
width: 1%;
a {
text-align: center;
font-size: 18px !important;
}
}
}
}