2018-03-17 18:26:18 +05:30
|
|
|
.page-with-contextual-sidebar {
|
|
|
|
transition: padding-left $sidebar-transition-duration;
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
@media (min-width: $screen-md-min) {
|
2018-03-17 18:26:18 +05:30
|
|
|
padding-left: $contextual-sidebar-collapsed-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $screen-lg-min) {
|
2018-03-17 18:26:18 +05:30
|
|
|
padding-left: $contextual-sidebar-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.issues-bulk-update.right-sidebar.right-sidebar-expanded .issuable-sidebar-header {
|
|
|
|
padding: 10px 0 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-with-icon-sidebar {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
2018-03-17 18:26:18 +05:30
|
|
|
padding-left: $contextual-sidebar-collapsed-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.context-header {
|
|
|
|
position: relative;
|
|
|
|
margin-right: 2px;
|
2018-03-17 18:26:18 +05:30
|
|
|
width: $contextual-sidebar-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
a {
|
2018-03-17 18:26:18 +05:30
|
|
|
transition: padding $sidebar-transition-duration;
|
|
|
|
font-weight: $gl-font-weight-bold;
|
2017-09-10 17:25:29 +05:30
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 10px 16px 10px 10px;
|
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
a:hover {
|
2018-03-17 18:26:18 +05:30
|
|
|
background-color: $link-hover-background;
|
|
|
|
color: $gl-text-color;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-container {
|
|
|
|
flex: 0 0 40px;
|
|
|
|
background-color: $white-light;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.sidebar-context-title {
|
2017-09-10 17:25:29 +05:30
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.settings-avatar {
|
|
|
|
background-color: $white-light;
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
svg {
|
|
|
|
fill: $gl-text-color-secondary;
|
|
|
|
margin: auto;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-sidebar {
|
2018-03-17 18:26:18 +05:30
|
|
|
transition: width $sidebar-transition-duration, left $sidebar-transition-duration;
|
2017-09-10 17:25:29 +05:30
|
|
|
position: fixed;
|
|
|
|
z-index: 400;
|
2018-03-17 18:26:18 +05:30
|
|
|
width: $contextual-sidebar-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
top: $header-height;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2018-03-17 18:26:18 +05:30
|
|
|
background-color: $gray-light;
|
2017-09-10 17:25:29 +05:30
|
|
|
box-shadow: inset -2px 0 0 $border-color;
|
2018-03-17 18:26:18 +05:30
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
|
|
|
|
&:not(.sidebar-collapsed-desktop) {
|
|
|
|
@media (min-width: $screen-sm-min) and (max-width: $screen-md-max) {
|
|
|
|
box-shadow: inset -2px 0 0 $border-color,
|
|
|
|
2px 1px 3px $dropdown-shadow-color;
|
|
|
|
}
|
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
&.sidebar-collapsed-desktop {
|
|
|
|
width: $contextual-sidebar-collapsed-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-sidebar-inner-scroll {
|
|
|
|
overflow-x: hidden;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.badge:not(.fly-out-badge),
|
|
|
|
.sidebar-context-title,
|
2017-09-10 17:25:29 +05:30
|
|
|
.nav-item-name {
|
2018-03-17 18:26:18 +05:30
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-top-level-items > li > a {
|
|
|
|
min-height: 44px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fly-out-top-item {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-container {
|
|
|
|
margin-right: 0;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
&.sidebar-expanded-mobile {
|
2017-09-10 17:25:29 +05:30
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
a {
|
2018-03-17 18:26:18 +05:30
|
|
|
transition: padding $sidebar-transition-duration;
|
2017-09-10 17:25:29 +05:30
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-03-17 18:26:18 +05:30
|
|
|
padding: 12px 15px;
|
|
|
|
color: $gl-text-color-secondary;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-item-name {
|
|
|
|
flex: 1;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
&.active {
|
|
|
|
> a {
|
|
|
|
font-weight: $gl-font-weight-bold;
|
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
2018-03-17 18:26:18 +05:30
|
|
|
left: (-$contextual-sidebar-width);
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.nav-icon-container {
|
|
|
|
display: flex;
|
|
|
|
margin-right: 8px;
|
2018-03-17 18:26:18 +05:30
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.fly-out-top-item {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-sidebar-inner-scroll {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
overflow: hidden;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.with-performance-bar .nav-sidebar {
|
|
|
|
top: $header-height + $performance-bar-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
display: none;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
a {
|
|
|
|
padding: 8px 16px 8px 40px;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-03-17 18:26:18 +05:30
|
|
|
background: $link-active-background;
|
|
|
|
color: $gl-text-color;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-03-17 18:26:18 +05:30
|
|
|
background: $link-active-background;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-top-level-items {
|
|
|
|
margin-bottom: 60px;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-showing-fly-out {
|
|
|
|
> a {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
2018-03-17 18:26:18 +05:30
|
|
|
left: 0;
|
2017-09-10 17:25:29 +05:30
|
|
|
min-width: 150px;
|
|
|
|
margin-top: -1px;
|
2018-03-17 18:26:18 +05:30
|
|
|
padding: 4px 1px;
|
2017-09-10 17:25:29 +05:30
|
|
|
background-color: $white-light;
|
|
|
|
box-shadow: 2px 1px 3px $dropdown-shadow-color;
|
|
|
|
border: 1px solid $gray-darker;
|
|
|
|
border-left: 0;
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -30px;
|
|
|
|
bottom: -30px;
|
|
|
|
left: -10px;
|
|
|
|
right: -30px;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-above {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.divider {
|
|
|
|
height: 1px;
|
|
|
|
margin: 4px -1px;
|
|
|
|
padding: 0;
|
|
|
|
background-color: $dropdown-divider-color;
|
|
|
|
}
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
> .active {
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 8px 16px;
|
|
|
|
color: $gl-text-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $gray-darker;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
background-color: $inactive-badge-background;
|
2018-03-17 18:26:18 +05:30
|
|
|
color: $gl-text-color-secondary;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2018-03-17 18:26:18 +05:30
|
|
|
background: $link-active-background;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
> a {
|
|
|
|
margin-left: 4px;
|
2018-03-17 18:26:18 +05:30
|
|
|
// Subtract width of left border on active element
|
|
|
|
padding-left: 11px;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
2018-03-17 18:26:18 +05:30
|
|
|
font-weight: $gl-font-weight-bold;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.sidebar-sub-level-items:not(.is-fly-out-only) {
|
2017-09-10 17:25:29 +05:30
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active > a:hover,
|
|
|
|
&.is-over > a {
|
2018-03-17 18:26:18 +05:30
|
|
|
background-color: $link-hover-background;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Collapsed nav
|
|
|
|
|
|
|
|
.toggle-sidebar-button,
|
|
|
|
.close-nav-button {
|
2018-03-17 18:26:18 +05:30
|
|
|
width: $contextual-sidebar-width - 2px;
|
|
|
|
transition: width $sidebar-transition-duration;
|
2017-09-10 17:25:29 +05:30
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
2018-03-17 18:26:18 +05:30
|
|
|
padding: $gl-padding;
|
|
|
|
background-color: $gray-light;
|
2017-09-10 17:25:29 +05:30
|
|
|
border: 0;
|
|
|
|
border-top: 2px solid $border-color;
|
|
|
|
color: $gl-text-color-secondary;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2018-03-17 18:26:18 +05:30
|
|
|
line-height: 1;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
svg {
|
2017-09-10 17:25:29 +05:30
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.icon-angle-double-right {
|
2017-09-10 17:25:29 +05:30
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $border-color;
|
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-sidebar-button {
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.collapse-text {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.sidebar-collapsed-desktop {
|
2017-09-10 17:25:29 +05:30
|
|
|
.context-header {
|
2018-03-17 18:26:18 +05:30
|
|
|
height: 60px;
|
|
|
|
width: $contextual-sidebar-collapsed-width;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 10px 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-top-level-items > li {
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
&:not(.flyout-list) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.nav-icon-container {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.toggle-sidebar-button {
|
2018-03-17 18:26:18 +05:30
|
|
|
padding: 16px;
|
|
|
|
width: $contextual-sidebar-collapsed-width - 2px;
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
.collapse-text,
|
2018-03-17 18:26:18 +05:30
|
|
|
.icon-angle-double-left {
|
2017-09-10 17:25:29 +05:30
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.icon-angle-double-right {
|
2017-09-10 17:25:29 +05:30
|
|
|
display: block;
|
2018-03-17 18:26:18 +05:30
|
|
|
margin: 0;
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
.fly-out-top-item {
|
|
|
|
> a {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fly-out-badge {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fly-out-top-item-name {
|
|
|
|
flex: 1;
|
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
// Mobile nav
|
|
|
|
|
|
|
|
.close-nav-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-mobile-nav {
|
|
|
|
display: none;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 6px 16px;
|
2018-03-17 18:26:18 +05:30
|
|
|
margin: 0 0 0 -15px;
|
2017-09-10 17:25:29 +05:30
|
|
|
height: 46px;
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 20px;
|
|
|
|
color: $gl-text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
2018-03-17 18:26:18 +05:30
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
+ .breadcrumbs-links {
|
|
|
|
padding-left: $gl-padding;
|
|
|
|
border-left: 1px solid $gl-text-color-quaternary;
|
|
|
|
}
|
2017-09-10 17:25:29 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
.close-nav-button {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mobile-overlay {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&.mobile-nav-open {
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
background-color: $black-transparent;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Make issue boards full-height now that sub-nav is gone
|
|
|
|
|
|
|
|
.boards-list {
|
|
|
|
height: calc(100vh - #{$header-height});
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
height: calc(100vh - 180px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.with-performance-bar .boards-list {
|
|
|
|
height: calc(100vh - #{$header-height} - #{$performance-bar-height});
|
|
|
|
}
|