gitlab-org--gitlab-foss/app/assets/stylesheets/framework/sidebar.scss

239 lines
3.9 KiB
SCSS
Raw Normal View History

.page-with-sidebar {
padding: $header-height 0 25px;
2016-06-15 13:14:20 -04:00
transition: padding $sidebar-transition-duration;
&.page-sidebar-pinned {
.sidebar-wrapper {
2016-09-09 12:59:36 -04:00
box-shadow: none;
}
}
2015-01-16 03:09:25 -05:00
.sidebar-wrapper {
position: fixed;
top: 0;
bottom: 0;
2015-01-16 03:09:25 -05:00
left: 0;
height: 100%;
width: 0;
2016-06-15 13:14:20 -04:00
overflow: hidden;
transition: width $sidebar-transition-duration;
2016-09-09 12:59:36 -04:00
box-shadow: 2px 0 16px 0 $black-transparent;
2015-01-16 03:09:25 -05:00
}
}
.sidebar-wrapper {
2016-03-15 14:47:26 -04:00
z-index: 1000;
background: $background-color;
.nicescroll-rails-hr {
// TODO: Figure out why nicescroll doesn't hide horizontal bar
display: none!important;
}
}
.content-wrapper {
width: 100%;
2016-06-15 13:14:20 -04:00
transition: padding $sidebar-transition-duration;
.container-fluid {
background: #fff;
padding: 0 $gl-padding;
&.container-blank {
background: none;
padding: 0;
border: none;
}
}
}
.nav-sidebar {
position: absolute;
top: 50px;
bottom: 0;
2016-06-15 13:14:20 -04:00
width: $sidebar_width;
overflow-y: auto;
overflow-x: hidden;
&.navbar-collapse {
padding: 0 !important;
}
li {
&.separate-item {
padding-top: 10px;
margin-top: 10px;
}
.icon-container {
width: 34px;
display: inline-block;
text-align: center;
}
a {
padding: 7px $gl-sidebar-padding;
font-size: $gl-font-size;
line-height: 24px;
display: block;
text-decoration: none;
font-weight: normal;
2016-06-15 13:14:20 -04:00
&:hover,
&:active,
&:focus {
text-decoration: none;
}
i {
font-size: 16px;
2016-05-05 13:00:40 -04:00
}
i,
svg {
margin-right: 13px;
}
}
}
2016-06-10 13:27:05 -04:00
.count {
float: right;
padding: 0 8px;
2016-09-09 12:59:36 -04:00
border-radius: 6px;
2016-06-10 13:27:05 -04:00
}
}
.sidebar-action-buttons {
width: $sidebar_width;
2016-06-15 13:14:20 -04:00
position: absolute;
top: 0;
left: 0;
2016-06-15 13:14:20 -04:00
min-height: 50px;
2016-06-10 13:27:05 -04:00
padding: 5px 0;
font-size: 18px;
line-height: 30px;
.toggle-nav-collapse {
left: 0;
}
.pin-nav-btn {
right: 0;
display: none;
@media (min-width: $sidebar-breakpoint) {
display: block;
}
.fa {
transition: transform .15s;
.page-sidebar-pinned & {
transform: rotate(90deg);
}
}
}
}
.nav-header-btn {
padding: 10px $gl-sidebar-padding;
color: inherit;
transition-duration: .3s;
position: absolute;
top: 0;
2016-10-03 05:38:21 -04:00
cursor: pointer;
&:hover,
&:focus {
color: $white-light;
text-decoration: none;
}
}
.page-sidebar-expanded {
.sidebar-wrapper {
width: $sidebar_width;
}
}
.page-sidebar-pinned {
.content-wrapper,
.layout-nav {
@media (min-width: $sidebar-breakpoint) {
padding-left: $sidebar_width;
}
}
.merge-request-tabs-holder.affix {
@media (min-width: $sidebar-breakpoint) {
left: $sidebar_width;
}
}
&.right-sidebar-expanded {
.line-resolve-all-container {
display: none;
}
}
}
header.header-sidebar-pinned {
@media (min-width: $sidebar-breakpoint) {
padding-left: ($sidebar_width + $gl-padding);
2016-06-15 13:14:20 -04:00
.side-nav-toggle {
display: none;
}
.header-content {
padding-left: 0;
}
}
}
.right-sidebar-collapsed {
padding-right: 0;
2016-02-29 18:04:40 -05:00
@media (min-width: $screen-sm-min) {
padding-right: $sidebar_collapsed_width;
.merge-request-tabs-holder.affix {
right: $sidebar_collapsed_width;
}
2016-02-29 18:04:40 -05:00
}
2016-03-27 11:04:51 -04:00
.sidebar-collapsed-icon {
cursor: pointer;
.btn {
background-color: $gray-light;
}
2016-03-27 11:04:51 -04:00
}
}
.right-sidebar-expanded {
padding-right: 0;
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
&:not(.build-sidebar):not(.wiki-sidebar) {
padding-right: $sidebar_collapsed_width;
}
}
@media (min-width: $screen-md-min) {
padding-right: $gutter_width;
.merge-request-tabs-holder.affix {
right: $gutter_width;
}
}
&.with-overlay {
padding-right: $sidebar_collapsed_width;
}
}
.right-sidebar {
border-left: 1px solid $border-color;
}