diff options
author | Volpeon <git@volpeon.ink> | 2022-06-13 17:12:06 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-06-13 17:12:06 +0200 |
commit | 1f7708164ce01b511bc4dd7f1c09b1c190964867 (patch) | |
tree | f5d192e83d1fe4f269f13052c86dfdd31f3e7214 /src | |
parent | Added focus style for badge (diff) | |
download | iro-design-1f7708164ce01b511bc4dd7f1c09b1c190964867.tar.gz iro-design-1f7708164ce01b511bc4dd7f1c09b1c190964867.tar.bz2 iro-design-1f7708164ce01b511bc4dd7f1c09b1c190964867.zip |
Fix named viewports
Diffstat (limited to 'src')
-rw-r--r-- | src/_config.scss | 5 | ||||
-rw-r--r-- | src/_declare-vars.scss | 89 | ||||
-rw-r--r-- | src/_utils.scss | 4 | ||||
-rw-r--r-- | src/layouts/_container.scss | 4 |
4 files changed, 54 insertions, 48 deletions
diff --git a/src/_config.scss b/src/_config.scss index 26a1ad4..efb5746 100644 --- a/src/_config.scss +++ b/src/_config.scss | |||
@@ -1,4 +1,5 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'iro-sass/src/index' as iro; |
2 | @use 'iro-sass/src/responsive' as res; | ||
2 | @use 'include-media/dist/include-media' as media; | 3 | @use 'include-media/dist/include-media' as media; |
3 | 4 | ||
4 | iro.$vars-root-size: 16px; | 5 | iro.$vars-root-size: 16px; |
@@ -6,7 +7,7 @@ iro.$vars-root-size: 16px; | |||
6 | media.$breakpoints: ( | 7 | media.$breakpoints: ( |
7 | lg: 1340px, | 8 | lg: 1340px, |
8 | md: 900px, | 9 | md: 900px, |
9 | sm: 600px, | 10 | sm: 620px, |
10 | xs: 400px, | 11 | xs: 400px, |
11 | ); | 12 | ); |
12 | 13 | ||
@@ -17,6 +18,8 @@ media.$unit-intervals: ( | |||
17 | '': 0 | 18 | '': 0 |
18 | ); | 19 | ); |
19 | 20 | ||
21 | res.$named-viewports: media.$breakpoints; | ||
22 | |||
20 | $wanted-grays: ( | 23 | $wanted-grays: ( |
21 | --1: -1.2, | 24 | --1: -1.2, |
22 | --2: -1.1, | 25 | --2: -1.1, |
diff --git a/src/_declare-vars.scss b/src/_declare-vars.scss index ae423c1..6f52186 100644 --- a/src/_declare-vars.scss +++ b/src/_declare-vars.scss | |||
@@ -6,51 +6,50 @@ | |||
6 | @include iro.props-store(( | 6 | @include iro.props-store(( |
7 | --dims: ( | 7 | --dims: ( |
8 | --size: ( | 8 | --size: ( |
9 | --0: 0, | 9 | --0: 0, |
10 | --10: iro.fn-px-to-rem(1px), | 10 | --10: iro.fn-px-to-rem(1px), |
11 | --25: iro.fn-px-to-rem(2px), | 11 | --25: iro.fn-px-to-rem(2px), |
12 | --40: iro.fn-px-to-rem(3px), | 12 | --40: iro.fn-px-to-rem(3px), |
13 | --50: iro.fn-px-to-rem(4px), | 13 | --50: iro.fn-px-to-rem(4px), |
14 | --65: iro.fn-px-to-rem(5px), | 14 | --65: iro.fn-px-to-rem(5px), |
15 | --75: iro.fn-px-to-rem(6px), | 15 | --75: iro.fn-px-to-rem(6px), |
16 | --85: iro.fn-px-to-rem(7px), | 16 | --85: iro.fn-px-to-rem(7px), |
17 | --100: iro.fn-px-to-rem(8px), | 17 | --100: iro.fn-px-to-rem(8px), |
18 | --115: iro.fn-px-to-rem(9px), | 18 | --115: iro.fn-px-to-rem(9px), |
19 | --125: iro.fn-px-to-rem(10px), | 19 | --125: iro.fn-px-to-rem(10px), |
20 | --130: iro.fn-px-to-rem(11px), | 20 | --130: iro.fn-px-to-rem(11px), |
21 | --150: iro.fn-px-to-rem(12px), | 21 | --150: iro.fn-px-to-rem(12px), |
22 | --160: iro.fn-px-to-rem(13px), | 22 | --160: iro.fn-px-to-rem(13px), |
23 | --175: iro.fn-px-to-rem(14px), | 23 | --175: iro.fn-px-to-rem(14px), |
24 | --200: iro.fn-px-to-rem(16px), | 24 | --200: iro.fn-px-to-rem(16px), |
25 | --225: iro.fn-px-to-rem(18px), | 25 | --225: iro.fn-px-to-rem(18px), |
26 | --250: iro.fn-px-to-rem(20px), | 26 | --250: iro.fn-px-to-rem(20px), |
27 | --275: iro.fn-px-to-rem(22px), | 27 | --275: iro.fn-px-to-rem(22px), |
28 | --300: iro.fn-px-to-rem(24px), | 28 | --300: iro.fn-px-to-rem(24px), |
29 | --325: iro.fn-px-to-rem(26px), | 29 | --325: iro.fn-px-to-rem(26px), |
30 | --400: iro.fn-px-to-rem(32px), | 30 | --400: iro.fn-px-to-rem(32px), |
31 | --450: iro.fn-px-to-rem(36px), | 31 | --450: iro.fn-px-to-rem(36px), |
32 | --500: iro.fn-px-to-rem(40px), | 32 | --500: iro.fn-px-to-rem(40px), |
33 | --550: iro.fn-px-to-rem(44px), | 33 | --550: iro.fn-px-to-rem(44px), |
34 | --600: iro.fn-px-to-rem(48px), | 34 | --600: iro.fn-px-to-rem(48px), |
35 | --700: iro.fn-px-to-rem(56px), | 35 | --700: iro.fn-px-to-rem(56px), |
36 | --800: iro.fn-px-to-rem(64px), | 36 | --800: iro.fn-px-to-rem(64px), |
37 | --900: iro.fn-px-to-rem(72px), | 37 | --900: iro.fn-px-to-rem(72px), |
38 | --1000: iro.fn-px-to-rem(80px), | 38 | --1000: iro.fn-px-to-rem(80px), |
39 | --1200: iro.fn-px-to-rem(96px), | 39 | --1200: iro.fn-px-to-rem(96px), |
40 | --1700: iro.fn-px-to-rem(136px), | 40 | --1700: iro.fn-px-to-rem(136px), |
41 | --2400: iro.fn-px-to-rem(192px), | 41 | --2400: iro.fn-px-to-rem(192px), |
42 | --2500: iro.fn-px-to-rem(200px), | 42 | --2500: iro.fn-px-to-rem(200px), |
43 | --2600: iro.fn-px-to-rem(208px), | 43 | --2600: iro.fn-px-to-rem(208px), |
44 | --2800: iro.fn-px-to-rem(224px), | 44 | --2800: iro.fn-px-to-rem(224px), |
45 | --3200: iro.fn-px-to-rem(256px), | 45 | --3200: iro.fn-px-to-rem(256px), |
46 | --3400: iro.fn-px-to-rem(272px), | 46 | --3400: iro.fn-px-to-rem(272px), |
47 | --3500: iro.fn-px-to-rem(280px), | 47 | --3500: iro.fn-px-to-rem(280px), |
48 | --3600: iro.fn-px-to-rem(288px), | 48 | --3600: iro.fn-px-to-rem(288px), |
49 | --3800: iro.fn-px-to-rem(304px), | 49 | --3800: iro.fn-px-to-rem(304px), |
50 | --4600: iro.fn-px-to-rem(368px), | 50 | --4600: iro.fn-px-to-rem(368px), |
51 | --5000: iro.fn-px-to-rem(400px), | 51 | --5000: iro.fn-px-to-rem(400px), |
52 | --6000: iro.fn-px-to-rem(480px), | 52 | --6000: iro.fn-px-to-rem(480px), |
53 | --16000: iro.fn-px-to-rem(1280px), | ||
54 | ), | 53 | ), |
55 | 54 | ||
56 | --font: ( | 55 | --font: ( |
diff --git a/src/_utils.scss b/src/_utils.scss index a20bde3..50c67e1 100644 --- a/src/_utils.scss +++ b/src/_utils.scss | |||
@@ -14,6 +14,10 @@ $dirs: ( | |||
14 | display: block; | 14 | display: block; |
15 | } | 15 | } |
16 | 16 | ||
17 | @include iro.bem-utility('d-inline-block') { | ||
18 | display: inline-block; | ||
19 | } | ||
20 | |||
17 | @include iro.bem-utility('d-contents') { | 21 | @include iro.bem-utility('d-contents') { |
18 | display: contents; | 22 | display: contents; |
19 | } | 23 | } |
diff --git a/src/layouts/_container.scss b/src/layouts/_container.scss index 42d1281..52acfb8 100644 --- a/src/layouts/_container.scss +++ b/src/layouts/_container.scss | |||
@@ -4,8 +4,8 @@ | |||
4 | @include iro.props-namespace('container') { | 4 | @include iro.props-namespace('container') { |
5 | @include iro.props-store(( | 5 | @include iro.props-store(( |
6 | --dims: ( | 6 | --dims: ( |
7 | --width: iro.fn-px-to-rem(700px), | 7 | --width: iro.fn-px-to-rem(620px), |
8 | --width-50: iro.fn-px-to-rem(360px), | 8 | --width-50: iro.fn-px-to-rem(320px), |
9 | --pad-x: fn.global-dim(--size --400), | 9 | --pad-x: fn.global-dim(--size --400), |
10 | --pad-y: fn.global-dim(--size --800), | 10 | --pad-y: fn.global-dim(--size --800), |
11 | ) | 11 | ) |