diff options
Diffstat (limited to 'assets/css')
| -rw-r--r-- | assets/css/_vars.scss | 2 | ||||
| -rw-r--r-- | assets/css/components/_footer.scss | 1 | ||||
| -rw-r--r-- | assets/css/components/_header.scss | 47 | ||||
| -rw-r--r-- | assets/css/scopes/_body.scss | 12 |
4 files changed, 43 insertions, 19 deletions
diff --git a/assets/css/_vars.scss b/assets/css/_vars.scss index ebbefad..848a764 100644 --- a/assets/css/_vars.scss +++ b/assets/css/_vars.scss | |||
| @@ -36,7 +36,6 @@ $content--width: 46rem; | |||
| 36 | 36 | ||
| 37 | @include store(( | 37 | @include store(( |
| 38 | --dims: ( | 38 | --dims: ( |
| 39 | --outer: 4rem, | ||
| 40 | --indent: 2rem, | 39 | --indent: 2rem, |
| 41 | 40 | ||
| 42 | --obj-shadow: 0 .4em 2.8em, | 41 | --obj-shadow: 0 .4em 2.8em, |
| @@ -171,7 +170,6 @@ $content--width: 46rem; | |||
| 171 | 170 | ||
| 172 | @include store(( | 171 | @include store(( |
| 173 | --dims: ( | 172 | --dims: ( |
| 174 | --outer: 3.5rem, | ||
| 175 | --indent: 1.5rem, | 173 | --indent: 1.5rem, |
| 176 | ), | 174 | ), |
| 177 | ), 'sm'); | 175 | ), 'sm'); |
diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss index 6371411..f4e6040 100644 --- a/assets/css/components/_footer.scss +++ b/assets/css/components/_footer.scss | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | @include component(namespace()) { | 10 | @include component(namespace()) { |
| 11 | position: relative; | 11 | position: relative; |
| 12 | min-height: prop(--dims --outer, $global: true); | ||
| 13 | margin-top: auto; | 12 | margin-top: auto; |
| 14 | overflow: hidden; | 13 | overflow: hidden; |
| 15 | background-color: prop(--colors --bg); | 14 | background-color: prop(--colors --bg); |
diff --git a/assets/css/components/_header.scss b/assets/css/components/_header.scss index 81e4d4f..e88d167 100644 --- a/assets/css/components/_header.scss +++ b/assets/css/components/_header.scss | |||
| @@ -1,9 +1,12 @@ | |||
| 1 | @include namespace('header') { | 1 | @include namespace('header') { |
| 2 | @include store(( | 2 | @include store(( |
| 3 | --colors: ( | 3 | --colors: ( |
| 4 | --fg: prop(--colors --fg-hi, $global: true), | 4 | --bg: prop(--colors --bg-lo, $global: true), |
| 5 | --fg: prop(--colors --fg-lo, $global: true), | ||
| 6 | --border: prop(--colors --bg, $global: true), | ||
| 5 | --hover: ( | 7 | --hover: ( |
| 6 | --fg: prop(--colors --fg-lo, $global: true), | 8 | --bg: prop(--colors --fg-lo, $global: true), |
| 9 | --fg: prop(--colors --bg-hi, $global: true), | ||
| 7 | ), | 10 | ), |
| 8 | --active: ( | 11 | --active: ( |
| 9 | --fg: prop(--colors --fg-lo, $global: true), | 12 | --fg: prop(--colors --fg-lo, $global: true), |
| @@ -11,32 +14,44 @@ | |||
| 11 | ), | 14 | ), |
| 12 | --dims: ( | 15 | --dims: ( |
| 13 | --height: 4rem, | 16 | --height: 4rem, |
| 14 | --pad-x: .6rem, | 17 | --icon: 1.5rem, |
| 18 | --pad-x: calc(0.5 * (var(--header--dims--height) - var(--header--dims--icon))), | ||
| 15 | ) | 19 | ) |
| 16 | )); | 20 | )); |
| 17 | 21 | ||
| 22 | @include store(( | ||
| 23 | --colors: ( | ||
| 24 | --bg: prop(--colors --bg-hi, $global: true), | ||
| 25 | ) | ||
| 26 | ), 'light'); | ||
| 27 | |||
| 18 | @include component(namespace()) { | 28 | @include component(namespace()) { |
| 19 | display: flex; | 29 | display: flex; |
| 20 | flex-direction: row; | 30 | height: prop(--dims --height); |
| 21 | justify-content: flex-start; | ||
| 22 | height: prop(--dims --height); | ||
| 23 | 31 | ||
| 24 | @include element('item') { | 32 | @include element('item') { |
| 25 | padding: 0 prop(--dims --pad-x); | 33 | padding: 0 prop(--dims --pad-x); |
| 26 | line-height: prop(--dims --height); | 34 | line-height: prop(--dims --height); |
| 27 | color: prop(--colors --fg); | 35 | color: prop(--colors --fg); |
| 28 | text-decoration: none; | 36 | background-color: prop(--colors --bg); |
| 37 | text-decoration: none; | ||
| 38 | transition: background-color .2s, color .2s; | ||
| 29 | 39 | ||
| 30 | &:hover { | 40 | &:hover { |
| 31 | color: prop(--colors --hover --fg); | 41 | color: prop(--colors --hover --fg); |
| 42 | background-color: prop(--colors --hover --bg); | ||
| 43 | } | ||
| 44 | |||
| 45 | @include next-twin-element { | ||
| 46 | //padding-left: calc(0.5 * #{prop(--dims --pad-x)}); | ||
| 47 | //margin-left: calc(-0.5 * #{prop(--dims --pad-x)}); | ||
| 48 | border-left: 1px solid prop(--colors --border); | ||
| 32 | } | 49 | } |
| 33 | 50 | ||
| 34 | @include modifier('icon') { | 51 | @include modifier('icon') { |
| 35 | display: flex; | 52 | display: flex; |
| 36 | align-items: center; | 53 | align-items: center; |
| 37 | justify-content: center; | 54 | justify-content: center; |
| 38 | padding: 0; | ||
| 39 | width: prop(--dims --height); | ||
| 40 | } | 55 | } |
| 41 | 56 | ||
| 42 | @include modifier('active') { | 57 | @include modifier('active') { |
| @@ -46,8 +61,8 @@ | |||
| 46 | } | 61 | } |
| 47 | 62 | ||
| 48 | @include element('icon') { | 63 | @include element('icon') { |
| 49 | width: 1.5em; | 64 | width: prop(--dims --icon); |
| 50 | height: 1.5em; | 65 | height: prop(--dims --icon); |
| 51 | } | 66 | } |
| 52 | } | 67 | } |
| 53 | } | 68 | } |
diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss index c11c11f..f1fd0aa 100644 --- a/assets/css/scopes/_body.scss +++ b/assets/css/scopes/_body.scss | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | @include namespace('body') { | 1 | @include namespace('body') { |
| 2 | @include store(( | 2 | @include store(( |
| 3 | --colors: ( | 3 | --colors: ( |
| 4 | --bg: transparent, | ||
| 4 | --meta: ( | 5 | --meta: ( |
| 5 | --fg: prop(--colors --fg-hi, $global: true), | 6 | --fg: prop(--colors --fg-hi, $global: true), |
| 6 | --bg: prop(--colors --bg-lo, $global: true), | 7 | --bg: prop(--colors --bg-lo, $global: true), |
| @@ -12,6 +13,7 @@ | |||
| 12 | --obj-border: prop(--colors --obj, $global: true), | 13 | --obj-border: prop(--colors --obj, $global: true), |
| 13 | ), | 14 | ), |
| 14 | --dims: ( | 15 | --dims: ( |
| 16 | --space-top: 4rem, | ||
| 15 | --meta: ( | 17 | --meta: ( |
| 16 | --pad-x: .6em, | 18 | --pad-x: .6em, |
| 17 | --pad-y: .2em | 19 | --pad-y: .2em |
| @@ -21,6 +23,7 @@ | |||
| 21 | 23 | ||
| 22 | @include store(( | 24 | @include store(( |
| 23 | --colors: ( | 25 | --colors: ( |
| 26 | --bg: prop(--colors --bg-hi, $global: true), | ||
| 24 | --meta: ( | 27 | --meta: ( |
| 25 | --bg: prop(--colors --bg, $global: true), | 28 | --bg: prop(--colors --bg, $global: true), |
| 26 | ), | 29 | ), |
| @@ -31,7 +34,16 @@ | |||
| 31 | ) | 34 | ) |
| 32 | ), 'light'); | 35 | ), 'light'); |
| 33 | 36 | ||
| 37 | @include store(( | ||
| 38 | --dims: ( | ||
| 39 | --space-top: 3rem, | ||
| 40 | ) | ||
| 41 | ), 'sm'); | ||
| 42 | |||
| 34 | @include scope(namespace()) { | 43 | @include scope(namespace()) { |
| 44 | margin-top: prop(--dims --space-top); | ||
| 45 | background-color: prop(--colors --bg); | ||
| 46 | |||
| 35 | @include element('meta') { | 47 | @include element('meta') { |
| 36 | display: inline-block; | 48 | display: inline-block; |
| 37 | padding: prop(--dims --meta --pad-y) prop(--dims --meta --pad-x); | 49 | padding: prop(--dims --meta --pad-y) prop(--dims --meta --pad-x); |
