123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477 |
- // Sidebar
- .sidebar {
- width: $sidebar-collapsed-width;
- min-height: 100vh;
- .nav-item {
- position: relative;
- &:last-child {
- margin-bottom: 1rem;
- }
- .nav-link {
- text-align: center;
- padding: 0.75rem 1rem;
- width: $sidebar-collapsed-width;
- span {
- font-size: 0.65rem;
- display: block;
- }
- }
- &.active {
- .nav-link {
- font-weight: 700;
- }
- }
- // Accordion
- .collapse {
- position: absolute;
- left: calc(#{$sidebar-collapsed-width} + #{$grid-gutter-width} / 2);
- z-index: 1;
- top: 2px;
- // Grow In Animation
- @extend .animated--grow-in;
- .collapse-inner {
- border-radius: $border-radius;
- box-shadow: $box-shadow;
- }
- }
- .collapsing {
- display: none;
- transition: none;
- }
- .collapse,
- .collapsing {
- .collapse-inner {
- padding: .5rem 0;
- min-width: 10rem;
- font-size: $dropdown-font-size;
- margin: 0 0 1rem 0;
- .collapse-header {
- margin: 0;
- white-space: nowrap;
- padding: .5rem 1.5rem;
- text-transform: uppercase;
- font-weight: 800;
- font-size: 0.65rem;
- color: $gray-500;
- }
- .collapse-item {
- padding: 0.5rem 1rem;
- margin: 0 0.5rem;
- display: block;
- color: $gray-900;
- text-decoration: none;
- border-radius: $border-radius;
- white-space: nowrap;
- &:hover {
- background-color: $gray-200;
- }
- &:active {
- background-color: $gray-300;
- }
- &.active {
- color: $primary;
- font-weight: 700;
- }
- }
- }
- }
- }
- #sidebarToggle {
- width: 2.5rem;
- height: 2.5rem;
- text-align: center;
- margin-bottom: 1rem;
- cursor: pointer;
- &::after {
- font-weight: 900;
- content: '\f104';
- font-family: 'Font Awesome 5 Free';
- margin-right: 0.1rem;
- }
- &:hover {
- text-decoration: none;
- }
- &:focus {
- outline: none;
- }
- }
- &.toggled {
- width: 0 !important;
- overflow: hidden;
- #sidebarToggle::after {
- content: '\f105';
- font-family: 'Font Awesome 5 Free';
- margin-left: 0.25rem;
- }
- .sidebar-card {
- display: none;
- }
- }
- .sidebar-brand {
- height: $topbar-base-height;
- text-decoration: none;
- font-size: 1rem;
- font-weight: 800;
- padding: 1.5rem 1rem;
- text-align: center;
- text-transform: uppercase;
- letter-spacing: 0.05rem;
- z-index: 1;
- .sidebar-brand-icon i {
- font-size: 2rem;
- }
- .sidebar-brand-text {
- display: none;
- }
- }
- hr.sidebar-divider {
- margin: 0 1rem 1rem;
- }
- .sidebar-heading {
- text-align: center;
- padding: 0 1rem;
- font-weight: 800;
- font-size: 0.65rem;
- @extend .text-uppercase;
- }
- .sidebar-card {
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: $font-size-sm;
- border-radius: $border-radius;
- color: fade-out($white, 0.2);
- margin-left: 1rem;
- margin-right: 1rem;
- margin-bottom: 1rem;
- padding: 1rem;
- background-color: fade-out($black, 0.9);
- .sidebar-card-illustration {
- height: 3rem;
- display: block;
- }
- .sidebar-card-title {
- font-weight: bold;
- }
- p {
- font-size: 0.75rem;
- color: fade-out($white, 0.5);
- }
- }
- }
- @include media-breakpoint-up(md) {
- .sidebar {
- width: $sidebar-base-width !important;
- .nav-item {
- // Accordion
- .collapse {
- position: relative;
- left: 0;
- z-index: 1;
- top: 0;
- animation: none;
- .collapse-inner {
- border-radius: 0;
- box-shadow: none;
- }
- }
- .collapsing {
- display: block;
- transition: $transition-collapse;
- }
- .collapse,
- .collapsing {
- margin: 0 1rem;
- }
- .nav-link {
- display: block;
- width: 100%;
- text-align: left;
- padding: 1rem;
- width: $sidebar-base-width;
- i {
- font-size: 0.85rem;
- margin-right: 0.25rem;
- }
- span {
- font-size: 0.85rem;
- display: inline;
- }
- // Accordion Arrow Icon
- &[data-toggle="collapse"] {
- &::after {
- width: 1rem;
- text-align: center;
- float: right;
- vertical-align: 0;
- border: 0;
- font-weight: 900;
- content: '\f107';
- font-family: 'Font Awesome 5 Free';
- }
- &.collapsed::after {
- content: '\f105';
- }
- }
- }
- }
- .sidebar-brand {
- .sidebar-brand-icon i {
- font-size: 2rem;
- }
- .sidebar-brand-text {
- display: inline;
- }
- }
- .sidebar-heading {
- text-align: left;
- }
- &.toggled {
- overflow: visible;
- width: $sidebar-collapsed-width !important;
- .nav-item {
- // Accordion
- .collapse {
- position: absolute;
- left: calc(#{$sidebar-collapsed-width} + #{$grid-gutter-width} / 2);
- z-index: 1;
- top: 2px;
- // Grow In Animation for Toggled State
- animation-name: growIn;
- animation-duration: 200ms;
- animation-timing-function: transform cubic-bezier(.18, 1.25, .4, 1), opacity cubic-bezier(0, 1, .4, 1);
- .collapse-inner {
- box-shadow: $box-shadow;
- border-radius: $border-radius;
- }
- }
- .collapsing {
- display: none;
- transition: none;
- }
- .collapse,
- .collapsing {
- margin: 0;
- }
- &:last-child {
- margin-bottom: 1rem;
- }
- .nav-link {
- text-align: center;
- padding: 0.75rem 1rem;
- width: $sidebar-collapsed-width;
- span {
- font-size: 0.65rem;
- display: block;
- }
- i {
- margin-right: 0;
- }
- &[data-toggle="collapse"]::after {
- display: none;
- }
- }
- }
- .sidebar-brand {
- .sidebar-brand-icon i {
- font-size: 2rem;
- }
- .sidebar-brand-text {
- display: none;
- }
- }
- .sidebar-heading {
- text-align: center;
- }
- }
- }
- }
- // Sidebar Color Variants
- // Sidebar Light
- .sidebar-light {
- .sidebar-brand {
- color: $gray-700;
- }
- hr.sidebar-divider {
- border-top: 1px solid $gray-200;
- }
- .sidebar-heading {
- color: $gray-500;
- }
- .nav-item {
- .nav-link {
- color: $gray-600;
- i {
- color: $gray-400;
- }
- &:active,
- &:focus,
- &:hover {
- color: $gray-700;
- i {
- color: $gray-700;
- }
- }
- // Accordion
- &[data-toggle="collapse"]::after {
- color: $gray-500;
- }
- }
- &.active {
- .nav-link {
- color: $gray-700;
- i {
- color: $gray-700;
- }
- }
- }
- }
- // Color the sidebar toggler
- #sidebarToggle {
- background-color: $gray-200;
- &::after {
- color: $gray-500;
- }
- &:hover {
- background-color: $gray-300;
- }
- }
- }
- // Sidebar Dark
- .sidebar-dark {
- .sidebar-brand {
- color: $white;
- }
- hr.sidebar-divider {
- border-top: 1px solid fade-out($white, 0.85);
- }
- .sidebar-heading {
- color: fade-out($white, 0.6);
- }
- .nav-item {
- .nav-link {
- color: fade-out($white, 0.2);
- i {
- color: fade-out($white, 0.7);
- }
- &:active,
- &:focus,
- &:hover {
- color: $white;
- i {
- color: $white;
- }
- }
- // Accordion
- &[data-toggle="collapse"]::after {
- color: fade-out($white, 0.5);
- }
- }
- &.active {
- .nav-link {
- color: $white;
- i {
- color: $white;
- }
- }
- }
- }
- // Color the sidebar toggler
- #sidebarToggle {
- background-color: fade-out($white, 0.8);
- &::after {
- color: fade-out($white, 0.5);
- }
- &:hover {
- background-color: fade-out($white, 0.75);
- }
- }
- &.toggled {
- #sidebarToggle::after {
- color: fade-out($white, 0.5);
- }
- }
- }
|