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

181 lines
3.1 KiB
SCSS
Raw Normal View History

2012-06-12 07:58:44 -04:00
/*
* Application Header
*
*/
2012-08-16 02:13:50 -04:00
header {
transition-duration: .3s;
&.navbar-empty {
height: 58px;
background: #fff;
border-bottom: 1px solid #eee;
.center-logo {
margin: 11px 0;
text-align: center;
#tanuki-logo, img {
width: 36px;
height: 36px;
}
}
}
&.navbar-gitlab {
padding: 0 20px;
z-index: 100;
margin-bottom: 0;
min-height: $header-height;
background-color: #fff;
border: none;
border-bottom: 1px solid #eee;
.container-fluid {
width: 100% !important;
filter: none;
padding: 0;
.nav > li > a {
color: $gl-icon-color;
font-size: 18px;
padding: 0;
margin: ($header-height - 28) / 2 0;
margin-left: 10px;
height: 28px;
width: 28px;
line-height: 28px;
text-align: center;
&:hover, &:focus, &:active {
background-color: #fff;
}
}
.navbar-toggle {
color: #666;
margin: 6px 0;
border-radius: 0;
position: absolute;
right: 2px;
&:hover {
background-color: #eee;
}
&.active {
color: $gl-icon-color;
}
}
}
}
.header-content {
position: relative;
height: $header-height;
2016-04-18 03:48:41 -04:00
padding-right: 40px;
@media (min-width: $screen-sm-min) {
padding-right: 0;
}
.dropdown-menu {
margin-top: -5px;
}
.title {
margin: 0;
font-size: 19px;
line-height: $header-height;
font-weight: normal;
color: $gl-text-color;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
white-space: nowrap;
a {
color: $gl-text-color;
&:hover {
text-decoration: underline;
}
}
.dropdown-toggle-caret {
2016-01-15 02:30:36 -05:00
position: relative;
top: -2px;
width: 12px;
line-height: 12px;
margin-left: 5px;
2016-01-15 02:30:36 -05:00
font-size: 10px;
text-align: center;
cursor: pointer;
}
.project-item-select {
right: auto;
left: 0;
}
}
.navbar-collapse {
float: right;
border-top: none;
}
}
2016-04-18 03:48:41 -04:00
.project-item-select-holder {
display: inline;
}
.impersonation i {
color: $red-normal;
}
2012-06-12 07:58:44 -04:00
}
@mixin collapsed-header {
margin-left: $sidebar_collapsed_width;
}
.header-collapsed {
margin-left: $sidebar_collapsed_width;
@media (min-width: $screen-md-min) {
@include collapsed-header;
}
}
.header-expanded {
margin-left: $sidebar_collapsed_width;
@media (min-width: $screen-md-min) {
margin-left: $sidebar_width;
}
}
@media (max-width: $screen-xs-max) {
header .container-fluid {
font-size: 18px;
.navbar-nav {
margin: 0;
float: none !important;
.visible-xs, .visable-sm {
display: table-cell !important;
}
}
.navbar-collapse {
padding-left: 5px;
li {
display: table-cell;
width: 1%;
a {
margin-left: 8px !important;
}
}
}
}
}