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

193 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 {
&.navbar-gitlab {
.navbar-inner {
height: 40px;
padding: 3px;
background: #F1F1F1;
filter: none;
.nav > li > a {
color: $style_color;
text-shadow: 0 1px 0 #fff;
font-size: 14px;
padding: 10px;
}
/** NAV block with links and profile **/
.nav {
float: right;
margin-right: 0;
}
}
}
z-index: 10;
2012-06-12 07:58:44 -04:00
/**
2012-08-16 02:13:50 -04:00
*
2012-06-12 07:58:44 -04:00
* Logo holder
*
*/
.app_logo {
float: left;
margin-right: 9px;
2012-12-24 14:18:23 -05:00
position: relative;
top: -5px;
padding-top: 5px;
2012-08-16 02:13:50 -04:00
a {
float: left;
padding: 0px;
margin: 0 6px;
2012-06-12 07:58:44 -04:00
2012-08-16 02:13:50 -04:00
h1 {
2013-07-13 02:47:06 -04:00
margin: 0;
2013-03-09 17:12:25 -05:00
background: url('logo-black.png') no-repeat center 1px;
background-size: 38px;
float: left;
height: 40px;
width: 40px;
@include header-font;
text-indent: -9999px;
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
}
/**
2012-08-16 02:13:50 -04:00
*
2012-06-12 07:58:44 -04:00
* Project / Area name
*
*/
.project_name {
position: relative;
float: left;
margin: 0;
margin-left: 5px;
@include header-font;
2012-06-12 07:58:44 -04:00
}
2013-03-15 09:39:47 -04:00
.profile-pic {
position: relative;
top: -4px;
img {
width: 26px;
2013-07-02 04:42:39 -04:00
height: 26px;
2013-03-15 09:39:47 -04:00
@include border-radius(4px);
}
}
2012-06-12 07:58:44 -04:00
/**
2012-08-16 02:13:50 -04:00
*
2012-06-12 07:58:44 -04:00
* Search box
*
*/
2012-08-16 02:13:50 -04:00
.search {
2013-03-15 09:39:47 -04:00
margin-right: 10px;
margin-left: 10px;
2012-06-12 07:58:44 -04:00
2012-07-03 13:52:48 -04:00
.search-input {
@extend .span3;
2012-06-12 07:58:44 -04:00
background-image: url("icon-search.png");
background-repeat: no-repeat;
background-position: 10px;
padding-left: 25px;
font-size: 13px;
2012-11-20 23:14:05 -05:00
@include border-radius(3px);
border: 1px solid #c6c6c6;
box-shadow: none;
@include transition(all 0.15s ease-in 0s);
&:focus {
@extend .span4;
}
2012-06-12 07:58:44 -04:00
}
}
2012-11-21 00:14:05 -05:00
/*
* Dark header
*
*/
&.header-dark {
&.navbar-gitlab {
.navbar-inner {
background: #708090;
border-bottom: 1px solid #AAA;
.nav > li > a {
2013-07-02 07:06:25 -04:00
color: #AAA;
2013-05-16 07:12:21 -04:00
text-shadow: 0 1px 0 #444;
&:hover {
color: #FFF;
}
2012-11-21 00:14:05 -05:00
}
}
}
2013-07-02 07:06:25 -04:00
.turbolink-spinner {
color: #FFF;
}
2012-11-21 00:14:05 -05:00
.search {
.search-input {
background-color: #D2D5DA;
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid #AAA;
2012-11-21 00:14:05 -05:00
&:focus {
background-color: white;
}
}
}
.search-input::-webkit-input-placeholder {
color: #666;
}
.app_logo {
a {
h1 {
2013-03-09 17:12:25 -05:00
background: url('logo-white.png') no-repeat center 1px;
background-size: 38px;
color: #fff;
2013-05-16 07:12:21 -04:00
text-shadow: 0 1px 1px #444;
2012-11-21 00:14:05 -05:00
}
}
}
.project_name {
2013-02-17 05:05:26 -05:00
a {
color: #BBB;
&:hover {
color: #FFF;
}
2013-02-17 05:05:26 -05:00
}
color: #fff;
2013-05-16 07:12:21 -04:00
text-shadow: 0 1px 1px #444;
2012-11-21 00:14:05 -05:00
}
}
2012-12-24 14:18:23 -05:00
.app_logo {
.separator {
margin-left: 0;
margin-right: 0;
}
}
.separator {
float: left;
height: 46px;
2012-12-24 14:18:23 -05:00
width: 1px;
background: white;
border-left: 1px solid #DDD;
margin-top: -3px;
2012-12-24 14:18:23 -05:00
margin-left: 10px;
margin-right: 10px;
}
2012-06-12 07:58:44 -04:00
}