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

260 lines
3.7 KiB
SCSS
Raw Normal View History

2015-09-11 14:41:01 +05:30
.page-with-sidebar {
2015-12-23 02:04:40 +05:30
padding-top: $header-height;
transition-duration: .3s;
2015-09-11 14:41:01 +05:30
.sidebar-wrapper {
position: fixed;
top: 0;
bottom: 0;
overflow-y: auto;
overflow-x: hidden;
left: 0;
height: 100%;
transition-duration: .3s;
}
}
.sidebar-wrapper {
2016-06-02 11:05:42 +05:30
z-index: 1000;
2015-09-11 14:41:01 +05:30
background: $background-color;
}
.content-wrapper {
width: 100%;
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
}
2015-12-23 02:04:40 +05:30
.sidebar-wrapper {
.sidebar-user {
padding: 15px 22px;
2015-12-23 02:04:40 +05:30
position: fixed;
bottom: 0;
2015-12-23 02:04:40 +05:30
width: $sidebar_width;
overflow: hidden;
transition-duration: .3s;
.username {
margin-left: 10px;
width: $sidebar_width - 2 * 10px;
font-size: 16px;
line-height: 34px;
}
}
}
.tanuki-shape {
transition: all 0.8s;
&:hover, &.highlight {
2015-12-23 02:04:40 +05:30
fill: rgb(255, 255, 255);
transition: all 0.1s;
}
}
2015-09-11 14:41:01 +05:30
.nav-sidebar {
margin-top: 22 + $header-height;
margin-bottom: 116px;
2015-09-11 14:41:01 +05:30
transition-duration: .3s;
list-style: none;
overflow: hidden;
&.navbar-collapse {
2016-06-02 11:05:42 +05:30
padding: 0 !important;
2015-09-11 14:41:01 +05:30
}
li {
width: $sidebar_width;
&.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 {
width: $sidebar_width;
padding: 7px 15px 7px 23px;
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
&:hover {
text-decoration: none;
}
&:active, &:focus {
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
}
2015-12-23 02:04:40 +05:30
&.back-link i {
transition-duration: .3s;
}
2015-09-11 14:41:01 +05:30
}
}
.count {
float: right;
padding: 0 8px;
@include border-radius(6px);
}
2015-09-11 14:41:01 +05:30
}
.sidebar-subnav {
2016-06-02 11:05:42 +05:30
margin-left: 0;
padding-left: 0;
2015-09-11 14:41:01 +05:30
li {
list-style: none;
}
}
2016-06-02 11:05:42 +05:30
.collapse-nav a {
width: $sidebar_width;
position: fixed;
top: 0;
2016-06-02 11:05:42 +05:30
left: 0;
padding: 5px 0;
font-size: 18px;
2016-06-02 11:05:42 +05:30
background: transparent;
height: 50px;
2016-06-02 11:05:42 +05:30
text-align: center;
line-height: 40px;
transition-duration: .3s;
outline: none;
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
&:hover {
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
.sidebar-wrapper {
&.hidden-nav {
width: 0;
2015-09-11 14:41:01 +05:30
}
}
2016-06-02 11:05:42 +05:30
.page-sidebar-collapsed {
padding-left: 0;
2016-04-02 18:10:28 +05:30
2015-09-11 14:41:01 +05:30
.sidebar-wrapper {
width: 0;
2015-09-25 12:07:36 +05:30
2015-09-11 14:41:01 +05:30
.nav-sidebar {
width: 0;
2015-09-11 14:41:01 +05:30
2015-12-23 02:04:40 +05:30
li {
width: auto;
a {
span {
display: none;
}
2015-09-25 12:07:36 +05:30
}
2015-09-11 14:41:01 +05:30
}
}
.collapse-nav a {
width: 0;
2016-06-02 11:05:42 +05:30
i {
display: none;
2016-06-02 11:05:42 +05:30
}
2015-09-11 14:41:01 +05:30
}
.sidebar-user {
width: 0;
padding-left: 0;
padding-right: 0;
2016-06-02 11:05:42 +05:30
2015-09-25 12:07:36 +05:30
.username {
display: none;
}
2015-09-11 14:41:01 +05:30
}
}
}
2016-06-02 11:05:42 +05:30
.page-sidebar-expanded {
@media (max-width: $screen-sm-max) {
2016-06-02 11:05:42 +05:30
padding-left: 0;
}
.sidebar-wrapper {
width: $sidebar_width;
.nav-sidebar {
width: $sidebar_width;
}
.nav-sidebar li a {
width: $sidebar_width;
&.back-link {
i {
opacity: 0;
}
}
}
}
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;
}
.sidebar-collapsed-icon {
cursor: pointer;
}
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;
}
&.with-overlay {
padding-right: $sidebar_collapsed_width;
}
2015-09-11 14:41:01 +05:30
}