Skip to content

Commit

Permalink
fix(Theme): Move global background-color and color from body to app…
Browse files Browse the repository at this point in the history
… node

be more responsive to themes, because for the css variable to have the right value, we need to be under a node that carries the CozyTheme class. But in the `html, body` the tags are too high in the DOM, they're not under a CozyTheme tag, so the variable values aren't right.
  • Loading branch information
JF-Cozy committed Jan 10, 2024
1 parent 3f58ffe commit 53a1b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stylus/elements/defaults.styl
Expand Up @@ -56,12 +56,6 @@ body
+medium-screen()
overflow visible

// COLORS
html,
body
background-color var(--paperBackgroundColor)
color var(--primaryTextColor)

// FORMS
@require '../components/forms'

Expand Down
2 changes: 2 additions & 0 deletions stylus/objects/layouts.styl
Expand Up @@ -62,6 +62,8 @@ $app
max-width 100%
width 100%
height 100%
background-color var(--paperBackgroundColor)
color var(--primaryTextColor)

main
display flex
Expand Down

0 comments on commit 53a1b02

Please sign in to comment.