debian-mirror-gitlab/app/assets/stylesheets/framework/header.scss

249 lines
4.2 KiB
SCSS
Raw Normal View History

2015-09-11 14:41:01 +05:30
/*
* Application Header
*
*/
header {
transition-duration: .3s;
&.navbar-empty {
2016-06-02 11:05:42 +05:30
height: $header-height;
background: #fff;
border-bottom: 1px solid $btn-gray-hover;
2015-09-11 14:41:01 +05:30
.center-logo {
2016-06-02 11:05:42 +05:30
margin: 8px 0;
2015-09-11 14:41:01 +05:30
text-align: center;
2015-12-23 02:04:40 +05:30
#tanuki-logo, img {
width: 36px;
height: 36px;
2015-09-11 14:41:01 +05:30
}
}
}
&.navbar-gitlab {
2016-06-02 11:05:42 +05:30
padding: 0 16px;
2015-09-11 14:41:01 +05:30
z-index: 100;
margin-bottom: 0;
2016-06-02 11:05:42 +05:30
height: $header-height;
background-color: $background-color;
2015-09-11 14:41:01 +05:30
border: none;
2016-06-02 11:05:42 +05:30
border-bottom: 1px solid $border-color;
@media (max-width: $screen-xs-min) {
padding: 0 16px;
}
&.with-horizontal-nav {
border-bottom: none;
}
2015-09-11 14:41:01 +05:30
2015-09-25 12:07:36 +05:30
.container-fluid {
2015-09-11 14:41:01 +05:30
width: 100% !important;
filter: none;
2015-09-25 12:07:36 +05:30
padding: 0;
2015-09-11 14:41:01 +05:30
.nav > li > a {
2016-06-02 11:05:42 +05:30
color: $gl-icon-color;
2015-09-25 12:07:36 +05:30
font-size: 18px;
2015-09-11 14:41:01 +05:30
padding: 0;
margin: ($header-height - 28) / 2 0;
margin-left: 10px;
height: 28px;
width: 28px;
line-height: 28px;
text-align: center;
&:hover, &:focus, &:active {
2016-06-02 11:05:42 +05:30
background-color: $background-color;
2015-09-11 14:41:01 +05:30
}
}
.navbar-toggle {
color: #666;
2015-10-24 18:46:33 +05:30
margin: 6px 0;
2015-09-11 14:41:01 +05:30
border-radius: 0;
position: absolute;
2016-06-02 11:05:42 +05:30
right: -10px;
padding: 6px 10px;
2015-09-11 14:41:01 +05:30
&:hover {
2016-06-02 11:05:42 +05:30
background-color: $btn-gray-hover;
2015-09-11 14:41:01 +05:30
}
2016-06-02 11:05:42 +05:30
2015-10-24 18:46:33 +05:30
&.active {
2016-06-02 11:05:42 +05:30
color: $gl-icon-color;
2015-10-24 18:46:33 +05:30
}
2015-09-11 14:41:01 +05:30
}
}
2016-06-02 11:05:42 +05:30
&.header-collapsed {
padding: 0 16px;
.side-nav-toggle {
display: block;
}
2016-06-02 11:05:42 +05:30
}
.side-nav-toggle {
display: none;
position: absolute;
left: -10px;
margin: 6px 0;
font-size: 18px;
2016-06-02 11:05:42 +05:30
padding: 6px 10px;
border: none;
background-color: $background-color;
&:hover {
background-color: $btn-gray-hover;
}
&:focus {
outline: none;
}
}
2015-09-11 14:41:01 +05:30
}
.header-content {
2016-06-02 11:05:42 +05:30
position: relative;
2015-09-11 14:41:01 +05:30
height: $header-height;
2016-06-02 11:05:42 +05:30
padding-right: 40px;
padding-left: 30px;
transition-duration: .3s;
2016-06-02 11:05:42 +05:30
@media (min-width: $screen-sm-min) {
padding-right: 0;
}
.dropdown-menu {
margin-top: -5px;
}
2015-09-11 14:41:01 +05:30
.header-logo {
position: absolute;
left: 50%;
margin-left: -18px;
top: 7px;
transition-duration: .3s;
z-index: 999;
&:hover {
cursor: pointer;
}
@media (max-width: $screen-xs-max) {
right: 25px;
left: auto;
}
}
2015-09-11 14:41:01 +05:30
.title {
margin: 0;
2015-09-25 12:07:36 +05:30
font-size: 19px;
max-width: 400px;
display: inline-block;
2015-09-11 14:41:01 +05:30
line-height: $header-height;
2015-09-25 12:07:36 +05:30
font-weight: normal;
2016-06-02 11:05:42 +05:30
color: $gl-text-color;
overflow: hidden;
2015-09-11 14:41:01 +05:30
text-overflow: ellipsis;
vertical-align: top;
white-space: nowrap;
@media (max-width: $screen-sm-max) {
max-width: 190px;
}
2015-09-11 14:41:01 +05:30
a {
2016-06-02 11:05:42 +05:30
color: $gl-text-color;
2015-09-11 14:41:01 +05:30
&:hover {
text-decoration: underline;
}
}
2016-04-02 18:10:28 +05:30
.dropdown-toggle-caret {
position: relative;
top: -2px;
width: 12px;
line-height: 12px;
margin-left: 5px;
font-size: 10px;
text-align: center;
cursor: pointer;
}
.project-item-select {
right: auto;
left: 0;
}
2015-09-11 14:41:01 +05:30
}
.navbar-collapse {
float: right;
2015-10-24 18:46:33 +05:30
border-top: none;
@media (max-width: $screen-xs-max) {
float: none;
}
2015-09-11 14:41:01 +05:30
}
}
2016-06-02 11:05:42 +05:30
.project-item-select-holder {
display: inline;
2015-09-11 14:41:01 +05:30
}
2015-11-26 14:37:03 +05:30
.impersonation i {
color: $red-normal;
}
2015-09-11 14:41:01 +05:30
}
2016-06-02 11:05:42 +05:30
.header-collapsed {
margin-left: 0;
2016-06-02 11:05:42 +05:30
.header-content {
2016-04-02 18:10:28 +05:30
@media (min-width: $screen-sm-max) {
padding-left: 30px;
transition-duration: .3s;
}
2016-06-02 11:05:42 +05:30
}
2015-09-11 14:41:01 +05:30
}
.tanuki-shape {
transition: all 0.8s;
2016-06-02 11:05:42 +05:30
&:hover, &.highlight {
fill: rgb(255, 255, 255);
transition: all 0.1s;
2016-06-02 11:05:42 +05:30
}
2015-09-11 14:41:01 +05:30
}
@media (max-width: $screen-xs-max) {
2015-09-25 12:07:36 +05:30
header .container-fluid {
2015-09-11 14:41:01 +05:30
font-size: 18px;
.navbar-nav {
2016-06-02 11:05:42 +05:30
margin: 0;
2015-09-11 14:41:01 +05:30
float: none !important;
.visible-xs, .visable-sm {
display: table-cell !important;
}
}
.navbar-collapse {
padding-left: 5px;
li {
display: table-cell;
width: 1%;
a {
margin-left: 8px !important;
}
}
}
}
}