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

269 lines
4.2 KiB
SCSS
Raw Normal View History

2015-09-11 14:41:01 +05:30
.page-with-sidebar {
.sidebar-wrapper {
position: fixed;
top: 0;
bottom: 0;
overflow-y: auto;
overflow-x: hidden;
left: 0;
height: 100%;
transition-duration: .3s;
}
}
.sidebar-wrapper {
z-index: 99;
background: $background-color;
transition-duration: .3s;
}
.content-wrapper {
2015-09-25 12:07:36 +05:30
min-height: 100vh;
2015-09-11 14:41:01 +05:30
width: 100%;
padding: 20px;
2015-09-25 12:07:36 +05:30
background: #f1f4f8;
.container-fluid {
background: #FFF;
padding: $gl-padding;
border: 1px solid #e7e9ed;
min-height: 90vh;
&.container-blank {
background: none;
padding: 0;
border: none;
}
}
2015-09-11 14:41:01 +05:30
}
.nav-sidebar {
2015-09-25 12:07:36 +05:30
margin-top: 14 + $header-height;
margin-bottom: 100px;
2015-09-11 14:41:01 +05:30
transition-duration: .3s;
list-style: none;
overflow: hidden;
&.navbar-collapse {
padding: 0px !important;
}
li {
width: $sidebar_width;
&.separate-item {
padding-top: 10px;
margin-top: 10px;
}
a {
2015-09-25 12:07:36 +05:30
padding: 7px 15px;
font-size: $gl-font-size;
line-height: 24px;
2015-09-11 14:41:01 +05:30
color: $gray;
display: block;
text-decoration: none;
2015-09-25 12:07:36 +05:30
padding-left: 22px;
font-weight: normal;
2015-09-11 14:41:01 +05:30
&:hover {
text-decoration: none;
}
&:active, &:focus {
text-decoration: none;
}
i {
2015-09-25 12:07:36 +05:30
width: 16px;
2015-09-11 14:41:01 +05:30
color: $gray-light;
2015-09-25 12:07:36 +05:30
margin-right: 13px;
2015-09-11 14:41:01 +05:30
}
.count {
float: right;
background: #eee;
padding: 0px 8px;
@include border-radius(6px);
}
}
}
}
.sidebar-subnav {
margin-left: 0px;
padding-left: 0px;
li {
list-style: none;
}
}
@mixin expanded-sidebar {
padding-left: $sidebar_width;
transition-duration: .3s;
.sidebar-wrapper {
width: $sidebar_width;
.nav-sidebar {
width: $sidebar_width;
}
.nav-sidebar li a{
width: 230px;
&.back-link {
i {
visibility: hidden;
}
}
}
}
}
@mixin folded-sidebar {
2015-09-25 12:07:36 +05:30
padding-left: 60px;
2015-09-11 14:41:01 +05:30
transition-duration: .3s;
.sidebar-wrapper {
width: $sidebar_collapsed_width;
2015-09-25 12:07:36 +05:30
.header-logo {
width: $sidebar_collapsed_width;
a {
padding-left: 12px;
.gitlab-text-container {
display: none;
}
}
}
2015-09-11 14:41:01 +05:30
.nav-sidebar {
width: $sidebar_collapsed_width;
li a {
2015-09-25 12:07:36 +05:30
span {
display: none;
}
2015-09-11 14:41:01 +05:30
}
}
.collapse-nav a {
width: $sidebar_collapsed_width;
}
.sidebar-user {
2015-09-25 12:07:36 +05:30
padding-left: 12px;
2015-09-11 14:41:01 +05:30
width: $sidebar_collapsed_width;
2015-09-25 12:07:36 +05:30
.username {
display: none;
}
2015-09-11 14:41:01 +05:30
}
}
}
.collapse-nav a {
2015-09-25 12:07:36 +05:30
width: $sidebar_width;
2015-09-11 14:41:01 +05:30
position: fixed;
2015-09-25 12:07:36 +05:30
bottom: 0;
left: 0;
2015-09-11 14:41:01 +05:30
font-size: 13px;
background: transparent;
2015-09-25 12:07:36 +05:30
height: 40px;
2015-09-11 14:41:01 +05:30
text-align: center;
2015-09-25 12:07:36 +05:30
line-height: 40px;
2015-09-11 14:41:01 +05:30
transition-duration: .3s;
}
.collapse-nav a:hover {
text-decoration: none;
background: #f2f6f7;
}
@media (max-width: $screen-md-max) {
.page-sidebar-collapsed {
@include folded-sidebar;
}
.page-sidebar-expanded {
@include folded-sidebar;
}
.collapse-nav {
display: none;
}
}
@media(min-width: $screen-md-max) {
.page-sidebar-collapsed {
@include folded-sidebar;
}
.page-sidebar-expanded {
@include expanded-sidebar;
}
}
.sidebar-user {
2015-09-25 12:07:36 +05:30
padding: 9px 22px;
2015-09-11 14:41:01 +05:30
position: fixed;
2015-09-25 12:07:36 +05:30
bottom: 40px;
2015-09-11 14:41:01 +05:30
width: $sidebar_width;
overflow: hidden;
transition-duration: .3s;
.username {
2015-09-25 12:07:36 +05:30
margin-left: 10px;
2015-09-11 14:41:01 +05:30
width: $sidebar_width - 2 * 10px;
2015-09-25 12:07:36 +05:30
font-size: 16px;
line-height: 34px;
}
}
.sidebar-wrapper {
.header-logo {
border-bottom: 1px solid transparent;
float: left;
height: $header-height;
width: $sidebar_width;
overflow: hidden;
transition-duration: .3s;
a {
float: left;
height: $header-height;
width: 100%;
padding: 10px 22px;
overflow: hidden;
img {
width: 36px;
height: 36px;
float: left;
}
.gitlab-text-container {
width: 230px;
h3 {
width: 158px;
float: left;
margin: 0;
margin-left: 14px;
font-size: 19px;
line-height: 41px;
font-weight: normal;
}
}
}
&:hover {
background-color: #EEE;
}
2015-09-11 14:41:01 +05:30
}
}