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

231 lines
3.7 KiB
SCSS
Raw Normal View History

2012-06-12 07:58:44 -04:00
/*
* Application Header
*
*/
$header-height: 46px;
2012-08-16 02:13:50 -04:00
header {
&.empty-header .container {
border-bottom: 1px solid #EEE;
}
&.navbar-gitlab {
z-index: 100;
margin-bottom: 0;
min-height: 40px;
border: none;
width: 100%;
.container {
width: 100% !important;
padding: 0;
background: #FFF;
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 14:18:23 -05:00
2012-08-16 02:13:50 -04: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 07:58:44 -04:00
}
}
2012-12-24 14:18:23 -05:00
&:hover {
background-color: #EEE;
}
2012-06-12 07:58:44 -04: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 02:13:50 -04:00
.search {
2013-03-15 09:39:47 -04:00
margin-right: 10px;
margin-left: 10px;
margin-top: 8px;
form {
margin: 0;
padding: 0;
}
2012-06-12 07:58:44 -04:00
2012-07-03 13:52:48 -04:00
.search-input {
background-image: image-url("icon-search.png");
2012-06-12 07:58:44 -04: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 07:58:44 -04:00
}
}
}
.search .search-input {
width: 300px;
}
@mixin collapsed-header {
.header-logo {
width: $sidebar_collapsed_width;
h3 {
display: none;
}
}
.header-content {
.title {
margin-left: 30px;
}
}
}
@media (max-width: 1200px) {
.search .search-input {
width: 200px;
}
}
@media (max-width: $screen-xs-max) {
#nprogress .spinner {
right: 35px !important;
}
}
@media (max-width: $screen-md-max) {
.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 {
border-width: 0;
font-size: 18px;
.title {
@include str-truncated(70%);
}
.navbar-collapse {
margin-top: 47px;
}
.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;
}
}
}
}