1
0
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:
Sami Mazouz
2021-11-04 22:34:18 +01:00
committed by GitHub
parent 26bf5d350b
commit 809df29d29
44 changed files with 502 additions and 380 deletions

View File

@@ -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);
}
}