diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/_base.scss | 12 | ||||
-rw-r--r-- | src/_declare-vars.scss | 2 | ||||
-rw-r--r-- | src/_scopes.scss | 1 | ||||
-rw-r--r-- | src/scopes/_blockquotes.scss | 4 | ||||
-rw-r--r-- | src/scopes/_lists.scss | 52 |
5 files changed, 65 insertions, 6 deletions
diff --git a/src/_base.scss b/src/_base.scss index cf7ff05..76589d3 100644 --- a/src/_base.scss +++ b/src/_base.scss | |||
@@ -26,7 +26,7 @@ code { | |||
26 | 26 | ||
27 | pre, | 27 | pre, |
28 | code { | 28 | code { |
29 | @include mx.set-font(--mono, (--size: calc(fn.dim(--font-size --100) - 1px))); | 29 | @include mx.set-font(--mono, (--size: .93em)); |
30 | } | 30 | } |
31 | 31 | ||
32 | pre { | 32 | pre { |
@@ -78,8 +78,14 @@ small { | |||
78 | 78 | ||
79 | ul, | 79 | ul, |
80 | ol { | 80 | ol { |
81 | margin: fn.dim(--paragraph --margin-top) 0 0; | 81 | margin: 0; |
82 | padding-left: fn.dim(--list --indent); | 82 | padding: 0; |
83 | list-style: none; | ||
84 | } | ||
85 | |||
86 | li { | ||
87 | margin: 0; | ||
88 | padding: 0; | ||
83 | } | 89 | } |
84 | 90 | ||
85 | :focus { | 91 | :focus { |
diff --git a/src/_declare-vars.scss b/src/_declare-vars.scss index b60374d..ae423c1 100644 --- a/src/_declare-vars.scss +++ b/src/_declare-vars.scss | |||
@@ -104,7 +104,7 @@ | |||
104 | ), | 104 | ), |
105 | 105 | ||
106 | --list: ( | 106 | --list: ( |
107 | --indent: 3rem, | 107 | --indent: fn.dim(--size --400, null), |
108 | ), | 108 | ), |
109 | ), | 109 | ), |
110 | ), 'dims'); | 110 | ), 'dims'); |
diff --git a/src/_scopes.scss b/src/_scopes.scss index 28c5399..9a9d8ca 100644 --- a/src/_scopes.scss +++ b/src/_scopes.scss | |||
@@ -2,4 +2,5 @@ | |||
2 | @use 'scopes/invisible-links'; | 2 | @use 'scopes/invisible-links'; |
3 | @use 'scopes/code'; | 3 | @use 'scopes/code'; |
4 | @use 'scopes/blockquotes'; | 4 | @use 'scopes/blockquotes'; |
5 | @use 'scopes/lists'; | ||
5 | @use 'scopes/headings'; | 6 | @use 'scopes/headings'; |
diff --git a/src/scopes/_blockquotes.scss b/src/scopes/_blockquotes.scss index 0942542..37dc565 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 --400), | 7 | --indent: fn.global-dim(--list --indent), |
8 | --margin-top: fn.global-dim(--paragraph --margin-top), | 8 | --margin-top: fn.global-dim(--paragraph --margin-top), |
9 | ) | 9 | ) |
10 | ), 'dims'); | 10 | ), 'dims'); |
@@ -18,7 +18,7 @@ | |||
18 | @include iro.bem-scope(iro.props-namespace()) { | 18 | @include iro.bem-scope(iro.props-namespace()) { |
19 | blockquote { | 19 | blockquote { |
20 | margin: fn.dim(--margin-top) 0 0 1px; | 20 | margin: fn.dim(--margin-top) 0 0 1px; |
21 | padding-left: calc(fn.dim(--pad-x) - 3px); | 21 | padding-left: calc(fn.dim(--indent) - 3px); |
22 | border-left: 3px solid fn.color(--border); | 22 | border-left: 3px solid fn.color(--border); |
23 | } | 23 | } |
24 | } | 24 | } |
diff --git a/src/scopes/_lists.scss b/src/scopes/_lists.scss new file mode 100644 index 0000000..2ea342f --- /dev/null +++ b/src/scopes/_lists.scss | |||
@@ -0,0 +1,52 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('lists') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --indent: fn.global-dim(--list --indent), | ||
8 | --margin-top: fn.global-dim(--paragraph --margin-top), | ||
9 | ) | ||
10 | ), 'dims'); | ||
11 | |||
12 | @include iro.props-store(( | ||
13 | --colors: ( | ||
14 | --border: fn.global-color(--obj-hi), | ||
15 | ) | ||
16 | ), 'colors'); | ||
17 | |||
18 | @include iro.bem-scope(iro.props-namespace()) { | ||
19 | ul, | ||
20 | ol { | ||
21 | margin-top: fn.dim(--margin-top); | ||
22 | padding-left: fn.dim(--indent); | ||
23 | |||
24 | ul, | ||
25 | ol { | ||
26 | margin-top: 0; | ||
27 | } | ||
28 | } | ||
29 | |||
30 | ul { | ||
31 | list-style: disc; | ||
32 | } | ||
33 | |||
34 | ol { | ||
35 | list-style: decimal; | ||
36 | } | ||
37 | |||
38 | dl { | ||
39 | margin: fn.dim(--margin-top) 0 0; | ||
40 | padding: 0; | ||
41 | } | ||
42 | |||
43 | dt { | ||
44 | color: fn.global-color(--fg-lo); | ||
45 | font-weight: bold; | ||
46 | } | ||
47 | |||
48 | dd { | ||
49 | margin: 0 0 0 fn.dim(--indent); | ||
50 | } | ||
51 | } | ||
52 | } | ||