mirror of
https://github.com/flarum/core.git
synced 2025-07-31 05:30:38 +02:00
[1.x] Custom Colorising with CSS Custom Properties (#3001)
* Start of conversion to CSS variables * Use variable for Badge colors * Use variable for avatar bg * Use variable for user card bg * Use css variables for hero * Use css variables for buttons * Use css variables for sidenav links * Cleaner style attr Co-authored-by: David Wheatley <hi@davwheat.dev>
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
& .Dropdown-menu {
|
||||
& > li > a {
|
||||
padding: 8px 0 8px 30px;
|
||||
color: @muted-color;
|
||||
color: var(--sidenav-color, @muted-color);
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
color: @link-color;
|
||||
color: var(--sidenav-color-hover, @link-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
}
|
||||
& > li.active > a {
|
||||
background: none;
|
||||
color: @primary-color;
|
||||
color: var(--sidenav-color-active, @primary-color);
|
||||
font-weight: bold;
|
||||
}
|
||||
& > .Dropdown-separator {
|
||||
|
Reference in New Issue
Block a user