udemy-go-web-1/static/admin/scss/_layouts.scss

198 lines
5.4 KiB
SCSS
Raw Normal View History

/* Layouts */
// Sidebar Icon Only
.sidebar-icon-only {
@media (min-width: 992px) {
.navbar {
.navbar-brand-wrapper {
width: $sidebar-width-icon;
.brand-logo {
display: none;
}
.brand-logo-mini {
display: inline-block;
}
}
.navbar-menu-wrapper {
width: calc(100% - #{$sidebar-width-icon});
}
}
.sidebar {
width: $sidebar-width-icon;
.nav {
overflow: visible;
margin-left: 0;
margin-right: 0;
.nav-item {
position: relative;
.nav-link {
display: block;
padding-left: .5rem;
padding-right: .5rem;
text-align: center;
position: static;
.menu-title,
.badge,.menu-sub-title {
display: none;
}
.menu-title {
@include border-radius(0 5px 5px 0px);
background: $sidebar-light-menu-hover-bg;
@at-root #{selector-append(".rtl", &)} {
@include border-radius(5px 0 0 5px);
}
}
i {
&.menu-icon {
margin-right: 0;
margin-left: 0;
margin-bottom: 0;
}
&.menu-arrow {
display: none;
}
}
&[aria-expanded] {
.menu-title {
@include border-radius(0 5px 0 0px);
@at-root #{selector-append(".rtl", &)} {
@include border-radius(5px 0 0 0);
}
}
}
}
.collapse {
display: none;
}
&.hover-open {
.nav-link {
.menu-title {
@include display-flex;
@include align-items(center);
background: $sidebar-light-menu-hover-bg;
padding: 0.5rem 1.4rem;
left: $sidebar-width-icon;
position: absolute;
text-align: left;
top: 0;
bottom: 0;
width: $icon-only-collapse-width;
z-index: 1;
line-height: 1.8;
-webkit-box-shadow: 4px 0px 7px 0px rgba(182, 185, 189, 0.25);
box-shadow: 4px 0px 7px 0px rgba(182, 185, 189, 0.25);
@at-root #{selector-append(".rtl", &)} {
left: auto;
right: $sidebar-width-icon;
text-align: left;
-webkit-box-shadow: -4px 0px 7px 0px rgba(182, 185, 189, 0.25);
box-shadow: -4px 0px 7px 0px rgba(182, 185, 189, 0.25);
}
&:after {
display: none;
}
}
&:hover {
.menu-title {
background: $sidebar-light-menu-hover-bg;
}
}
}
.collapse,
.collapsing {
display: block;
background: $icon-only-menu-bg-light;
@include border-radius(0 0 5px 0);
position: absolute;
left: $sidebar-width-icon;
width: $icon-only-collapse-width;
-webkit-box-shadow: 4px 4px 7px 0px rgba(182, 185, 189, 0.25);
box-shadow: 4px 4px 7px 0px rgba(182, 185, 189, 0.25);
@at-root #{selector-append(".rtl", &)} {
left: auto;
right:$sidebar-width-icon;
@include border-radius(0 0 0 5px);
-webkit-box-shadow: -4px 4px 7px 0px rgba(182, 185, 189, 0.25);
box-shadow: -4px 4px 7px 0px rgba(182, 185, 189, 0.25);
}
}
}
}
&:not(.sub-menu) {
.nav-item {
&.active {
border-radius: 0;
}
&:hover {
.nav-link {
border-radius: 0;
}
}
}
}
&.sub-menu {
padding: $sidebar-icon-only-submenu-padding;
.nav-item {
.nav-link {
text-align: left;
padding-left: 20px;
}
}
}
}
}
.main-panel {
width: calc(100% - #{$sidebar-width-icon});
}
}
}
//RTL layout
.rtl {
direction: rtl;
text-align: right;
.sidebar {
.nav {
padding-right: 0;
&.sub-menu {
padding: $rtl-sidebar-submenu-padding;
@at-root #{selector-append(".sidebar-icon-only", &)} {
padding-right: 0rem;
.nav-item {
.nav-link {
padding-right: 3rem;
text-align: right;
&:before {
right: 1.75rem;
}
}
}
}
}
}
}
.product-chart-wrapper,
.tab-content .tab-pane .scroll-wrapper,
.sidebar-fixed .nav,
.table-responsive,
ul.chats {
&::-webkit-scrollbar {
width: 0.5em;
}
&::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
&::-webkit-scrollbar-thumb {
background-color: darkgrey;
outline: 1px solid slategrey;
}
}
}