Skip to content

Commit

Permalink
perf(first-screen): add icon color css variable
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Nov 8, 2023
1 parent 8f633ec commit c1f6172
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion source/css/common/css-variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
// first screen
// ==============================================================================================
--first-screen-font-size 2rem
--first-screen-icon-size 1.8rem
--first-screen-font-color-light $text-color-3
--first-screen-font-color-dark $dark-text-color-3
--first-screen-icon-size 1.8rem
--first-screen-icon-color-light $text-color-3
--first-screen-icon-color-dark $dark-text-color-3


// ==============================================================================================
Expand Down
19 changes: 17 additions & 2 deletions source/css/layout/_partial/first-screen.styl
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,30 @@ $fs-bg-img-dark = $temp-fs-bg-img-dark ? $temp-fs-bg-img-dark : $fs-bg-img-light
cursor pointer

i {
color var(--text-color-3)
color var(--first-screen-icon-color-light)
font-size var(--first-screen-icon-size)
}


svg {
width var(--first-screen-icon-size)
height var(--first-screen-icon-size)

path {
fill var(--text-color-3)
fill var(--first-screen-icon-color-light)
}
}


.dark-mode & {
i {
color var(--first-screen-icon-color-dark)
}

svg {
path {
fill var(--first-screen-icon-color-dark)
}
}
}

Expand All @@ -114,6 +128,7 @@ $fs-bg-img-dark = $temp-fs-bg-img-dark ? $temp-fs-bg-img-dark : $fs-bg-img-light
}
}


a {
display flex !important
align-items center !important
Expand Down

0 comments on commit c1f6172

Please sign in to comment.