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

275 lines
4.5 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 {
margin-bottom: 0;
min-height: 40px;
.navbar-inner {
background: #F1F1F1;
border-bottom: 1px solid #DDD;
filter: none;
.nav > li > a {
color: $style_color;
text-shadow: 0 1px 0 #fff;
font-size: 14px;
line-height: 32px;
padding: 6px 10px;
&:hover {
background: none;
}
}
/** NAV block with links and profile **/
.nav {
float: right;
margin-right: 0;
}
.navbar-toggle {
color: $style_color;
margin: 0 -15px 0 0;
padding: 10px;
border-radius: 0;
button i { font-size: 22px; }
&.collapsed { background-color: transparent !important;}
&:hover {
background-color: #EEE;
}
}
}
.turbolink-spinner {
font-size: 20px;
margin-right: 10px;
}
@media (max-width: $screen-xs-max) {
border-width: 0;
font-size: 18px;
.app_logo { margin-left: -15px; }
.title {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
white-space: nowrap;
max-width: 70%;
}
.navbar-collapse {
padding-right: 0;
padding-left: 0;
}
.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;
}
}
}
}
z-index: 10;
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;
padding: 0px;
margin: 0 6px;
2012-06-12 11:58:44 +00:00
2012-08-16 06:13:50 +00:00
h1 {
2013-07-13 06:47:06 +00:00
margin: 0;
background: image-url('logo-black.png') no-repeat center center;
2013-12-03 13:38:55 +00:00
background-size: 32px;
float: left;
height: 46px;
width: 40px;
@include header-font;
text-indent: -9999px;
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
* Project / Area name
*
*/
.title {
position: relative;
float: left;
margin: 0;
margin-left: 5px;
@include header-font;
2012-06-12 11:58:44 +00:00
}
2013-03-15 13:39:47 +00:00
.profile-pic {
position: relative;
top: -1px;
2013-03-15 13:39:47 +00:00
img {
width: 26px;
2013-07-02 08:42:39 +00:00
height: 26px;
2013-03-15 13:39:47 +00:00
@include border-radius(4px);
}
}
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 {
2012-06-12 11:58:44 +00:00
background-image: url("icon-search.png");
background-repeat: no-repeat;
background-position: 10px;
height: inherit;
padding: 4px 6px;
padding-left: 25px;
font-size: 13px;
2012-11-21 04:14:05 +00:00
@include border-radius(3px);
border: 1px solid #c6c6c6;
box-shadow: none;
@include transition(all 0.15s ease-in 0s);
2012-06-12 11:58:44 +00:00
}
}
2012-11-21 05:14:05 +00:00
/*
* Dark header
*
*/
&.header-dark {
&.navbar-gitlab {
.navbar-inner {
background: #708090;
border-bottom: 1px solid #AAA;
.navbar-toggle { color: #fff; }
2012-11-21 05:14:05 +00:00
.nav > li > a {
2013-07-02 11:06:25 +00:00
color: #AAA;
2013-05-16 11:12:21 +00:00
text-shadow: 0 1px 0 #444;
&:hover {
color: #FFF;
}
2012-11-21 05:14:05 +00:00
}
}
}
2013-07-02 11:06:25 +00:00
.turbolink-spinner {
color: #FFF;
}
2012-11-21 05:14:05 +00:00
.search {
.search-input {
background-color: #D2D5DA;
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid #AAA;
2012-11-21 05:14:05 +00:00
&:focus {
background-color: white;
}
}
}
.search-input::-webkit-input-placeholder {
color: #666;
}
.app_logo {
a {
h1 {
background: image-url('logo-white.png') no-repeat center center;
2013-12-03 13:38:55 +00:00
background-size: 32px;
color: #fff;
2013-05-16 11:12:21 +00:00
text-shadow: 0 1px 1px #444;
2012-11-21 05:14:05 +00:00
}
}
}
.title {
2013-02-17 10:05:26 +00:00
a {
color: #BBB;
&:hover {
color: #FFF;
}
2013-02-17 10:05:26 +00:00
}
color: #fff;
2013-05-16 11:12:21 +00:00
text-shadow: 0 1px 1px #444;
2012-11-21 05:14:05 +00:00
}
}
2012-12-24 19:18:23 +00:00
.app_logo {
.separator {
margin-left: 0;
margin-right: 0;
}
}
.separator {
float: left;
height: 46px;
width: 2px;
2012-12-24 19:18:23 +00:00
background: white;
border-left: 1px solid #DDD;
margin-left: 10px;
margin-right: 10px;
}
2012-06-12 11:58:44 +00:00
}
.search .search-input {
width: 300px;
&:focus {
width: 400px;
}
}
@media (max-width: 1200px) {
.search .search-input {
width: 200px;
&:focus {
width: 300px;
}
}
}