diff options
author | Volpeon <git@volpeon.ink> | 2022-06-11 09:19:47 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-06-11 09:19:47 +0200 |
commit | df1c8e24bf97690fde881318cfb3b6285e5eda2f (patch) | |
tree | a62e5ca68826bae67accdd30dcff576ae28b4891 /src | |
parent | card -> media (diff) | |
download | iro-design-df1c8e24bf97690fde881318cfb3b6285e5eda2f.tar.gz iro-design-df1c8e24bf97690fde881318cfb3b6285e5eda2f.tar.bz2 iro-design-df1c8e24bf97690fde881318cfb3b6285e5eda2f.zip |
Added interactive badge, larger indent for blockquotes
Diffstat (limited to 'src')
-rw-r--r-- | src/objects/_badge.scss | 39 | ||||
-rw-r--r-- | src/scopes/_blockquotes.scss | 2 |
2 files changed, 39 insertions, 2 deletions
diff --git a/src/objects/_badge.scss b/src/objects/_badge.scss index 86d5ad2..f12ec1c 100644 --- a/src/objects/_badge.scss +++ b/src/objects/_badge.scss | |||
@@ -22,10 +22,23 @@ | |||
22 | --colors: ( | 22 | --colors: ( |
23 | --bg: fn.global-color(--obj-hi), | 23 | --bg: fn.global-color(--obj-hi), |
24 | --label: fn.global-color(--fg-lo), | 24 | --label: fn.global-color(--fg-lo), |
25 | --hover: ( | ||
26 | --bg: fn.global-color(--obj), | ||
27 | ), | ||
28 | --active: ( | ||
29 | --bg: fn.global-color(--obj-lo), | ||
30 | ), | ||
31 | |||
25 | --accent: ( | 32 | --accent: ( |
26 | --bg: fn.global-color(--accent --primary --bg), | 33 | --bg: fn.global-color(--accent --primary --bg), |
27 | --label: fn.global-color(--accent --primary --fg), | 34 | --label: fn.global-color(--accent --primary --fg), |
28 | ) | 35 | --hover: ( |
36 | --bg: fn.global-color(--accent --primary --obj), | ||
37 | ), | ||
38 | --active: ( | ||
39 | --bg: fn.global-color(--accent --primary --obj-lo), | ||
40 | ), | ||
41 | ), | ||
29 | ), | 42 | ), |
30 | ), 'colors'); | 43 | ), 'colors'); |
31 | 44 | ||
@@ -37,10 +50,34 @@ | |||
37 | color: fn.color(--label); | 50 | color: fn.color(--label); |
38 | font-size: fn.dim(--font-size); | 51 | font-size: fn.dim(--font-size); |
39 | text-align: center; | 52 | text-align: center; |
53 | |||
54 | &:link, | ||
55 | &:visited, | ||
56 | &:enabled { | ||
57 | &:hover { | ||
58 | background-color: fn.color(--hover --bg); | ||
59 | } | ||
60 | |||
61 | &:active { | ||
62 | background-color: fn.color(--active --bg); | ||
63 | } | ||
64 | } | ||
40 | 65 | ||
41 | @include iro.bem-modifier('accent') { | 66 | @include iro.bem-modifier('accent') { |
42 | background-color: fn.color(--accent --bg); | 67 | background-color: fn.color(--accent --bg); |
43 | color: fn.color(--accent --label); | 68 | color: fn.color(--accent --label); |
69 | |||
70 | &:link, | ||
71 | &:visited, | ||
72 | &:enabled { | ||
73 | &:hover { | ||
74 | background-color: fn.color(--accent --hover --bg); | ||
75 | } | ||
76 | |||
77 | &:active { | ||
78 | background-color: fn.color(--accent --active --bg); | ||
79 | } | ||
80 | } | ||
44 | } | 81 | } |
45 | 82 | ||
46 | @include iro.bem-modifier('fixed-100') { | 83 | @include iro.bem-modifier('fixed-100') { |
diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss index 8f25df9..0942542 100644 --- a/src/scopes/_blockquotes.scss +++ b/src/scopes/_blockquotes.scss | |||
@@ -4,7 +4,7 @@ | |||
4 | @include iro.props-namespace('blockquotes') { | 4 | @include iro.props-namespace('blockquotes') { |
5 | @include iro.props-store(( | 5 | @include iro.props-store(( |
6 | --dims: ( | 6 | --dims: ( |
7 | --pad-x: fn.global-dim(--size --250), | 7 | --pad-x: fn.global-dim(--size --400), |
8 | --margin-top: fn.global-dim(--paragraph --margin-top), | 8 | --margin-top: fn.global-dim(--paragraph --margin-top), |
9 | ) | 9 | ) |
10 | ), 'dims'); | 10 | ), 'dims'); |