gitlabhq/app/assets/stylesheets/sections/header.scss

180 lines
2.9 KiB
SCSS
Raw Normal View History

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