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

135 lines
2.5 KiB
SCSS
Raw Normal View History

.content-wrapper {
width: 100%;
2016-06-15 13:14:20 -04:00
transition: padding $sidebar-transition-duration;
.container-fluid {
2016-11-30 08:25:25 -05:00
background: $white-light;
padding: 0 $gl-padding;
&.container-blank {
background: none;
padding: 0;
border: none;
}
}
}
.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;
}
}
.right-sidebar-collapsed {
padding-right: 0;
2016-02-29 18:04:40 -05:00
@media (min-width: $screen-sm-min) {
&:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
2017-02-23 08:54:26 -05:00
padding-right: $gutter_collapsed_width;
}
.merge-request-tabs-holder.affix {
2017-02-13 11:34:01 -05:00
right: $gutter_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;
2017-05-15 10:01:38 -04:00
z-index: 300;
2017-02-23 08:54:26 -05:00
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
&:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
2017-02-23 08:54:26 -05:00
padding-right: $gutter_collapsed_width;
}
}
@media (min-width: $screen-md-min) {
2016-11-18 15:45:51 -05:00
.content-wrapper {
padding-right: $gutter_width;
}
&:not(.with-overlay) .merge-request-tabs-holder.affix {
right: $gutter_width;
}
&.with-overlay .merge-request-tabs-holder.affix {
2017-02-13 11:34:01 -05:00
right: $gutter_collapsed_width;
}
}
}
.right-sidebar {
border-left: 1px solid $border-color;
height: calc(100% - #{$header-height});
&.affix {
position: fixed;
2017-04-17 17:21:19 -04:00
top: $header-height;
}
}
.with-performance-bar .right-sidebar.affix {
top: $header-height + $performance-bar-height;
}
@mixin maintain-sidebar-dimensions {
display: block;
width: $gutter-width;
}
.issues-bulk-update.right-sidebar {
@include maintain-sidebar-dimensions;
2017-06-21 03:33:39 -04:00
width: 0;
padding: 0;
transition: width $sidebar-transition-duration;
&.right-sidebar-expanded {
@include maintain-sidebar-dimensions;
2017-06-21 03:33:39 -04:00
width: $gutter-width;
2017-07-24 03:47:38 -04:00
.issuable-sidebar-header {
// matches `.top-area .nav-controls` for issuable index pages
padding: 11px 0;
}
.block:last-of-type {
border: none;
}
}
&.right-sidebar-collapsed {
@include maintain-sidebar-dimensions;
2017-06-21 03:33:39 -04:00
width: 0;
padding: 0;
.block {
padding: 16px 0;
width: 250px;
border-bottom: 1px solid $border-color;
}
}
.issuable-sidebar {
padding: 0 3px;
2017-06-21 03:33:39 -04:00
width: calc(100% + 35px);
}
}