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

240 lines
3.9 KiB
SCSS
Raw Normal View History

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