diff options
author | Volpeon <git@volpeon.ink> | 2022-02-14 18:45:32 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-14 18:45:32 +0100 |
commit | 248a90eb5fe1f5fa624423b81d0b18df85fabe35 (patch) | |
tree | a6d112b0929f065ebf7ac6d2916550d6dc5ff469 /src/layouts | |
parent | Adjusted spacings (diff) | |
download | iro-design-248a90eb5fe1f5fa624423b81d0b18df85fabe35.tar.gz iro-design-248a90eb5fe1f5fa624423b81d0b18df85fabe35.tar.bz2 iro-design-248a90eb5fe1f5fa624423b81d0b18df85fabe35.zip |
Restructured size variables
Diffstat (limited to 'src/layouts')
-rw-r--r-- | src/layouts/_card.scss | 28 | ||||
-rw-r--r-- | src/layouts/_container.scss | 14 | ||||
-rw-r--r-- | src/layouts/_form.scss | 6 |
3 files changed, 24 insertions, 24 deletions
diff --git a/src/layouts/_card.scss b/src/layouts/_card.scss index a0220c3..6b66a35 100644 --- a/src/layouts/_card.scss +++ b/src/layouts/_card.scss | |||
@@ -5,15 +5,15 @@ | |||
5 | @include iro.props-namespace('card') { | 5 | @include iro.props-namespace('card') { |
6 | @include iro.props-store(( | 6 | @include iro.props-store(( |
7 | --dims: ( | 7 | --dims: ( |
8 | --pad-x: fn.global-dim(--spacing --sm), | 8 | --pad-x: fn.global-dim(--size --150), |
9 | --pad-y: fn.global-dim(--spacing --xs), | 9 | --pad-y: fn.global-dim(--size --85), |
10 | --sm: ( | 10 | --75: ( |
11 | --pad-x: fn.global-dim(--spacing --xs), | 11 | --pad-x: fn.global-dim(--size --100), |
12 | --pad-y: fn.global-dim(--spacing --xxs), | 12 | --pad-y: fn.global-dim(--size --50), |
13 | ), | 13 | ), |
14 | --lg: ( | 14 | --200: ( |
15 | --pad-x: fn.global-dim(--spacing --md), | 15 | --pad-x: fn.global-dim(--size --300), |
16 | --pad-y: fn.global-dim(--spacing --sm), | 16 | --pad-y: fn.global-dim(--size --150), |
17 | ) | 17 | ) |
18 | ) | 18 | ) |
19 | ), 'dims'); | 19 | ), 'dims'); |
@@ -25,14 +25,14 @@ | |||
25 | gap: fn.dim(--pad-x); | 25 | gap: fn.dim(--pad-x); |
26 | line-height: 1.4; | 26 | line-height: 1.4; |
27 | 27 | ||
28 | @include iro.bem-modifier('sm') { | 28 | @include iro.bem-modifier('75') { |
29 | padding: fn.dim(--sm --pad-y) fn.dim(--sm --pad-x); | 29 | padding: fn.dim(--75 --pad-y) fn.dim(--75 --pad-x); |
30 | gap: fn.dim(--sm --pad-x); | 30 | gap: fn.dim(--75 --pad-x); |
31 | } | 31 | } |
32 | 32 | ||
33 | @include iro.bem-modifier('lg') { | 33 | @include iro.bem-modifier('200') { |
34 | padding: fn.dim(--lg --pad-y) fn.dim(--lg --pad-x); | 34 | padding: fn.dim(--200 --pad-y) fn.dim(--200 --pad-x); |
35 | gap: fn.dim(--lg --pad-x); | 35 | gap: fn.dim(--200 --pad-x); |
36 | } | 36 | } |
37 | 37 | ||
38 | @include iro.bem-modifier('flush') { | 38 | @include iro.bem-modifier('flush') { |
diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index d3ecb5f..b8fc879 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss | |||
@@ -7,9 +7,9 @@ | |||
7 | --dims: ( | 7 | --dims: ( |
8 | --content-width: iro.fn-px-to-rem(700px), | 8 | --content-width: iro.fn-px-to-rem(700px), |
9 | --sm-content-width: iro.fn-px-to-rem(360px), | 9 | --sm-content-width: iro.fn-px-to-rem(360px), |
10 | --pad-x: fn.global-dim(--spacing --xl), | 10 | --pad-x: fn.global-dim(--size --700), |
11 | --pad-y: fn.global-dim(--spacing --xl), | 11 | --pad-y: fn.global-dim(--size --700), |
12 | --in-page-spacing-y: fn.global-dim(--spacing --xl), | 12 | --in-page-spacing-y: fn.global-dim(--size --700), |
13 | ) | 13 | ) |
14 | ), 'dims'); | 14 | ), 'dims'); |
15 | 15 | ||
@@ -17,8 +17,8 @@ | |||
17 | overflow: hidden; | 17 | overflow: hidden; |
18 | 18 | ||
19 | @include iro.bem-elem('inner') { | 19 | @include iro.bem-elem('inner') { |
20 | margin-top: calc(-1 * fn.global-dim(--spacing --xl)); | 20 | margin-top: calc(-1 * fn.global-dim(--size --700)); |
21 | margin-bottom: calc(-1 * fn.global-dim(--spacing --xl)); | 21 | margin-bottom: calc(-1 * fn.global-dim(--size --700)); |
22 | 22 | ||
23 | &::before, | 23 | &::before, |
24 | &::after { | 24 | &::after { |
@@ -29,11 +29,11 @@ | |||
29 | } | 29 | } |
30 | 30 | ||
31 | &::before { | 31 | &::before { |
32 | margin-bottom: fn.global-dim(--spacing --xl); | 32 | margin-bottom: fn.global-dim(--size --700); |
33 | } | 33 | } |
34 | 34 | ||
35 | &::after { | 35 | &::after { |
36 | margin-top: fn.global-dim(--spacing --xl); | 36 | margin-top: fn.global-dim(--size --700); |
37 | } | 37 | } |
38 | } | 38 | } |
39 | 39 | ||
diff --git a/src/layouts/_form.scss b/src/layouts/_form.scss index a8308af..8228c44 100644 --- a/src/layouts/_form.scss +++ b/src/layouts/_form.scss | |||
@@ -6,9 +6,9 @@ | |||
6 | @include iro.props-namespace('form') { | 6 | @include iro.props-namespace('form') { |
7 | @include iro.props-store(( | 7 | @include iro.props-store(( |
8 | --dims: ( | 8 | --dims: ( |
9 | --item-spacing-y: fn.global-dim(--spacing --md), | 9 | --item-spacing-y: fn.global-dim(--size --325), |
10 | --label-spacing-x: fn.global-dim(--spacing --md), | 10 | --label-spacing-x: fn.global-dim(--size --325), |
11 | --hint-font-size: fn.global-dim(--font-size --sm), | 11 | --hint-font-size: fn.global-dim(--font-size --75), |
12 | ), | 12 | ), |
13 | ), 'dims'); | 13 | ), 'dims'); |
14 | 14 | ||