|
10 | 10 | --heading--font-size-h5: 24px; |
11 | 11 | --heading--font-size-h6: 18px; |
12 | 12 |
|
| 13 | + /** |
| 14 | + * Font size fluid -> /!\ IMPORTANT /!\ : no add media query to defined different values. The function make it |
| 15 | + * |
| 16 | + * --heading--font-size-h1: #{fluid-size(58px, 156px)}; |
| 17 | + * --heading--font-size-h2: #{fluid-size(47px, 96px)}; |
| 18 | + * --heading--font-size-h3: #{fluid-size(38px, 52px)}; |
| 19 | + * --heading--font-size-h4: #{fluid-size(32px, 45px)}; |
| 20 | + * --heading--font-size-h5: #{fluid-size(28px, 34px)}; |
| 21 | + */ |
| 22 | + |
13 | 23 | // Line height |
14 | 24 | --heading--line-height-h1: 1.25; |
15 | 25 | --heading--line-height-h2: 1.25; |
|
27 | 37 | --paragraph--font-size-small: 14px; |
28 | 38 | --paragraph--font-size-default: 16px; |
29 | 39 |
|
| 40 | + /** |
| 41 | + * Font size fluid -> /!\ IMPORTANT /!\ : no add media query to defined different values. The function make it |
| 42 | + * |
| 43 | + * --paragraph--font-size-huge: #{fluid-size(28px, 32px)}; |
| 44 | + * --paragraph--font-size-large: #{fluid-size(20px, 24px)}; |
| 45 | + * --paragraph--font-size-small: #{fluid-size(12px, 14px)}; |
| 46 | + * --paragraph--font-size-default: #{fluid-size(14px, 16px)}; |
| 47 | + */ |
| 48 | + |
30 | 49 | // line height |
31 | 50 | --paragraph--line-height-huge: 1.4; |
32 | 51 | --paragraph--line-height-large: 1.4; |
|
41 | 60 | --spacing--block-3: 48px; |
42 | 61 | --spacing--block-4: 64px; |
43 | 62 |
|
| 63 | + /** |
| 64 | + * Spacing fluid -> /!\ IMPORTANT /!\ : no add media query to defined different values. The function make it |
| 65 | + * |
| 66 | + * Fluid spacing : |
| 67 | + * --spacing--block-1: #{fluid-size(16px, 32px)}; |
| 68 | + * --spacing--block-2: #{fluid-size(32px, 64px)}; |
| 69 | + * --spacing--block-3: #{fluid-size(48px, 96px)}; |
| 70 | + * --spacing--block-4: #{fluid-size(64px, 128px)}; |
| 71 | + * |
| 72 | + * Fixed spacings : |
| 73 | + * --spacing--fixed--block-1: 16px; |
| 74 | + * ... |
| 75 | + */ |
| 76 | + |
| 77 | + /* |
| 78 | + * Gutters |
| 79 | + */ |
| 80 | + --responsive--gutter: #{$external-gutter-mobile}; |
| 81 | + |
44 | 82 | /* |
45 | 83 | * Alignments |
46 | 84 | */ |
47 | | - --responsive--aligndefault-width: calc(100% - #{$external-gutter * 2}); |
48 | | - --responsive--alignwide-width: calc(100% - #{$external-gutter * 2}); |
| 85 | + --responsive--aligndefault-width: calc(100% - calc(var(--responsive--gutter) * 2)); |
| 86 | + --responsive--alignwide-width: calc(100% - calc(var(--responsive--gutter) * 2)); |
49 | 87 | --responsive--alignfull-width: 100%; |
50 | 88 |
|
51 | 89 | /* |
|
62 | 100 | --wp-admin-bar-height: 0rem; // for wp admin bar hider extension |
63 | 101 | } |
64 | 102 |
|
65 | | - /* |
66 | | - * Alignments breakpoints |
67 | | - */ |
68 | | - |
69 | | - @media screen and (min-width: #{$container-default + $external-gutter * 2}) { |
70 | | - --responsive--aligndefault-width: #{$container-default}; |
71 | | - } |
72 | | - |
73 | | - @media screen and (min-width: #{$container-wide + $external-gutter * 2}) { |
74 | | - --responsive--alignwide-width: #{$container-wide}; |
75 | | - } |
76 | | - |
77 | 103 | /* |
78 | 104 | * A11y reduced motion |
79 | 105 | */ |
|
99 | 125 | @include breakpoints(md) { |
100 | 126 | /* |
101 | 127 | * Spacing |
| 128 | + * /!\ IMPORTANT : Remove it if you use fluid size function instead /!\ |
102 | 129 | */ |
103 | 130 | --spacing--block-1: 32px; |
104 | 131 | --spacing--block-2: 64px; |
105 | 132 | --spacing--block-3: 96px; |
106 | 133 | --spacing--block-4: 128px; |
| 134 | + |
| 135 | + /* |
| 136 | + * Gutters |
| 137 | + */ |
| 138 | + --responsive--gutter: #{$external-gutter}; |
107 | 139 | } |
108 | 140 | } |
0 commit comments