Skip to content

Commit

Permalink
🐛 (css) temporarly fix theme() usage in .css
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Jun 11, 2021
1 parent dba4705 commit 557c32b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/defaultTheme/css/main.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
/*
TODO: Fix that header-height variable using theme().
theme() does not get replaced upon generation.
We need to fix that.
*/

:root {
--header-height: theme('spacing.14');
--header-height: 3.5rem; /* theme('spacing.14'); */
--docs-scroll-margin-block: calc(var(--header-height) + 4rem);
--blogpost-scroll-margin-block: calc(var(--header-height));
}

@screen md {
:root {
--header-height: theme('spacing.18');
--header-height: 4.5rem; /* theme('spacing.18'); */
--blogpost-scroll-margin-block: calc(var(--header-height) - 0.5rem);
}
}
Expand Down

0 comments on commit 557c32b

Please sign in to comment.