debian-mirror-gitlab/app/assets/stylesheets/framework/sidebar.scss

160 lines
2.8 KiB
SCSS
Raw Normal View History

2015-09-11 14:41:01 +05:30
.content-wrapper {
width: 100%;
2016-06-22 15:30:34 +05:30
transition: padding $sidebar-transition-duration;
2015-09-25 12:07:36 +05:30
.container-fluid {
padding: 0 $gl-padding;
2015-09-25 12:07:36 +05:30
&.container-blank {
background: none;
padding: 0;
2018-03-17 18:26:18 +05:30
border: 0;
2015-09-25 12:07:36 +05:30
}
}
2015-09-11 14:41:01 +05:30
}
2016-06-22 15:30:34 +05:30
.nav-header-btn {
2016-08-24 12:49:21 +05:30
padding: 10px $gl-sidebar-padding;
2016-06-22 15:30:34 +05:30
color: inherit;
2018-10-15 14:42:47 +05:30
transition-duration: 0.3s;
2016-08-24 12:49:21 +05:30
position: absolute;
top: 0;
2016-11-03 12:29:30 +05:30
cursor: pointer;
2015-09-11 14:41:01 +05:30
2016-06-22 15:30:34 +05:30
&:hover,
&:focus {
color: $white-light;
2016-06-02 11:05:42 +05:30
text-decoration: none;
2016-04-02 18:10:28 +05:30
}
2016-06-02 11:05:42 +05:30
}
2016-04-02 18:10:28 +05:30
2016-06-02 11:05:42 +05:30
.right-sidebar-collapsed {
padding-right: 0;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-09-10 17:25:29 +05:30
&:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
2018-11-18 11:00:15 +05:30
padding-right: $gutter-collapsed-width;
2017-08-17 22:00:37 +05:30
}
2016-11-03 12:29:30 +05:30
.merge-request-tabs-holder.affix {
2018-11-18 11:00:15 +05:30
right: $gutter-collapsed-width;
2016-11-03 12:29:30 +05:30
}
2016-06-02 11:05:42 +05:30
}
.sidebar-collapsed-icon {
2016-08-24 12:49:21 +05:30
.btn {
background-color: $gray-light;
}
2018-03-17 18:26:18 +05:30
&:not(.disabled) {
cursor: pointer;
}
svg {
width: $gl-padding;
height: $gl-padding;
}
2016-06-02 11:05:42 +05:30
}
2015-09-11 14:41:01 +05:30
}
2016-06-02 11:05:42 +05:30
.right-sidebar-expanded {
padding-right: 0;
2017-08-17 22:00:37 +05:30
z-index: 300;
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
.btn-sidebar-action {
display: inline-flex;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-only(sm) {
2017-09-10 17:25:29 +05:30
&:not(.wiki-sidebar):not(.build-sidebar):not(.issuable-bulk-update-sidebar) .content-wrapper {
2018-11-18 11:00:15 +05:30
padding-right: $gutter-collapsed-width;
}
2016-06-02 11:05:42 +05:30
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2017-08-17 22:00:37 +05:30
.content-wrapper {
2018-11-18 11:00:15 +05:30
padding-right: $gutter-width;
2017-08-17 22:00:37 +05:30
}
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
&:not(.with-overlay) .merge-request-tabs-holder.affix {
2018-11-18 11:00:15 +05:30
right: $gutter-width;
2016-11-03 12:29:30 +05:30
}
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
&.with-overlay .merge-request-tabs-holder.affix {
2018-11-18 11:00:15 +05:30
right: $gutter-collapsed-width;
2017-08-17 22:00:37 +05:30
}
2016-06-02 11:05:42 +05:30
}
2015-09-11 14:41:01 +05:30
}
2016-09-13 17:45:13 +05:30
.right-sidebar {
border-left: 1px solid $border-color;
2017-09-10 17:25:29 +05:30
}
.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;
width: 0;
padding: 0;
transition: width $sidebar-transition-duration;
&.right-sidebar-expanded {
@include maintain-sidebar-dimensions;
width: $gutter-width;
.issuable-sidebar-header {
// matches `.top-area .nav-controls` for issuable index pages
padding: 11px 0;
}
.block:last-of-type {
2018-03-17 18:26:18 +05:30
border: 0;
2017-09-10 17:25:29 +05:30
}
}
&.right-sidebar-collapsed {
@include maintain-sidebar-dimensions;
width: 0;
padding: 0;
.block {
padding: 16px 0;
width: 250px;
border-bottom: 1px solid $border-color;
}
2017-08-17 22:00:37 +05:30
}
2017-09-10 17:25:29 +05:30
.issuable-sidebar {
padding: 0 3px;
width: calc(100% + 35px);
2017-08-17 22:00:37 +05:30
}
2016-09-13 17:45:13 +05:30
}
2018-03-17 18:26:18 +05:30
2018-10-15 14:42:47 +05:30
.issuable-sidebar .labels {
.value.dont-hide ~ .selectbox {
padding-top: $gl-padding-8;
}
}
2018-03-17 18:26:18 +05:30
.pikaday-container {
.pika-single {
margin-top: 2px;
width: 250px;
}
.dropdown-menu-toggle {
line-height: 20px;
}
}
.sidebar-collapsed-icon .sidebar-collapsed-value {
font-size: 12px;
}