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