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

259 lines
5.5 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: 45px;
padding: 5px;
background: #F1F1F1;
.nav > li > a {
color: $style_color;
text-shadow: 0 1px 0 #fff;
2012-11-21 06:14:05 +01:00
font-size: 18px;
padding: 11px;
}
/** NAV block with links and profile **/
.nav {
float: right;
margin-right: 0;
}
}
}
z-index: 10;
/*height: 60px;*/
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 {
width: 170px;
float: left;
2012-08-16 08:13:50 +02:00
a {
float: left;
padding: 0px;
2012-06-12 13:58:44 +02:00
2012-08-16 08:13:50 +02:00
h1 {
width: 90px;
2012-11-21 05:14:05 +01:00
background: url('logo_dark.png') no-repeat 0px 2px;
float: left;
margin-left: 2px;
font-size: 30px;
line-height: 48px;
font-weight: normal;
color: $style_color;
2012-06-12 13:58:44 +02:00
text-shadow: 0 1px 1px #FFF;
padding-left: 45px;
height: 40px;
font-family: 'Korolev', sans-serif;
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;
margin-right: 30px;
font-size: 30px;
line-height: 48px;
font-weight: normal;
color: $style_color;
2012-06-12 13:58:44 +02:00
text-shadow: 0 1px 1px #FFF;
font-family: 'Korolev', sans-serif;
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 {
margin-right: 45px;
margin-left: 10px;
margin-top: 2px;
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;
&:focus {
@extend .span3;
}
2012-06-12 13:58:44 +02:00
}
}
/**
2012-08-16 08:13:50 +02:00
*
2012-06-12 13:58:44 +02:00
* Account box
*
*/
.account-box {
position: absolute;
right: 0;
top: 6px;
2012-06-12 13:58:44 +02:00
z-index: 10000;
width: 128px;
font-size: 11px;
float: right;
display: block;
cursor: pointer;
img {
2012-11-21 05:14:05 +01:00
@include border-radius(3px);
right: 5px;
2012-06-12 13:58:44 +02:00
position: absolute;
2012-08-16 08:13:50 +02:00
width: 28px;
height: 28px;
2012-06-12 13:58:44 +02:00
display: block;
top: 1px;
2012-06-12 13:58:44 +02:00
&:after {
content: " ";
display: block;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
float: right;
@include border-radius(5px);
2012-06-12 13:58:44 +02:00
border: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 0;
2012-11-24 10:57:22 +01:00
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255, 255, 255, 0.15)), to(rgba(0, 0, 0, 0.25))),
-webkit-gradient(linear, left top, right bottom, color-stop(0, rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.501, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0)));
background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)),
-moz-linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
background: linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)),
linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
2012-06-12 13:58:44 +02:00
-webkit-background-origin: border-box;
-moz-background-origin: border;
background-origin: border-box; } } }
.account-box {
&.hover {
height: 138px; }
&:hover > .account-links {
display: block; } }
.account-links {
@include border-radius(5px);
2012-06-12 13:58:44 +02:00
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
position: relative;
&:before {
content: ".";
width: 0;
height: 0;
position: absolute;
border: 5px solid transparent;
border-color: rgba(255, 255, 255, 0);
2012-11-21 06:14:05 +01:00
border-bottom-color: #555;
2012-06-12 13:58:44 +02:00
text-indent: -9999px;
top: -10px;
line-height: 0;
right: 10px;
z-index: 10; }
2012-11-21 06:14:05 +01:00
background: #555;
2012-06-12 13:58:44 +02:00
display: none;
z-index: 100000;
@include border-radius(4px);
2012-06-12 13:58:44 +02:00
width: 100px;
position: absolute;
2012-11-21 06:14:05 +01:00
right: 5px;
top: 38px;
2012-06-12 13:58:44 +02:00
margin-top: 0;
float: right;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
a {
2012-11-21 06:14:05 +01:00
color: #fff;
padding: 7px 10px;
2012-06-12 13:58:44 +02:00
display: block;
text-shadow: none;
2012-11-21 06:14:05 +01:00
border-bottom: 1px solid #666;
font-size: 12px;
2012-06-12 13:58:44 +02:00
&:hover {
color: #fff;
2012-11-21 06:14:05 +01:00
background: #333;
2012-06-12 13:58:44 +02:00
}
}
}
.account-box.hover .arrow-up {
top: 41px;
right: 6px;
position: absolute; }
.account-links a {
&:first-child {
@include border-radius(5px 5px 0 0);
}
2012-06-12 13:58:44 +02:00
&:last-child {
@include border-radius(0 0 5px 5px);
border-bottom: 0;
}
}
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);
&:focus {
background-color: white;
}
}
}
.search-input::-webkit-input-placeholder {
color: #666;
}
.app_logo {
a {
h1 {
background: url('logo_white.png') no-repeat 0px 2px;
color: #fff;
2012-11-21 06:14:05 +01:00
text-shadow: 0 1px 1px #111;
}
}
}
.project_name {
color: #fff;
2012-11-21 06:14:05 +01:00
text-shadow: 0 1px 1px #111;
}
}
2012-06-12 13:58:44 +02:00
}