mirror of https://github.com/ColorlibHQ/AdminLTE
improve dark mode variables
parent
e5a668aa45
commit
18f2d13650
|
@ -18,7 +18,6 @@
|
||||||
grid-area: brand-link;
|
grid-area: brand-link;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $white;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-bg-dark & {
|
.sidebar-bg-dark & {
|
||||||
border-bottom: $lte-brand-link-border-buttom solid tint-color($dark, 10%);
|
border-bottom: $lte-brand-link-border-buttom solid $gray-700;
|
||||||
|
|
||||||
.brand-link,
|
.brand-link,
|
||||||
.pushmenu {
|
.pushmenu {
|
||||||
|
|
|
@ -36,9 +36,9 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-color-primary {
|
// .sidebar-color-primary {
|
||||||
@include sidebar-color($primary);
|
// @include sidebar-color($primary);
|
||||||
}
|
// }
|
||||||
|
|
||||||
.main-sidebar {
|
.main-sidebar {
|
||||||
grid-area: main-sidebar;
|
grid-area: main-sidebar;
|
||||||
|
@ -46,4 +46,11 @@
|
||||||
z-index: $lte-zindex-sidebar;
|
z-index: $lte-zindex-sidebar;
|
||||||
min-width: $lte-sidebar-width;
|
min-width: $lte-sidebar-width;
|
||||||
max-width: $lte-sidebar-width;
|
max-width: $lte-sidebar-width;
|
||||||
|
|
||||||
|
.nav-sidebar > .nav-item {
|
||||||
|
> .nav-link.active {
|
||||||
|
background-color: var(--lte-sidebar-menu-active-bg);
|
||||||
|
color: var(--lte-sidebar-menu-active-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
@import "mixins/scrollbar";
|
@import "mixins/scrollbar";
|
||||||
@import "mixins/brand-variant";
|
@import "mixins/brand-variant";
|
||||||
@import "mixins/header-variant";
|
@import "mixins/header-variant";
|
||||||
@import "mixins/sidebar-color";
|
|
||||||
@import "mixins/nav-treeview-dark";
|
@import "mixins/nav-treeview-dark";
|
||||||
@import "mixins/nav-treeview-light";
|
@import "mixins/nav-treeview-light";
|
||||||
@import "mixins/cards";
|
@import "mixins/cards";
|
||||||
|
|
|
@ -1,32 +1,6 @@
|
||||||
.sidebar-close:not(.sidebar-horizontal) {
|
.sidebar-close:not(.sidebar-horizontal) {
|
||||||
.main-sidebar {
|
.main-sidebar {
|
||||||
margin-left: -#{$lte-sidebar-width};
|
// stylelint-disable-next-line
|
||||||
}
|
margin-left: calc(#{$lte-sidebar-width} * -1);
|
||||||
// @include media-breakpoint-up(md) {
|
|
||||||
// .main-brand {
|
|
||||||
// margin-left: -#{$lte-sidebar-width};
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
|
||||||
.layout-fixed {
|
|
||||||
// .main-header,
|
|
||||||
// .content-wrapper,
|
|
||||||
// .main-footer {
|
|
||||||
// margin-left: 0;
|
|
||||||
// }
|
|
||||||
// .main-header,
|
|
||||||
// .content-wrapper,
|
|
||||||
// .main-footer {
|
|
||||||
// margin-left: $lte-sidebar-width;
|
|
||||||
// }
|
|
||||||
// &.sidebar-collapse {
|
|
||||||
// .main-header,
|
|
||||||
// .content-wrapper,
|
|
||||||
// .main-footer {
|
|
||||||
// margin-left: $lte-sidebar-mini-width;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,13 @@ $navbar-nav-link-padding-x: 1rem;
|
||||||
// Dynamic Variables
|
// Dynamic Variables
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
:root {
|
:root {
|
||||||
|
// Sidebar
|
||||||
|
--lte-sidebar-width: 250px;
|
||||||
|
|
||||||
|
// Sidebar active links
|
||||||
|
--lte-sidebar-menu-active-bg: #{$primary};
|
||||||
|
--lte-sidebar-menu-active-color: #{$white};
|
||||||
|
|
||||||
// Dark Sidebar Native Variables
|
// Dark Sidebar Native Variables
|
||||||
--lte-sidebar-dark-bg: #343a40;
|
--lte-sidebar-dark-bg: #343a40;
|
||||||
--lte-sidebar-dark-hover-bg: rgba(255, 255, 255, .1);
|
--lte-sidebar-dark-hover-bg: rgba(255, 255, 255, .1);
|
||||||
|
@ -93,7 +100,7 @@ $lte-font-size-xl: ($font-size-base * 2) !default;
|
||||||
|
|
||||||
// Sidebar
|
// Sidebar
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
$lte-sidebar-width: 250px !default;
|
$lte-sidebar-width: var(--lte-sidebar-width);
|
||||||
$lte-sidebar-padding-x: .5rem !default;
|
$lte-sidebar-padding-x: .5rem !default;
|
||||||
$lte-sidebar-padding-y: .5rem !default;
|
$lte-sidebar-padding-y: .5rem !default;
|
||||||
$lte-sidebar-custom-height: 4rem !default;
|
$lte-sidebar-custom-height: 4rem !default;
|
||||||
|
@ -103,10 +110,11 @@ $lte-sidebar-custom-padding-x: .85rem !default;
|
||||||
$lte-sidebar-custom-padding-y: .5rem !default;
|
$lte-sidebar-custom-padding-y: .5rem !default;
|
||||||
$lte-sidebar-transition: min-width $lte-transition-speed $lte-transition-fn,
|
$lte-sidebar-transition: min-width $lte-transition-speed $lte-transition-fn,
|
||||||
max-width $lte-transition-speed $lte-transition-fn,
|
max-width $lte-transition-speed $lte-transition-fn,
|
||||||
margin-top $lte-transition-speed $lte-transition-fn,
|
|
||||||
margin-left $lte-transition-speed $lte-transition-fn,
|
margin-left $lte-transition-speed $lte-transition-fn,
|
||||||
margin-right $lte-transition-speed $lte-transition-fn,
|
margin-right $lte-transition-speed $lte-transition-fn;
|
||||||
transform $lte-transition-speed $lte-transition-fn;
|
|
||||||
|
// margin-top $lte-transition-speed $lte-transition-fn,
|
||||||
|
// transform $lte-transition-speed $lte-transition-fn;
|
||||||
|
|
||||||
// SIDEBAR SKINS
|
// SIDEBAR SKINS
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
|
@ -39,7 +39,7 @@ $grays-alt: (
|
||||||
) !default;
|
) !default;
|
||||||
// fusv-enable
|
// fusv-enable
|
||||||
|
|
||||||
$blue-alt: #375a7f !default;
|
$blue-alt: #1f6feb !default;
|
||||||
$indigo-alt: #673ab7 !default; //~~
|
$indigo-alt: #673ab7 !default; //~~
|
||||||
$purple-alt: #654ea3 !default; // Panatone CotY 2018
|
$purple-alt: #654ea3 !default; // Panatone CotY 2018
|
||||||
$pink-alt: #e83e8c !default;
|
$pink-alt: #e83e8c !default;
|
||||||
|
|
|
@ -8,12 +8,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: $gray-900-alt;
|
|
||||||
color: $white-alt;
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
background-color: tint-colors($gray-900-alt, 5%);
|
background-color: tint-colors($gray-900-alt, 5%);
|
||||||
color: $white-alt;
|
|
||||||
}
|
}
|
||||||
.nav.flex-column > li {
|
.nav.flex-column > li {
|
||||||
border-bottom-color: $gray-600-alt;
|
border-bottom-color: $gray-600-alt;
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
.table-bordered {
|
|
||||||
&,
|
|
||||||
td,
|
|
||||||
th {
|
|
||||||
border-color: $gray-600-alt;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.table-hover {
|
|
||||||
tbody tr:hover {
|
|
||||||
color: $gray-300-alt;
|
|
||||||
background-color: tint-color($dark-alt, 2.5%);
|
|
||||||
border-color: $gray-600-alt;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.table {
|
|
||||||
thead th {
|
|
||||||
border-bottom-color: $gray-600-alt;
|
|
||||||
}
|
|
||||||
th,
|
|
||||||
td {
|
|
||||||
border-top-color: $gray-600-alt;
|
|
||||||
}
|
|
||||||
&.table-head-fixed {
|
|
||||||
thead tr:nth-child(1) th {
|
|
||||||
background-color: tint-color($dark-alt, 5%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -2,6 +2,10 @@
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
// Sidebar active links
|
||||||
|
--lte-sidebar-menu-active-bg: #{$primary-alt};
|
||||||
|
--lte-sidebar-menu-active-color: #{$white-alt};
|
||||||
|
|
||||||
// Dark Sidebar Native Variables
|
// Dark Sidebar Native Variables
|
||||||
--lte-sidebar-dark-bg: #{$dark-alt};
|
--lte-sidebar-dark-bg: #{$dark-alt};
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
@import "../cards";
|
@import "../cards";
|
||||||
@import "../table";
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
@import "../main-header";
|
@import "../main-header";
|
||||||
// @import "../main-sidebar";
|
|
||||||
@import "../content-wrapper";
|
@import "../content-wrapper";
|
||||||
@import "../main-footer";
|
@import "../main-footer";
|
||||||
|
|
Loading…
Reference in New Issue