2015-09-11 14:41:01 +05:30
|
|
|
/*
|
|
|
|
* Application Header
|
|
|
|
*
|
|
|
|
*/
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
header {
|
2016-06-22 15:30:34 +05:30
|
|
|
transition: padding $sidebar-transition-duration;
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
&.navbar-empty {
|
2016-06-02 11:05:42 +05:30
|
|
|
height: $header-height;
|
2017-08-17 22:00:37 +05:30
|
|
|
background: $white-light;
|
|
|
|
border-bottom: 1px solid $white-normal;
|
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;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.tanuki-logo,
|
|
|
|
img {
|
2015-12-23 02:04:40 +05:30
|
|
|
height: 36px;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.navbar-gitlab {
|
2016-06-02 11:05:42 +05:30
|
|
|
padding: 0 16px;
|
2017-08-17 22:00:37 +05:30
|
|
|
z-index: 400;
|
2015-09-11 14:41:01 +05:30
|
|
|
margin-bottom: 0;
|
2017-08-17 22:00:37 +05:30
|
|
|
min-height: $header-height;
|
|
|
|
background-color: $gray-light;
|
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 {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $gl-text-color-secondary;
|
2015-09-25 12:07:36 +05:30
|
|
|
font-size: 18px;
|
2015-09-11 14:41:01 +05:30
|
|
|
padding: 0;
|
2017-08-17 22:00:37 +05:30
|
|
|
margin: (($header-height - 28) / 2) 3px;
|
|
|
|
margin-left: 8px;
|
2015-09-11 14:41:01 +05:30
|
|
|
height: 28px;
|
2017-08-17 22:00:37 +05:30
|
|
|
min-width: 32px;
|
2015-09-11 14:41:01 +05:30
|
|
|
line-height: 28px;
|
|
|
|
text-align: center;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&.header-user-dropdown-toggle {
|
|
|
|
margin-left: 14px;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
.header-user-avatar {
|
|
|
|
border-color: rgba($avatar-border, .2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: $gray-light;
|
|
|
|
color: $gl-text-color;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $gl-text-color;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
2016-11-03 12:29:30 +05:30
|
|
|
|
|
|
|
.fa-caret-down {
|
2017-08-17 22:00:37 +05:30
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
height: 17px;
|
|
|
|
// hack to get SVG to line up with FA icons
|
|
|
|
width: 23px;
|
|
|
|
fill: $gl-text-color-secondary;
|
2016-11-03 12:29:30 +05:30
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-toggle {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $nav-toggle-gray;
|
|
|
|
margin: 5px 0;
|
2015-09-11 14:41:01 +05:30
|
|
|
border-radius: 0;
|
2016-06-02 11:05:42 +05:30
|
|
|
right: -10px;
|
|
|
|
padding: 6px 10px;
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
&:hover {
|
2017-08-17 22:00:37 +05:30
|
|
|
background-color: $white-normal;
|
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 {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $gl-text-color-secondary;
|
2015-10-24 18:46:33 +05:30
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
2017-08-17 22:00:37 +05:30
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.global-dropdown {
|
|
|
|
position: absolute;
|
|
|
|
left: -10px;
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.badge {
|
|
|
|
font-size: 11px;
|
|
|
|
}
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
li {
|
|
|
|
&.active a {
|
|
|
|
font-weight: bold;
|
2016-06-02 11:05:42 +05:30
|
|
|
}
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.global-dropdown-toggle {
|
|
|
|
margin: 7px 0;
|
|
|
|
font-size: 18px;
|
|
|
|
padding: 6px 10px;
|
|
|
|
border: none;
|
|
|
|
background-color: $gray-light;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $white-normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
background-color: $white-normal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
.header-content {
|
2017-08-17 22:00:37 +05:30
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2016-06-02 11:05:42 +05:30
|
|
|
position: relative;
|
2017-08-17 22:00:37 +05:30
|
|
|
min-height: $header-height;
|
2016-06-16 23:09:34 +05:30
|
|
|
padding-left: 30px;
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
.dropdown-menu {
|
|
|
|
margin-top: -5px;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
.header-logo {
|
2017-08-17 22:00:37 +05:30
|
|
|
display: inline-block;
|
|
|
|
margin: 0 12px 0 2px;
|
|
|
|
position: relative;
|
|
|
|
top: 10px;
|
2016-06-16 23:09:34 +05:30
|
|
|
transition-duration: .3s;
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
svg,
|
|
|
|
img {
|
|
|
|
height: 28px;
|
2016-08-24 12:49:21 +05:30
|
|
|
}
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2017-08-17 22:00:37 +05:30
|
|
|
}
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.group-name-toggle {
|
|
|
|
margin: 3px 5px;
|
|
|
|
}
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.group-title {
|
|
|
|
&.is-hidden {
|
|
|
|
.hidable:not(:last-of-type) {
|
|
|
|
display: none;
|
2016-11-03 12:29:30 +05:30
|
|
|
}
|
2016-06-16 23:09:34 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.title-container {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
padding-top: 14px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
.title {
|
2016-09-29 09:46:39 +05:30
|
|
|
position: relative;
|
|
|
|
padding-right: 20px;
|
2015-09-11 14:41:01 +05:30
|
|
|
margin: 0;
|
2017-08-17 22:00:37 +05:30
|
|
|
font-size: 18px;
|
|
|
|
line-height: 22px;
|
2016-06-16 23:09:34 +05:30
|
|
|
display: inline-block;
|
2015-09-25 12:07:36 +05:30
|
|
|
font-weight: normal;
|
2016-06-02 11:05:42 +05:30
|
|
|
color: $gl-text-color;
|
2015-09-11 14:41:01 +05:30
|
|
|
vertical-align: top;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&.wrap {
|
|
|
|
white-space: normal;
|
2016-09-29 09:46:39 +05:30
|
|
|
}
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
&.initializing {
|
|
|
|
opacity: 0;
|
2016-06-16 23:09:34 +05:30
|
|
|
}
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
a {
|
2016-06-02 11:05:42 +05:30
|
|
|
color: $gl-text-color;
|
2016-11-03 12:29:30 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $gl-header-nav-hover-color;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
2016-04-02 18:10:28 +05:30
|
|
|
|
|
|
|
.dropdown-toggle-caret {
|
2016-09-29 09:46:39 +05:30
|
|
|
color: $gl-text-color;
|
|
|
|
border: transparent;
|
|
|
|
background: transparent;
|
|
|
|
position: absolute;
|
2017-08-17 22:00:37 +05:30
|
|
|
top: 2px;
|
2016-09-29 09:46:39 +05:30
|
|
|
right: 3px;
|
2016-04-02 18:10:28 +05:30
|
|
|
width: 12px;
|
2016-09-29 09:46:39 +05:30
|
|
|
line-height: 19px;
|
|
|
|
padding: 0;
|
2016-04-02 18:10:28 +05:30
|
|
|
font-size: 10px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $gl-header-nav-hover-color;
|
|
|
|
}
|
2016-04-02 18:10:28 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.project-item-select {
|
|
|
|
right: auto;
|
|
|
|
left: 0;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse {
|
2017-08-17 22:00:37 +05:30
|
|
|
flex: 0 0 auto;
|
2015-10-24 18:46:33 +05:30
|
|
|
border-top: none;
|
2017-08-17 22:00:37 +05:30
|
|
|
padding: 0;
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
2017-08-17 22:00:37 +05:30
|
|
|
flex: 1 1 auto;
|
2016-06-16 23:09:34 +05:30
|
|
|
}
|
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 {
|
2017-08-17 22:00:37 +05:30
|
|
|
color: $red-500;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
li {
|
|
|
|
.badge {
|
|
|
|
position: inherit;
|
|
|
|
top: -3px;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-left: -12px;
|
|
|
|
font-size: 11px;
|
|
|
|
color: $white-light;
|
|
|
|
padding: 1px 5px 2px;
|
|
|
|
border-radius: 7px;
|
|
|
|
box-shadow: 0 1px 0 rgba($gl-header-color, .2);
|
|
|
|
|
|
|
|
&.issues-count {
|
|
|
|
background-color: $green-500;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.merge-requests-count {
|
|
|
|
background-color: $orange-600;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.todos-count {
|
|
|
|
background-color: $blue-500;
|
|
|
|
}
|
|
|
|
}
|
2015-11-26 14:37:03 +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 {
|
2017-08-17 22:00:37 +05:30
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
2016-06-02 11:05:42 +05:30
|
|
|
margin: 0;
|
2017-08-17 22:00:37 +05:30
|
|
|
text-align: right;
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-collapse {
|
|
|
|
padding-left: 5px;
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.nav > li:not(.hidden-xs) {
|
|
|
|
display: table-cell!important;
|
|
|
|
width: 25%;
|
|
|
|
|
|
|
|
a {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.header-user-dropdown-toggle {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-user-avatar {
|
|
|
|
float: none;
|
|
|
|
}
|
2015-09-11 14:41:01 +05:30
|
|
|
}
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
.header-user {
|
|
|
|
.dropdown-menu-nav {
|
2017-08-17 22:00:37 +05:30
|
|
|
width: auto;
|
|
|
|
min-width: 140px;
|
2016-08-24 12:49:21 +05:30
|
|
|
margin-top: -5px;
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.current-user {
|
|
|
|
padding: 5px 18px;
|
|
|
|
|
|
|
|
.user-name {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2016-08-24 12:49:21 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-user-avatar {
|
|
|
|
float: left;
|
|
|
|
margin-right: 5px;
|
|
|
|
border-radius: 50%;
|
2017-08-17 22:00:37 +05:30
|
|
|
border: 1px solid $avatar-border;
|
2016-08-24 12:49:21 +05:30
|
|
|
}
|