| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552 |
- .wrapper {
- position: relative;
- top: 0;
- height: 100vh;
- }
- .sidebar {
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- z-index: 2;
- width: 260px;
- background: $white-color;
- @include shadow-big();
- .caret {
- display: inline-block;
- width: 0;
- height: 0;
- margin-left: 2px;
- vertical-align: middle;
- border-top: 4px dashed;
- border-top: 4px solid\9;
- border-right: 4px solid transparent;
- border-left: 4px solid transparent;
- }
- &[data-background-color="black"] {
- background-color: #191919;
- }
- .logo-img {
- width: 245px;
- display: block;
- height: 50px;
- margin-left: 5px;
- margin-right: 15px;
- background: url(/assets/img/denmark-logo.png) no-repeat;
- background-size: 240px;
- /*
- img {
- width: 215px;
- top: 10px;
- position: absolute;
- left: 15px;
- }*/
- }
- .sidebar-wrapper {
- position: relative;
- height: calc(100vh - 75px);
- overflow: auto;
- width: 260px;
- z-index: 4;
- padding-bottom: 30px;
- .dropdown .dropdown-backdrop {
- display: none !important;
- }
- .navbar-form {
- border: none;
- box-shadow: none;
- .input-group {
- font-size: 1.7em;
- height: 36px;
- width: 78%;
- padding-left: 17px;
- }
- }
- > .nav,
- .user .user-info {
- [data-toggle="collapse"] ~ div > ul > li > a {
- span {
- display: inline-block;
- @extend .animation-transition-general;
- }
- .sidebar-normal {
- margin: 0;
- position: relative;
- transform: translateX(0px);
- opacity: 1;
- white-space: nowrap;
- display: block;
- }
- .sidebar-mini {
- text-transform: uppercase;
- width: 30px;
- margin-right: 15px;
- text-align: center;
- letter-spacing: 1px;
- position: relative;
- float: left;
- display: inherit;
- }
- i {
- font-size: 17px;
- line-height: 20px;
- width: 26px;
- }
- }
- }
- }
- .logo-tim {
- border-radius: 50%;
- border: 1px solid #333;
- display: block;
- height: 61px;
- width: 61px;
- float: left;
- overflow: hidden;
- img {
- width: 60px;
- height: 60px;
- }
- }
- .nav {
- margin-top: 20px;
- display: block;
- .caret {
- margin-top: 13px;
- position: absolute;
- right: 6px;
- }
- li {
- > a,
- span {
- &:hover,
- &:focus {
- background-color: transparent;
- outline: none;
- }
- }
- &:first-child > a {
- margin: 0 15px;
- }
- &:hover > a,
- & .dropdown-menu a:hover,
- & .dropdown-menu a:focus,
- &.active > [data-toggle="collapse"] {
- background-color: rgba(200, 200, 200, 0.2);
- color: $black-color;
- box-shadow: none;
- }
- &.active > [data-toggle="collapse"] {
- i {
- color: #a9afbb;
- }
- }
- &.active > a,
- &.active > a i {
- color: $white-color;
- }
- &.separator {
- margin: 15px 0;
- &:after {
- width: calc(100% - 30px);
- content: "";
- position: absolute;
- height: 1px;
- left: 15px;
- background-color: rgba(180, 180, 180, 0.3);
- }
- & + li {
- margin-top: 31px;
- }
- }
- }
- p {
- margin: 0;
- line-height: 30px;
- font-size: 14px;
- position: relative;
- display: block;
- height: auto;
- white-space: nowrap;
- }
- i {
- font-size: 24px;
- float: left;
- margin-right: 15px;
- line-height: 30px;
- width: 30px;
- text-align: center;
- color: #a9afbb;
- }
- }
- .nav li a,
- .nav li .dropdown-menu a {
- margin: 10px 15px 0;
- border-radius: $border-radius-base;
- color: $black-color;
- padding-left: 10px;
- padding-right: 10px;
- text-transform: capitalize;
- font-size: $font-paragraph - 1;
- padding: 10px 12px;
- }
- .sidebar-background {
- position: absolute;
- z-index: 1;
- height: 100%;
- width: 100%;
- display: block;
- top: 0;
- left: 0;
- background-size: cover;
- background-position: center center;
- &:after {
- position: absolute;
- z-index: 3;
- width: 100%;
- height: 100%;
- content: "";
- display: block;
- background: #ffffff;
- opacity: 0.93;
- }
- }
- .logo {
- padding: 15px 0px;
- margin: 0;
- display: block;
- position: relative;
- z-index: 4;
- &:after {
- content: "";
- position: absolute;
- bottom: 0;
- right: 15px;
- height: 1px;
- width: calc(100% - 30px);
- background-color: rgba(180, 180, 180, 0.3);
- }
- p {
- float: left;
- font-size: 20px;
- margin: 10px 10px;
- color: $white-color;
- line-height: 20px;
- }
- .simple-text {
- text-transform: uppercase;
- padding: $padding-small-vertical $padding-zero;
- display: inline-block;
- font-size: 18px;
- color: $black-color;
- white-space: nowrap;
- font-weight: $font-weight-default;
- line-height: 30px;
- overflow: hidden;
- text-align: center;
- display: block;
- }
- }
- .logo-tim {
- border-radius: 50%;
- border: 1px solid #333;
- display: block;
- height: 61px;
- width: 61px;
- float: left;
- overflow: hidden;
- img {
- width: 60px;
- height: 60px;
- }
- }
- &[data-background-color="black"] {
- @include sidebar-background-color($gray-base, $white-color);
- .nav li .dropdown-menu .dropdown-item {
- color: $white-color;
- }
- }
- &[data-color="purple"] {
- @include set-background-color-button($brand-primary);
- }
- &[data-color="azure"] {
- @include set-background-color-button($brand-info);
- }
- &[data-color="green"] {
- @include set-background-color-button($brand-success);
- }
- &[data-color="orange"] {
- @include set-background-color-button($brand-warning);
- }
- &[data-color="danger"] {
- @include set-background-color-button($brand-danger);
- }
- &[data-color="rose"] {
- @include set-background-color-button($brand-rose);
- }
- &[data-color="black"] {
- @include set-background-color-button($black);
- }
- &[data-color="gray"] {
- @include set-background-color-button($gray-custom);
- }
- &[data-color="yellow"] {
- @include set-background-color-button($yellow-custom);
- }
- &[data-color="blue"] {
- @include set-background-color-button($blue-custom);
- }
- &[data-color="white"] {
- @include set-background-color-button($white-color);
- @include sidebar-active-color($black-color);
- }
- &[data-background-color="gray"] {
- @include sidebar-background-color($gray-custom, $white-color);
- .user,
- .logo,
- .nav li.separator {
- &:after {
- background-color: rgba(255, 255, 255, 0.3);
- }
- }
- .nav {
- li:hover:not(.active) > a,
- li.active > [data-toggle="collapse"] {
- background-color: rgba(255, 255, 255, 0.1);
- }
- }
- }
- &[data-image]:after,
- &.has-image:after {
- opacity: 0.77;
- }
- &[data-background-color="red"] {
- @include sidebar-background-color($brand-danger, $white-color);
- .user,
- .logo,
- .nav li.separator {
- &:after {
- background-color: rgba(255, 255, 255, 0.3);
- }
- }
- .nav {
- li:hover:not(.active) > a,
- li.active > [data-toggle="collapse"] {
- background-color: rgba(255, 255, 255, 0.1);
- }
- }
- }
- &[data-image]:after,
- &.has-image:after {
- opacity: 0.77;
- }
- }
- .off-canvas-sidebar .navbar-collapse {
- .nav {
- > li > a,
- > li > a:hover {
- color: $white-color;
- margin: 0 15px;
- }
- > li > a:focus,
- > li > a:hover {
- background: rgba(200, 200, 200, 0.2);
- }
- }
- }
- .main-panel {
- position: relative;
- float: right;
- width: $sidebar-width;
- @include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
- .main-content {
- margin-top: 30px;
- padding: 20px 10px;
- min-height: calc(100vh - 123px);
- }
- .footer {
- border-top: 1px solid #e7e7e7;
- }
- .navbar {
- margin-bottom: 0;
- }
- .header {
- margin-bottom: 30px;
- .title {
- margin-top: 10px;
- margin-bottom: 10px;
- }
- }
- }
- .sidebar,
- .main-panel,
- .sidebar-wrapper {
- -webkit-transition-property: top, bottom, width;
- transition-property: top, bottom, width;
- -webkit-transition-duration: 0.2s, 0.2s, 0.35s;
- transition-duration: 0.2s, 0.2s, 0.35s;
- -webkit-transition-timing-function: linear, linear, ease;
- transition-timing-function: linear, linear, ease;
- -webkit-overflow-scrolling: touch;
- }
- .visible-on-sidebar-regular {
- display: inline-block !important;
- }
- .visible-on-sidebar-mini {
- display: none !important;
- }
- @media (min-width: 991px) {
- .sidebar-mini {
- .visible-on-sidebar-regular {
- display: none !important;
- }
- .visible-on-sidebar-mini {
- display: inline-block !important;
- }
- .sidebar,
- .sidebar .sidebar-wrapper {
- width: 80px;
- }
- .main-panel {
- width: $sidebar-mini-width;
- }
- .sidebar {
- display: block;
- font-weight: 200;
- z-index: 9999;
- .logo-img {
- width: 80px;
- display: block;
- overflow: hidden;
- background: url(/assets/img/denmark-small-logo.png) no-repeat;
- background-size: 80px;
- background-position-y: 0px;
- }
- .logo {
- a.logo-normal {
- opacity: 0;
- @include transform-translate-x(-25px);
- }
- }
- .sidebar-wrapper {
- > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
- .user
- .user-info
- [data-toggle="collapse"]
- ~ div
- > ul
- > li
- > a
- .sidebar-normal,
- .user .user-info > a > span,
- > .nav li > a p {
- @include transform-translate-x(-25px);
- opacity: 0;
- }
- }
- }
- .sidebar:hover {
- width: 260px;
- .logo {
- a.logo-normal {
- opacity: 1;
- @include transform-translate-x(0px);
- }
- }
- .sidebar-wrapper {
- width: 260px;
- > .nav li > a p,
- > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
- .user
- .user-info
- [data-toggle="collapse"]
- ~ div
- > ul
- > li
- > a
- .sidebar-normal,
- .user .user-info > a > span {
- @include transform-translate-x(0px);
- opacity: 1;
- }
- }
- }
- }
- .sidebar {
- .nav .nav-item {
- &.active-pro {
- position: absolute;
- width: 100%;
- bottom: 13px;
- }
- }
- }
- }
|