|
- #sidebar {
- min-width: 200px;
- max-width: 200px;
- background: #272822;
- color: #fff;
- transition: all 0.5s;
- overflow-y: scroll;
-
- &::-webkit-scrollbar {
- display:none
- }
-
- &.active {
- min-width: 60px;
- max-width: 60px;
- text-align: center;
-
- .sidebar-header {
- padding: 10px;
- display: flex;
- flex-direction: column;
-
- &-logo {
- overflow: hidden;
- margin-bottom: 10px;
-
- & > .logo-label {
- display: none;
- }
- }
- }
-
- ul li a {
- padding: 10px;
- text-align: center;
- font-size: 0.85em;
- display: flex;
- justify-content: center;
-
- span { display: none }
-
- i {
- margin-right: 0;
- display: block;
- font-size: 1.8em;
- margin-bottom: 5px;
- width: 30px;
- height: 20px;
- }
- }
-
- .dropdown-toggle::after {
- top: auto;
- bottom: 10px;
- right: 50%;
- -webkit-transform: translateX(50%);
- -ms-transform: translateX(50%);
- transform: translateX(50%);
- }
-
- ul ul a {
- padding: 10px !important;
-
- span { display: none }
-
- i {
- margin-left: 0px;
- display: block;
- font-size: 0.8em;
- width: 30px;
- height: 10px;
- }
- }
- }
-
- .sidebar-header {
- padding: 20px;
- background: #272822;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
-
- &-logo {
- display: flex;
- justify-content: space-between;
- align-items: center;
-
- & > img {
- //width: 40px;
- //height: auto;
- max-width: 130px !important;
- max-height: 40px !important;
- overflow: hidden;
- }
-
- & > .logo-label {
- font-size: 18px;
- color: darkgrey;
- margin-left: 10px;
- }
- }
- }
-
- #sidebarCollapse {
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- text-align: right;
-
- &.active {
- width: 40px;
- height: 30px;
- background: #3f3f3f;
- border: 1px solid grey;
- border-radius: 3px;
-
- i.fold { display: none; }
- i.unfold { display: block; }
- }
-
- i.fold {
- display: block;
- }
- i.unfold { display: none; }
- }
-
- a, a:hover, a:focus {
- color: inherit;
- text-decoration: none;
- transition: all 0.3s;
- }
-
- & > ul > li > a > i {
- width: 14px;
- height: 14px;
- }
-
- ul {
- &.components {
- padding: 20px 0;
- border-bottom: 1px solid #3f3f3f;
- }
-
- p {
- color: #fff;
- padding: 10px;
- }
-
- li > a {
- padding: 10px;
- font-size: 1em;
- display: block;
- text-align: left;
-
- i {
- margin-right: 10px;
- font-size: 1em;
- margin-bottom: 5px;
- }
- }
-
- li a {
- &:hover, &.active {
- color: #fff;
- background: #276891;
- }
- }
-
- li.active > a, a[aria-expanded="true"] {
- color: #fff;
- //background: #276891;
- }
-
- ul a {
- font-size: 0.9em !important;
- padding-left: 30px !important;
- background: #3f3f3f;
- }
- }
- }
-
- @media (max-width: 768px) {
- #sidebar {
- &.active {
- padding: 10px 5px;
- min-width: 40px;
- max-width: 40px;
- text-align: center;
- margin-left: 0;
- transform: none;
-
- .sidebar-header {
- padding: 0px;
-
- .sidebar-header-logo {
- display: none;
- }
-
- #sidebarCollapse {
- width: 30px;
- height: 20px;
- }
- }
-
- ul li a {
- padding: 10px;
- font-size: 0.85em;
-
- i {
- margin-right: 0;
- display: block;
- margin-bottom: 5px;
- }
- }
-
- & > ul > li > a > i {
- font-size: 1.8em;
- }
-
- ul ul a {
- padding: 10px !important;
- }
- }
-
- .sidebar-header {
- }
- }
-
- .dropdown-toggle::after {
- top: auto;
- bottom: 10px;
- right: 50%;
- -webkit-transform: translateX(50%);
- -ms-transform: translateX(50%);
- transform: translateX(50%);
- }
- }
|