diff options
author | Volpeon <git@volpeon.ink> | 2023-01-10 15:57:25 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-10 15:57:25 +0100 |
commit | 18b1bce0cbd23aa0f7fa5e883ba079e547554ad3 (patch) | |
tree | 91d8454d409eec74805829f4304592f8baa0f716 /assets/css | |
parent | Improved list page header (diff) | |
download | volpeon.ink-18b1bce0cbd23aa0f7fa5e883ba079e547554ad3.tar.gz volpeon.ink-18b1bce0cbd23aa0f7fa5e883ba079e547554ad3.tar.bz2 volpeon.ink-18b1bce0cbd23aa0f7fa5e883ba079e547554ad3.zip |
Updated headings
Diffstat (limited to 'assets/css')
-rw-r--r-- | assets/css/components/_hnav.scss | 37 | ||||
-rw-r--r-- | assets/css/components/_subheader.scss | 3 | ||||
-rw-r--r-- | assets/css/layouts/_card-list.scss | 14 | ||||
-rw-r--r-- | assets/css/style.scss | 1 |
4 files changed, 15 insertions, 40 deletions
diff --git a/assets/css/components/_hnav.scss b/assets/css/components/_hnav.scss deleted file mode 100644 index 4023c82..0000000 --- a/assets/css/components/_hnav.scss +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use 'iro-design/src/functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('hnav') { | ||
5 | @include iro.props-store(( | ||
6 | --colors: ( | ||
7 | --fg: fn.global-color(--fg-hi), | ||
8 | --border: fn.global-color(--obj), | ||
9 | ) | ||
10 | ), 'colors'); | ||
11 | |||
12 | @include iro.props-store(( | ||
13 | --dims: ( | ||
14 | --gap-x: fn.global-dim(--size --300), | ||
15 | --gap-y: fn.global-dim(--size --150), | ||
16 | --font-size: .9em, | ||
17 | --margin-top: fn.global-dim(--paragraph --margin-top), | ||
18 | --margin-bottom: fn.global-dim(--size --1000), | ||
19 | --pad-top: calc(fn.global-dim(--paragraph --margin-top) * .5), | ||
20 | ) | ||
21 | ), 'dims'); | ||
22 | |||
23 | @include iro.bem-component(iro.props-namespace()) { | ||
24 | display: flex; | ||
25 | flex-wrap: wrap; | ||
26 | gap: fn.dim(--gap-y) fn.dim(--gap-x); | ||
27 | align-items: baseline; | ||
28 | margin: fn.dim(--margin-top) 0 fn.dim(--margin-bottom); | ||
29 | padding-top: fn.dim(--pad-top); | ||
30 | border-top: 1px solid fn.color(--border); | ||
31 | color: fn.color(--fg); | ||
32 | |||
33 | @include iro.bem-elem('item') { | ||
34 | font-size: fn.dim(--font-size); | ||
35 | } | ||
36 | } | ||
37 | } | ||
diff --git a/assets/css/components/_subheader.scss b/assets/css/components/_subheader.scss index df8eb50..768ff84 100644 --- a/assets/css/components/_subheader.scss +++ b/assets/css/components/_subheader.scss | |||
@@ -14,7 +14,7 @@ | |||
14 | @include mx.set-font(--headline, ( | 14 | @include mx.set-font(--headline, ( |
15 | --line-height: null, | 15 | --line-height: null, |
16 | --size: fn.global-dim(--font-size --400), | 16 | --size: fn.global-dim(--font-size --400), |
17 | --weight: normal | 17 | --weight: 350 |
18 | )); | 18 | )); |
19 | 19 | ||
20 | color: fn.color(--fg); | 20 | color: fn.color(--fg); |
@@ -30,6 +30,7 @@ | |||
30 | } | 30 | } |
31 | 31 | ||
32 | @include iro.bem-elem('title') { | 32 | @include iro.bem-elem('title') { |
33 | margin-right: .2em; | ||
33 | font-size: inherit; | 34 | font-size: inherit; |
34 | font-weight: 800; | 35 | font-weight: 800; |
35 | letter-spacing: 1px; | 36 | letter-spacing: 1px; |
diff --git a/assets/css/layouts/_card-list.scss b/assets/css/layouts/_card-list.scss index d8e67ee..6d330c0 100644 --- a/assets/css/layouts/_card-list.scss +++ b/assets/css/layouts/_card-list.scss | |||
@@ -32,7 +32,19 @@ | |||
32 | font-size: fn.global-dim(--font-size --100); | 32 | font-size: fn.global-dim(--font-size --100); |
33 | 33 | ||
34 | @include iro.bem-elem('header') { | 34 | @include iro.bem-elem('header') { |
35 | margin-top: fn.dim(--margin-top); | 35 | display: flex; |
36 | align-items: center; | ||
37 | gap: fn.dim(--spacing); | ||
38 | margin-top: fn.dim(--margin-top); | ||
39 | } | ||
40 | |||
41 | @include iro.bem-elem('header-section') { | ||
42 | width: 100%; | ||
43 | |||
44 | @include iro.bem-next-twin-elem { | ||
45 | flex: 1 0 auto; | ||
46 | width: auto; | ||
47 | } | ||
36 | } | 48 | } |
37 | 49 | ||
38 | @include iro.bem-elem('footer') { | 50 | @include iro.bem-elem('footer') { |
diff --git a/assets/css/style.scss b/assets/css/style.scss index 1225b2e..5759a50 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss | |||
@@ -23,7 +23,6 @@ | |||
23 | @use 'components/footer'; | 23 | @use 'components/footer'; |
24 | @use 'components/header'; | 24 | @use 'components/header'; |
25 | @use 'components/subheader'; | 25 | @use 'components/subheader'; |
26 | @use 'components/hnav'; | ||
27 | @use 'components/card'; | 26 | @use 'components/card'; |
28 | @use 'components/figure'; | 27 | @use 'components/figure'; |
29 | @use 'components/exhibit'; | 28 | @use 'components/exhibit'; |