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

228 lines
3.6 KiB
SCSS
Raw Normal View History

2012-06-12 11:58:44 +00:00
/*
* Application Header
*
*/
2012-08-16 06:13:50 +00:00
header {
&.navbar-gitlab {
z-index: 100;
margin-bottom: 0;
min-height: 40px;
border: none;
width: 100%;
.container {
width: 100% !important;
padding: 0;
padding-right: 35px;
background: #FFF;
border-bottom: 1px solid #EEE;
filter: none;
.title {
position: relative;
float: left;
margin: 0;
margin-left: 25px;
font-size: 18px;
line-height: 44px;
font-weight: bold;
color: #444;
@include str-truncated(37%);
a {
color: #444;
&:hover {
text-decoration: underline;
}
}
}
.app_logo {
border-bottom: 1px solid transparent;
margin-bottom: -1px;
a {
padding: 5px 8px;
img {
float: left;
}
h3 {
width: 158px;
float: left;
margin: 0;
margin-left: 20px;
font-size: 18px;
line-height: 34px;
font-weight: normal;
}
}
}
.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 block with links and profile **/
.nav {
float: right;
margin-right: 0;
}
.navbar-toggle {
color: #666;
margin: 0;
border-radius: 0;
&:hover {
background-color: #EEE;
}
}
}
.turbolink-spinner {
font-size: 20px;
margin-right: 10px;
}
@media (max-width: $screen-xs-max) {
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;
}
}
}
}
2012-06-12 11:58:44 +00:00
/**
2012-08-16 06:13:50 +00:00
*
2012-06-12 11:58:44 +00:00
* Logo holder
*
*/
.app_logo {
float: left;
margin-right: 9px;
2012-12-24 19:18:23 +00:00
2012-08-16 06:13:50 +00:00
a {
float: left;
height: 46px;
width: 100%;
img {
width: 36px;
height: 36px;
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
}
/**
2012-08-16 06:13:50 +00:00
*
2012-06-12 11:58:44 +00:00
* Search box
*
*/
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 {
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;
2012-06-12 11:58:44 +00:00
}
}
}
.search .search-input {
width: 300px;
}
@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 {
width: 52px;
h3 {
display: none;
}
}
}
@media(min-width: $screen-md-max) {
.header-collapsed {
width: 52px;
h3 {
display: none;
}
}
.header-expanded {
}
}