mirror of
https://github.com/flarum/core.git
synced 2025-08-11 10:55:47 +02:00
feat: Declare & Use CSS Custom Properties (#3146)
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
.header-background() {
|
||||
background: @header-bg;
|
||||
background: var(--header-bg);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: @zindex-header;
|
||||
border-bottom: 1px solid @control-bg;
|
||||
z-index: var(--zindex-header);
|
||||
border-bottom: 1px solid var(--control-bg);
|
||||
transition: box-shadow 0.2s, transform 0.2s;
|
||||
|
||||
@media @phone {
|
||||
height: @header-height-phone;
|
||||
height: var(--header-height-phone);
|
||||
}
|
||||
@media @tablet-up {
|
||||
height: @header-height;
|
||||
height: var(--header-height);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user