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