at the end of the day, it was inevitable
This commit is contained in:
@@ -0,0 +1,417 @@
|
||||
// Closed Sidebar
|
||||
|
||||
// Sidebar Menu Hover
|
||||
|
||||
.closed-sidebar {
|
||||
.app-sidebar {
|
||||
transition: all .3s ease;
|
||||
width: $app-sidebar-width-collapsed;
|
||||
min-width: $app-sidebar-width-collapsed;
|
||||
flex: 0 0 $app-sidebar-width-collapsed;
|
||||
z-index: 13;
|
||||
|
||||
.app-sidebar__inner {
|
||||
|
||||
.app-sidebar__heading {
|
||||
text-indent: -999em;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: $dropdown-link-hover-bg;
|
||||
text-indent: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
text-indent: -99rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
text-indent: 0;
|
||||
left: 50%;
|
||||
margin-inline-start: -17px;
|
||||
}
|
||||
|
||||
.metismenu-state-icon {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
&.visible {
|
||||
padding: 0;
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
flex: 0 0 $app-sidebar-width !important;
|
||||
width: $app-sidebar-width !important;
|
||||
|
||||
.app-sidebar__inner {
|
||||
|
||||
.app-sidebar__heading {
|
||||
text-indent: initial;
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
text-indent: initial;
|
||||
padding: 0 $layout-spacer-x 0 45px;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
text-indent: initial;
|
||||
left: 5px;
|
||||
margin-inline-start: 0;
|
||||
}
|
||||
|
||||
.metismenu-state-icon {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
&.visible {
|
||||
padding: .5em 0 0 2rem;
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 2.3em;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
.metismenu-link {
|
||||
padding-inline-start: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.sidebar-mobile-open) {
|
||||
|
||||
.app-sidebar {
|
||||
.scrollbar-container {
|
||||
position: static;
|
||||
height: auto;
|
||||
overflow: initial !important;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.scrollbar-container {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.closed-sidebar-mobile) {
|
||||
.app-header {
|
||||
.app-header__logo {
|
||||
width: 160px;
|
||||
|
||||
.logo-src {
|
||||
background: url(../images/logo/logo-square-small.png)
|
||||
no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.fixed-sidebar {
|
||||
.app-main__outer {
|
||||
padding-inline-start: $app-sidebar-width-collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-header:not(.fixed-sidebar) {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.closed-sidebar-mobile {
|
||||
.app-sidebar,
|
||||
.app-header {
|
||||
.app-header__logo {
|
||||
width: auto;
|
||||
display: flex;
|
||||
|
||||
.header__pane {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: flex;
|
||||
width: $app-sidebar-width-collapsed;
|
||||
padding: 0 $layout-spacer-x !important;
|
||||
|
||||
.logo-src {
|
||||
display: block !important;
|
||||
margin: 0 auto;
|
||||
width: $logo-width - 76;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.app-header__logo {
|
||||
width: $app-sidebar-width;
|
||||
|
||||
.logo-src {
|
||||
width: $logo-width;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.app-header {
|
||||
margin-inline-start: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-footer {
|
||||
.app-footer__inner {
|
||||
margin-inline-start: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Right to Left language
|
||||
|
||||
[dir="rtl"] .closed-sidebar {
|
||||
.app-sidebar {
|
||||
transition: all .3s ease;
|
||||
width: $app-sidebar-width-collapsed;
|
||||
min-width: $app-sidebar-width-collapsed;
|
||||
flex: 0 0 $app-sidebar-width-collapsed;
|
||||
z-index: 13;
|
||||
|
||||
.app-sidebar__inner {
|
||||
|
||||
.app-sidebar__heading {
|
||||
text-indent: -999em;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: $dropdown-link-hover-bg;
|
||||
text-indent: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
text-indent: -99rem;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
text-indent: 0;
|
||||
right: 50%;
|
||||
margin-right: -17px;
|
||||
}
|
||||
|
||||
.metismenu-state-icon {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
&.visible {
|
||||
padding: 0;
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
flex: 0 0 $app-sidebar-width !important;
|
||||
width: $app-sidebar-width !important;
|
||||
|
||||
.app-sidebar__inner {
|
||||
|
||||
.app-sidebar__heading {
|
||||
text-indent: initial;
|
||||
&::before {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
text-indent: initial;
|
||||
padding: 0 45px 0 $layout-spacer-x;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
text-indent: initial;
|
||||
right: 5px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.metismenu-state-icon {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
&.visible {
|
||||
padding: .5em 2rem 0 0;
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 2.3em;
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
.metismenu-link {
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.sidebar-mobile-open) {
|
||||
|
||||
.app-sidebar {
|
||||
.scrollbar-container {
|
||||
position: static;
|
||||
height: auto;
|
||||
overflow: initial !important;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.scrollbar-container {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.closed-sidebar-mobile) {
|
||||
.app-header {
|
||||
.app-header__logo {
|
||||
width: 160px;
|
||||
|
||||
.logo-src {
|
||||
background: url(../images/logo/logo-square-small.png)
|
||||
no-repeat;
|
||||
background-size: contain;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&.fixed-sidebar {
|
||||
.app-main__outer {
|
||||
padding-right: $app-sidebar-width-collapsed;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-header:not(.fixed-sidebar) {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.closed-sidebar-mobile {
|
||||
.app-sidebar,
|
||||
.app-header {
|
||||
.app-header__logo {
|
||||
width: auto;
|
||||
display: flex;
|
||||
|
||||
.header__pane {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: flex;
|
||||
width: $app-sidebar-width-collapsed;
|
||||
padding: 0 $layout-spacer-x !important;
|
||||
|
||||
.logo-src {
|
||||
display: block !important;
|
||||
margin: 0 auto;
|
||||
width: $logo-width - 76;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.app-header__logo {
|
||||
width: $app-sidebar-width;
|
||||
|
||||
.logo-src {
|
||||
width: $logo-width;
|
||||
margin: 0;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.app-header {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-footer {
|
||||
.app-footer__inner {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
// Fixed Sidebar
|
||||
|
||||
.fixed-sidebar {
|
||||
.app-sidebar {
|
||||
position: fixed;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
.app-main__outer {
|
||||
z-index: 9;
|
||||
padding-inline-start: $app-sidebar-width;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-header {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.fixed-header) {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header {
|
||||
margin-inline-start: $app-sidebar-width;
|
||||
|
||||
.app-header__logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.app-main {
|
||||
//z-index: 12;
|
||||
}
|
||||
}
|
||||
|
||||
&.closed-sidebar {
|
||||
&:not(.fixed-header) {
|
||||
.app-header {
|
||||
margin-inline-start: $app-sidebar-width-collapsed;
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
width: $app-sidebar-width-collapsed;
|
||||
padding: 0;
|
||||
|
||||
.logo-src {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
margin-inline-end: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Right to Left language
|
||||
|
||||
[dir='rtl'] .fixed-sidebar {
|
||||
.app-sidebar {
|
||||
position: fixed;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
.app-main__outer {
|
||||
z-index: 9;
|
||||
padding-right: $app-sidebar-width;
|
||||
}
|
||||
}
|
||||
|
||||
&.fixed-header {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.fixed-header) {
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.app-header {
|
||||
margin-right: $app-sidebar-width;
|
||||
|
||||
.app-header__logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.app-main {
|
||||
//z-index: 12;
|
||||
}
|
||||
}
|
||||
|
||||
&.closed-sidebar {
|
||||
&:not(.fixed-header) {
|
||||
.app-header {
|
||||
margin-right: $app-sidebar-width-collapsed;
|
||||
}
|
||||
|
||||
.app-sidebar {
|
||||
.app-header__logo {
|
||||
width: $app-sidebar-width-collapsed;
|
||||
padding: 0;
|
||||
|
||||
.logo-src {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.header__pane {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
// Navigation Menu Vertical
|
||||
|
||||
.vertical-nav-menu {
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: " ";
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.metismenu-container,
|
||||
.metismenu-item {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
.metismenu-container {
|
||||
list-style: none;
|
||||
|
||||
&:before {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms;
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
transition: transform .2s, height 300ms, color 300ms, background-color 300ms;
|
||||
display: block;
|
||||
line-height: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0 $layout-spacer-x 0 45px;
|
||||
position: relative;
|
||||
@include border-radius($border-radius);
|
||||
color: $gray-800;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:hover {
|
||||
background: $dropdown-link-hover-bg;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
//transform: scale(1.02);
|
||||
|
||||
i.metismenu-icon {
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
i.metismenu-state-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $primary;
|
||||
background: $dropdown-link-hover-bg;
|
||||
}
|
||||
|
||||
&.has-active-child,
|
||||
&.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
i.metismenu-state-icon,
|
||||
i.metismenu-icon {
|
||||
text-align: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
top: 50%;
|
||||
margin-top: -17px;
|
||||
font-size: 1.5rem;
|
||||
opacity: .3;
|
||||
transition: color 300ms;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
i.metismenu-state-icon {
|
||||
transition: transform 300ms;
|
||||
left: auto;
|
||||
right: 0;
|
||||
|
||||
&:focus {
|
||||
outline-color: $secondary;
|
||||
}
|
||||
|
||||
&.rotate-minus-90 {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
transition: padding 300ms;
|
||||
|
||||
&.visible {
|
||||
padding: .5em 0 0 2rem;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
width: 3px;
|
||||
background: $dropdown-link-hover-bg;
|
||||
position: absolute;
|
||||
left: 20px;
|
||||
top: 0;
|
||||
@include border-radius(15px);
|
||||
}
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 2.3em;
|
||||
line-height: 2.3em;
|
||||
color: $gray-600;
|
||||
margin: 0 0 3px;
|
||||
|
||||
&:hover {
|
||||
color: $primary;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $primary;
|
||||
background: $dropdown-link-hover-bg;
|
||||
}
|
||||
}
|
||||
|
||||
& > * {
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
}
|
||||
|
||||
& > * {
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
padding-inline-start: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Right to Left language
|
||||
|
||||
[dir="rtl"] .vertical-nav-menu {
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: " ";
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.metismenu-container,
|
||||
.metismenu-item {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
}
|
||||
.metismenu-container {
|
||||
list-style: none;
|
||||
|
||||
&:before {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms;
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
transition: transform .2s, height 300ms, color 300ms, background-color 300ms;
|
||||
display: block;
|
||||
line-height: 2.5rem;
|
||||
height: 2.5rem;
|
||||
padding: 0 45px 0 $layout-spacer-x;
|
||||
position: relative;
|
||||
@include border-radius($border-radius);
|
||||
color: $gray-800;
|
||||
white-space: nowrap;
|
||||
text-align: start;
|
||||
|
||||
&:hover {
|
||||
background: $dropdown-link-hover-bg;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
//transform: scale(1.02);
|
||||
|
||||
i.metismenu-icon {
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
i.metismenu-state-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $primary;
|
||||
background: $dropdown-link-hover-bg;
|
||||
}
|
||||
|
||||
&.has-active-child,
|
||||
&.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
i.metismenu-state-icon,
|
||||
i.metismenu-icon {
|
||||
text-align: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 50%;
|
||||
margin-top: -17px;
|
||||
font-size: 1.5rem;
|
||||
opacity: .3;
|
||||
transition: color 300ms;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
i.metismenu-state-icon {
|
||||
transition: transform 300ms;
|
||||
right: auto;
|
||||
left: 0;
|
||||
|
||||
&.rotate-minus-90 {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-container {
|
||||
transition: padding 300ms;
|
||||
|
||||
&.visible {
|
||||
padding: .5em 2rem 0 0;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
height: 100%;
|
||||
opacity: 1;
|
||||
width: 3px;
|
||||
background: $dropdown-link-hover-bg;
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 0;
|
||||
@include border-radius(15px);
|
||||
}
|
||||
|
||||
& > .metismenu-item > .metismenu-link {
|
||||
height: 2.3em;
|
||||
line-height: 2.3em;
|
||||
color: $gray-600;
|
||||
margin: 0 0 3px;
|
||||
|
||||
&:hover {
|
||||
color: $primary;
|
||||
}
|
||||
|
||||
.metismenu-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $primary;
|
||||
background: $dropdown-link-hover-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.metismenu-link {
|
||||
padding-right: 1em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user