2017-06-28 08:30:57 +00:00
|
|
|
@import "framework/variables";
|
|
|
|
@import 'framework/tw_bootstrap_variables';
|
|
|
|
@import "bootstrap/variables";
|
|
|
|
|
2017-07-08 12:53:12 +00:00
|
|
|
$active-background: rgba(0, 0, 0, .04);
|
2017-07-07 12:28:06 +00:00
|
|
|
$active-border: $indigo-500;
|
|
|
|
$active-color: $indigo-700;
|
|
|
|
$active-hover-background: $active-background;
|
|
|
|
$active-hover-color: $gl-text-color;
|
2017-07-08 12:53:12 +00:00
|
|
|
$inactive-badge-background: rgba(0, 0, 0, .08);
|
2017-07-07 12:28:06 +00:00
|
|
|
$hover-background: $indigo-700;
|
|
|
|
$hover-color: $white-light;
|
|
|
|
$inactive-color: $gl-text-color-secondary;
|
2017-06-28 08:30:57 +00:00
|
|
|
$new-sidebar-width: 220px;
|
|
|
|
|
|
|
|
.page-with-new-sidebar {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
padding-left: $new-sidebar-width;
|
|
|
|
}
|
|
|
|
|
2017-06-27 20:30:15 +00:00
|
|
|
// Override position: absolute
|
2017-06-28 08:30:57 +00:00
|
|
|
.right-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2017-07-24 07:47:38 +00:00
|
|
|
|
|
|
|
.issues-bulk-update.right-sidebar.right-sidebar-expanded .issuable-sidebar-header {
|
|
|
|
padding: 10px 0 15px;
|
|
|
|
}
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
|
2017-06-27 20:30:15 +00:00
|
|
|
.context-header {
|
2017-07-17 22:33:12 +00:00
|
|
|
position: relative;
|
2017-06-28 14:52:11 +00:00
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
a {
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
font-weight: 600;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 10px 16px 10px 10px;
|
|
|
|
color: $gl-text-color;
|
2017-07-07 12:28:06 +00:00
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
padding-right: 30px;
|
2017-07-07 12:28:06 +00:00
|
|
|
}
|
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: $hover-background;
|
|
|
|
color: $hover-color;
|
|
|
|
border-color: $hover-background;
|
2017-07-07 12:28:06 +00:00
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
.avatar-container {
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.settings-avatar {
|
|
|
|
background-color: $indigo-500;
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: $hover-color;
|
|
|
|
}
|
2017-07-07 12:28:06 +00:00
|
|
|
}
|
|
|
|
}
|
2017-06-28 14:52:11 +00:00
|
|
|
}
|
2017-07-07 16:23:56 +00:00
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
.avatar-container {
|
|
|
|
flex: 0 0 40px;
|
|
|
|
background-color: $white-light;
|
|
|
|
}
|
|
|
|
|
2017-07-07 16:23:56 +00:00
|
|
|
.project-title,
|
|
|
|
.group-title {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
2017-07-17 22:33:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.close-nav-button {
|
|
|
|
color: $white-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.close-nav-button {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 100%;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0 10px;
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $gl-text-color;
|
|
|
|
}
|
|
|
|
}
|
2017-06-27 20:30:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.settings-avatar {
|
|
|
|
background-color: $white-light;
|
|
|
|
|
2017-06-29 12:05:07 +00:00
|
|
|
i {
|
2017-06-27 20:30:15 +00:00
|
|
|
font-size: 20px;
|
|
|
|
width: 100%;
|
2017-06-28 14:52:11 +00:00
|
|
|
color: $gl-text-color-secondary;
|
2017-06-27 20:30:15 +00:00
|
|
|
text-align: center;
|
|
|
|
align-self: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-28 08:30:57 +00:00
|
|
|
.nav-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
z-index: 400;
|
|
|
|
width: $new-sidebar-width;
|
2017-07-18 16:40:42 +00:00
|
|
|
transition: left $sidebar-transition-duration;
|
2017-06-28 08:30:57 +00:00
|
|
|
top: 50px;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
overflow: auto;
|
2017-07-07 12:28:06 +00:00
|
|
|
background-color: $gray-normal;
|
|
|
|
box-shadow: inset -2px 0 0 $border-color;
|
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
&.nav-sidebar-expanded {
|
2017-07-18 16:40:42 +00:00
|
|
|
left: 0;
|
2017-07-17 22:33:12 +00:00
|
|
|
}
|
|
|
|
|
2017-07-07 12:28:06 +00:00
|
|
|
a {
|
2017-07-18 18:43:33 +00:00
|
|
|
transition: none;
|
2017-07-07 12:28:06 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2017-06-28 08:30:57 +00:00
|
|
|
|
|
|
|
ul {
|
2017-07-07 12:28:06 +00:00
|
|
|
padding-left: 0;
|
2017-06-28 08:30:57 +00:00
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
2017-06-30 15:48:42 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
|
2017-06-28 08:30:57 +00:00
|
|
|
a {
|
|
|
|
display: block;
|
2017-07-07 12:28:06 +00:00
|
|
|
padding: 12px 16px;
|
|
|
|
color: $inactive-color;
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-07 12:28:06 +00:00
|
|
|
li.active {
|
|
|
|
box-shadow: inset 4px 0 0 $active-border;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
color: $active-color;
|
|
|
|
font-weight: 700;
|
|
|
|
}
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
2017-06-30 15:48:42 +00:00
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
2017-07-18 16:40:42 +00:00
|
|
|
left: (-$new-sidebar-width);
|
2017-06-30 15:48:42 +00:00
|
|
|
}
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
display: none;
|
2017-07-07 12:28:06 +00:00
|
|
|
padding-bottom: 8px;
|
2017-06-28 08:30:57 +00:00
|
|
|
|
|
|
|
> li {
|
|
|
|
a {
|
2017-07-07 12:28:06 +00:00
|
|
|
padding: 8px 16px 8px 24px;
|
2017-06-28 08:30:57 +00:00
|
|
|
|
2017-07-07 12:28:06 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $active-hover-background;
|
|
|
|
color: $active-hover-color;
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2017-07-07 12:28:06 +00:00
|
|
|
a {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: $active-background;
|
|
|
|
color: $active-color;
|
|
|
|
}
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-top-level-items {
|
|
|
|
> li {
|
2017-07-19 15:57:00 +00:00
|
|
|
> a {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
2017-07-26 16:25:49 +00:00
|
|
|
margin-left: 4px;
|
2017-07-19 15:57:00 +00:00
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-18 13:18:11 +00:00
|
|
|
&:not(.active) {
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
position: fixed;
|
2017-07-19 07:38:20 +00:00
|
|
|
top: 0;
|
2017-07-26 16:25:49 +00:00
|
|
|
left: 219px;
|
2017-07-18 13:18:11 +00:00
|
|
|
width: 150px;
|
2017-07-26 16:25:49 +00:00
|
|
|
margin-top: -1px;
|
|
|
|
padding: 1px;
|
|
|
|
background-color: $white-light;
|
2017-07-19 07:38:20 +00:00
|
|
|
box-shadow: 2px 1px 3px $dropdown-shadow-color;
|
2017-07-26 16:25:49 +00:00
|
|
|
border: 1px solid $gray-darker;
|
2017-07-19 15:57:00 +00:00
|
|
|
border-radius: 0 3px 3px 0;
|
2017-07-19 07:38:20 +00:00
|
|
|
|
2017-07-25 15:53:53 +00:00
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -20px;
|
|
|
|
bottom: -20px;
|
|
|
|
left: 0;
|
|
|
|
right: -20px;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
|
2017-07-19 07:38:20 +00:00
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 44px;
|
2017-07-19 15:57:00 +00:00
|
|
|
left: -30px;
|
2017-07-25 15:53:53 +00:00
|
|
|
right: 35px;
|
2017-07-19 07:38:20 +00:00
|
|
|
bottom: 0;
|
2017-07-24 15:14:29 +00:00
|
|
|
height: 100%;
|
|
|
|
max-height: 150px;
|
2017-07-19 07:38:20 +00:00
|
|
|
z-index: -1;
|
2017-07-24 15:14:29 +00:00
|
|
|
transform: skew(33deg);
|
|
|
|
}
|
|
|
|
|
2017-07-26 16:25:49 +00:00
|
|
|
&.is-above {
|
|
|
|
margin-top: 1px;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
top: auto;
|
|
|
|
bottom: 44px;
|
|
|
|
transform: skew(-30deg);
|
|
|
|
}
|
2017-07-19 07:38:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2017-07-26 16:25:49 +00:00
|
|
|
background-color: $gray-darker;
|
2017-07-19 07:38:20 +00:00
|
|
|
}
|
2017-07-18 13:18:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-28 08:30:57 +00:00
|
|
|
.badge {
|
|
|
|
float: right;
|
2017-07-07 12:28:06 +00:00
|
|
|
background-color: $inactive-badge-background;
|
|
|
|
color: $inactive-color;
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2017-07-07 12:28:06 +00:00
|
|
|
background: $active-background;
|
2017-06-28 08:30:57 +00:00
|
|
|
|
|
|
|
.badge {
|
2017-07-07 12:28:06 +00:00
|
|
|
color: $active-color;
|
|
|
|
font-weight: 600;
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-sub-level-items {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-18 13:18:11 +00:00
|
|
|
&:not(.active):hover > a,
|
2017-07-07 12:28:06 +00:00
|
|
|
> a:hover {
|
2017-07-26 16:25:49 +00:00
|
|
|
background-color: $white-light;
|
2017-06-28 08:30:57 +00:00
|
|
|
|
|
|
|
.badge {
|
2017-07-07 12:28:06 +00:00
|
|
|
background-color: $indigo-500;
|
|
|
|
color: $hover-color;
|
2017-06-28 08:30:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-17 22:33:12 +00:00
|
|
|
.toggle-mobile-nav {
|
|
|
|
display: none;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 6px 16px;
|
|
|
|
margin: 0 16px 0 -15px;
|
|
|
|
height: 46px;
|
|
|
|
border-right: 1px solid $gl-text-color-quaternary;
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 20px;
|
|
|
|
color: $gl-text-color-secondary;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $screen-xs-max) {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-18 16:40:42 +00:00
|
|
|
.mobile-overlay {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
&.mobile-nav-open {
|
|
|
|
display: block;
|
2017-07-20 01:26:18 +00:00
|
|
|
position: fixed;
|
2017-07-18 16:40:42 +00:00
|
|
|
background-color: $black-transparent;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
z-index: 300;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-28 08:30:57 +00:00
|
|
|
|
|
|
|
// Make issue boards full-height now that sub-nav is gone
|
|
|
|
|
|
|
|
.boards-list {
|
|
|
|
height: calc(100vh - 50px);
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm-min) {
|
|
|
|
height: 475px; // Needed for PhantomJS
|
|
|
|
// scss-lint:disable DuplicateProperty
|
2017-07-20 09:33:12 +00:00
|
|
|
height: calc(100vh - 180px);
|
2017-06-28 08:30:57 +00:00
|
|
|
// scss-lint:enable DuplicateProperty
|
|
|
|
}
|
|
|
|
}
|
2017-07-07 12:28:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Change color of all horizontal tabs to match the new indigo color
|
|
|
|
.nav-links li.active a {
|
|
|
|
border-bottom-color: $active-border;
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|