diff options
Diffstat (limited to 'src/.old/scopes')
-rw-r--r-- | src/.old/scopes/_code.scss | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src/.old/scopes/_code.scss b/src/.old/scopes/_code.scss deleted file mode 100644 index 4eb9458..0000000 --- a/src/.old/scopes/_code.scss +++ /dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('code') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --inline: ( | ||
8 | --pad-x: fn.global-dim(--size --50), | ||
9 | --pad-y: fn.global-dim(--size --10), | ||
10 | --rounding: 3px, | ||
11 | ), | ||
12 | --block: ( | ||
13 | --pad-x: fn.global-dim(--size --150), | ||
14 | --pad-y: fn.global-dim(--size --85), | ||
15 | --margin-top: fn.global-dim(--paragraph --margin-top), | ||
16 | --rounding: 3px, | ||
17 | ) | ||
18 | ) | ||
19 | ), 'dims'); | ||
20 | |||
21 | @include iro.props-store(( | ||
22 | --colors: ( | ||
23 | --inline: ( | ||
24 | --fg: fn.global-color(--red --quiet --fg), | ||
25 | --bg: fn.global-color(--red --quiet --bg), | ||
26 | ), | ||
27 | --block: ( | ||
28 | --fg: fn.global-color(--fg), | ||
29 | --bg: fn.global-color(--bg-hi2), | ||
30 | ) | ||
31 | ) | ||
32 | ), 'colors'); | ||
33 | |||
34 | @include iro.props-store(( | ||
35 | --colors: ( | ||
36 | --block: ( | ||
37 | --fg: fn.global-color(--fg-lo), | ||
38 | --bg: fn.global-color(--obj-hi), | ||
39 | ) | ||
40 | ) | ||
41 | ), 'palette-light-hi'); | ||
42 | |||
43 | @include iro.bem-scope(iro.props-namespace()) { | ||
44 | code { | ||
45 | padding: fn.dim(--inline --pad-y) fn.dim(--inline --pad-x); | ||
46 | border-radius: fn.dim(--inline --rounding); | ||
47 | background-color: fn.color(--inline --bg); | ||
48 | color: fn.color(--inline --fg); | ||
49 | } | ||
50 | |||
51 | pre { | ||
52 | margin: fn.dim(--block --margin-top) 0 0 0; | ||
53 | padding: fn.dim(--block --pad-y) fn.dim(--block --pad-x); | ||
54 | border-radius: fn.dim(--block --rounding); | ||
55 | background-color: fn.color(--block --bg); | ||
56 | color: fn.color(--block --fg); | ||
57 | |||
58 | code { | ||
59 | display: inline-block; | ||
60 | margin-right: fn.dim(--block --pad-x); | ||
61 | padding: 0; | ||
62 | border-radius: 0; | ||
63 | background-color: transparent; | ||
64 | color: currentColor; | ||
65 | } | ||
66 | } | ||
67 | } | ||
68 | } | ||