fixed theme white on bright accent issue
This commit is contained in:
parent
78e9600167
commit
04c933e163
@ -12,6 +12,7 @@
|
|||||||
--theme-color-font-muted: rgba(44, 47, 58, 0.85);
|
--theme-color-font-muted: rgba(44, 47, 58, 0.85);
|
||||||
--theme-color-font-muted2: rgba(44, 47, 58, 0.65);
|
--theme-color-font-muted2: rgba(44, 47, 58, 0.65);
|
||||||
--theme-warning: #f44336;
|
--theme-warning: #f44336;
|
||||||
|
--theme-on-primary: #fff;
|
||||||
}
|
}
|
||||||
[data-theme="dark"] {
|
[data-theme="dark"] {
|
||||||
--theme-background: #1c1c1c;
|
--theme-background: #1c1c1c;
|
||||||
@ -43,27 +44,34 @@
|
|||||||
}
|
}
|
||||||
[data-accent="lightBlue"] {
|
[data-accent="lightBlue"] {
|
||||||
--theme-primary: #03a9f4;
|
--theme-primary: #03a9f4;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="cyan"] {
|
[data-accent="cyan"] {
|
||||||
--theme-primary: #00bcd4;
|
--theme-primary: #00bcd4;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="teal"] {
|
[data-accent="teal"] {
|
||||||
--theme-primary: #009688;
|
--theme-primary: #009688;
|
||||||
}
|
}
|
||||||
[data-accent="green"] {
|
[data-accent="green"] {
|
||||||
--theme-primary: #4caf50;
|
--theme-primary: #4caf50;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="lightGreen"] {
|
[data-accent="lightGreen"] {
|
||||||
--theme-primary: #8bc34a;
|
--theme-primary: #8bc34a;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="lime"] {
|
[data-accent="lime"] {
|
||||||
--theme-primary: #cddc39;
|
--theme-primary: #cddc39;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="yellow"] {
|
[data-accent="yellow"] {
|
||||||
--theme-primary: #ffeb3b;
|
--theme-primary: #ffeb3b;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="amber"] {
|
[data-accent="amber"] {
|
||||||
--theme-primary: #ffc107;
|
--theme-primary: #ffc107;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="deepOrange"] {
|
[data-accent="deepOrange"] {
|
||||||
--theme-primary: #ff5722;
|
--theme-primary: #ff5722;
|
||||||
@ -73,6 +81,7 @@
|
|||||||
}
|
}
|
||||||
[data-accent="grey"] {
|
[data-accent="grey"] {
|
||||||
--theme-primary: #9e9e9e;
|
--theme-primary: #9e9e9e;
|
||||||
|
--theme-on-primary: #2c2f3a;
|
||||||
}
|
}
|
||||||
[data-accent="blueGrey"] {
|
[data-accent="blueGrey"] {
|
||||||
--theme-primary: #607d8b;
|
--theme-primary: #607d8b;
|
||||||
@ -125,4 +134,10 @@
|
|||||||
}
|
}
|
||||||
.theme-surface-transparent1 {
|
.theme-surface-transparent1 {
|
||||||
background: rgba(var(--theme-surface-rgb), 0.9) !important;
|
background: rgba(var(--theme-surface-rgb), 0.9) !important;
|
||||||
|
}
|
||||||
|
.theme-on-primary {
|
||||||
|
background-color: var(--theme-on-primary) !important;
|
||||||
|
}
|
||||||
|
.theme-on-primary-text {
|
||||||
|
color: var(--theme-on-primary) !important;
|
||||||
}
|
}
|
@ -626,6 +626,15 @@ input:disabled {
|
|||||||
top: unset;
|
top: unset;
|
||||||
bottom: 10px;
|
bottom: 10px;
|
||||||
}
|
}
|
||||||
|
.sidenav-active-rounded .sidenav li > a.active > i {
|
||||||
|
color: var(--theme-on-primary) !important;
|
||||||
|
}
|
||||||
|
.sidenav-active-rounded .sidenav li > a.active > span {
|
||||||
|
color: var(--theme-on-primary) !important;
|
||||||
|
}
|
||||||
|
.sidenav-active-rounded .sidenav li > a.active {
|
||||||
|
min-width: 3.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.border-bottom-1 {
|
.border-bottom-1 {
|
||||||
border-bottom: 1px solid var(--theme-background);
|
border-bottom: 1px solid var(--theme-background);
|
||||||
@ -730,7 +739,7 @@ span.badge.new {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.icon-btn:hover {
|
.icon-btn:hover {
|
||||||
color: white !important;
|
color: var(--theme-on-primary) !important;
|
||||||
background-color: var(--theme-primary);
|
background-color: var(--theme-primary);
|
||||||
border-radius: 24px;
|
border-radius: 24px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
@ -52,7 +52,7 @@ icon=None,
|
|||||||
float="right",
|
float="right",
|
||||||
href=None
|
href=None
|
||||||
)%}
|
)%}
|
||||||
<a class="waves-effect waves-light btn {{class}} {{float}}"
|
<a class="waves-effect waves-light btn {{class}} {{float}} theme-on-primary-text"
|
||||||
{% if id %}
|
{% if id %}
|
||||||
id="{{id}}"
|
id="{{id}}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{% block sidenav %}
|
{% block sidenav %}
|
||||||
<div id="show-sidenav" class="draggable z-depth-1 hide">
|
<div id="show-sidenav" class="draggable z-depth-1 hide">
|
||||||
<i class="material-icons-outlined white-text pointer">chevron_right</i>
|
<i class="material-icons-outlined theme-on-primary-text pointer">chevron_right</i>
|
||||||
</div>
|
</div>
|
||||||
<!-- BEGIN: SideNav-->
|
<!-- BEGIN: SideNav-->
|
||||||
<aside id="main-sidenav" class="sidenav-main nav-collapsed nav-collapsible sidenav-light sidenav-active-rounded z-depth-2">
|
<aside id="main-sidenav" class="sidenav-main nav-collapsed nav-collapsible sidenav-light sidenav-active-rounded z-depth-2">
|
||||||
@ -49,7 +49,11 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="navigation-background"></div><a id="sidenav-mobile-toggle-btn" class="sidenav-trigger btn-sidenav-toggle btn-floating btn-medium waves-effect waves-light hide-on-large-only theme-primary" href="#" data-target="slide-out"><i class="material-icons-outlined">menu</i></a>
|
<a id="sidenav-mobile-toggle-btn"
|
||||||
|
class="sidenav-trigger btn-sidenav-toggle btn-floating btn-medium waves-effect waves-light hide-on-large-only theme-primary"
|
||||||
|
href="#" data-target="slide-out">
|
||||||
|
<i class="material-icons-outlined theme-on-primary-text">menu</i>
|
||||||
|
</a>
|
||||||
</aside>
|
</aside>
|
||||||
<!-- END: SideNav-->
|
<!-- END: SideNav-->
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<ul class="collection with-header">
|
<ul class="collection with-header">
|
||||||
<li class="collection-header theme-primary white-text">Backgrounds</li>
|
<li class="collection-header theme-primary theme-on-primary-text">Backgrounds</li>
|
||||||
{% if backgrounds %}
|
{% if backgrounds %}
|
||||||
{% for background in backgrounds %}
|
{% for background in backgrounds %}
|
||||||
<li class="collection-item pt-2 pb-2 avatar">
|
<li class="collection-item pt-2 pb-2 avatar">
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<ul class="collection with-header">
|
<ul class="collection with-header">
|
||||||
<li class="collection-header theme-primary white-text">Icons</li>
|
<li class="collection-header theme-primary theme-on-primary-text">Icons</li>
|
||||||
{% if icons %}
|
{% if icons %}
|
||||||
{% for icon in icons %}
|
{% for icon in icons %}
|
||||||
<li class="collection-item pt-2 pb-2 avatar">
|
<li class="collection-item pt-2 pb-2 avatar">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user