Skip to content

Commit

Permalink
ui(first): use css variable control offset and display
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Nov 13, 2023
1 parent a17b58a commit c6fd66b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/css/common/css-variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,18 @@
// ==============================================================================================
// first screen
// ==============================================================================================
--first-screen-display block // Option values: none | block

--first-screen-font-family var(--base-font-family)
--first-screen-font-size 2rem
--first-screen-font-color-light $text-color-3
--first-screen-font-color-dark $dark-text-color-3
--first-screen-font-offset 0

--first-screen-icon-size 1.8rem
--first-screen-icon-color-light $text-color-3
--first-screen-icon-color-dark $dark-text-color-3

--first-screen-header-font-color-light $text-color-3
--first-screen-header-font-color-dark $dark-text-color-3

Expand Down
2 changes: 2 additions & 0 deletions source/css/layout/_partial/first-screen.styl
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ $fs-bg-img-dark = $temp-fs-bg-img-dark ? $temp-fs-bg-img-dark : $fs-bg-img-light
}

.description {
display var(--first-screen-display)
color var(--first-screen-font-color-light)
font-weight bold
font-size var(--first-screen-font-size)
font-family var(--first-screen-font-family)
line-height 1.8
text-align center
transform translateY(var(--first-screen-font-offset))
opacity 0

.dark-mode & {
Expand Down

0 comments on commit c6fd66b

Please sign in to comment.