@inc2734/unitone-css 0.102.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +1 -1
- package/dist/app.js +1 -1
- package/dist/library.js +1 -1
- package/package.json +2 -4
- package/src/app.js +0 -1
- package/src/behaviors/_font-size.scss +11 -0
- package/src/behaviors/_index.scss +2 -2
- package/src/behaviors/_negative-gap.scss +1 -1
- package/src/compatibility/index.js +1 -1
- package/src/foundation/_index.scss +133 -1
- package/src/layout-primitives/_index.scss +49 -1
- package/src/layout-primitives/both-sides/_index.scss +31 -1
- package/src/layout-primitives/center/_index.scss +22 -1
- package/src/layout-primitives/cluster/_index.scss +104 -1
- package/src/layout-primitives/container/_index.scss +18 -1
- package/src/layout-primitives/cover/_index.scss +86 -1
- package/src/layout-primitives/decorator/_index.scss +109 -1
- package/src/layout-primitives/float/_index.scss +29 -1
- package/src/layout-primitives/frame/_index.scss +36 -1
- package/src/layout-primitives/gutters/_index.scss +30 -1
- package/src/layout-primitives/layers/_index.scss +141 -1
- package/src/layout-primitives/marquee/_index.scss +73 -1
- package/src/layout-primitives/masonry/_index.scss +26 -1
- package/src/layout-primitives/popover/_index.scss +1 -1
- package/src/layout-primitives/reel/_index.scss +55 -1
- package/src/layout-primitives/responsive-grid/_index.scss +225 -1
- package/src/layout-primitives/stack/_index.scss +181 -1
- package/src/layout-primitives/switcher/_index.scss +70 -1
- package/src/layout-primitives/text/_index.scss +144 -1
- package/src/layout-primitives/texture/_index.scss +271 -1
- package/src/layout-primitives/vertical-writing/_index.scss +118 -1
- package/src/layout-primitives/with-sidebar/_index.scss +304 -1
- package/src/library.js +0 -48
- package/src/settings/_body.scss +0 -1
- package/src/settings/_index.scss +3 -1
- package/src/settings/_root.scss +47 -9
- package/src/utilities/_font-size.scss +8 -15
- package/src/utilities/_index.scss +0 -1
- package/src/variables/_index.scss +83 -1
- package/dist/compatibility/fluid-typography.js +0 -1
- package/dist/compatibility/index.js +0 -1
- package/src/behaviors/_typography.scss +0 -21
- package/src/compatibility/fluid-typography.js +0 -18
- package/src/foundation/_foundation-core.scss +0 -135
- package/src/foundation/_foundation.scss +0 -3
- package/src/helper/_helper.scss +0 -3
- package/src/layout-primitives/_layout-primitives-core.scss +0 -49
- package/src/layout-primitives/_layout-primitives.scss +0 -3
- package/src/layout-primitives/both-sides/_both-sides-core.scss +0 -31
- package/src/layout-primitives/both-sides/_both-sides.scss +0 -3
- package/src/layout-primitives/center/_center-core.scss +0 -22
- package/src/layout-primitives/center/_center.scss +0 -3
- package/src/layout-primitives/cluster/_cluster-core.scss +0 -104
- package/src/layout-primitives/cluster/_cluster.scss +0 -3
- package/src/layout-primitives/container/_container-core.scss +0 -18
- package/src/layout-primitives/container/_container.scss +0 -3
- package/src/layout-primitives/cover/_cover-core.scss +0 -86
- package/src/layout-primitives/cover/_cover.scss +0 -3
- package/src/layout-primitives/decorator/_decorator-core.scss +0 -109
- package/src/layout-primitives/decorator/_decorator.scss +0 -3
- package/src/layout-primitives/float/_float-core.scss +0 -29
- package/src/layout-primitives/float/_float.scss +0 -3
- package/src/layout-primitives/frame/_frame-core.scss +0 -36
- package/src/layout-primitives/frame/_frame.scss +0 -3
- package/src/layout-primitives/gutters/_gutters-core.scss +0 -30
- package/src/layout-primitives/gutters/_gutters.scss +0 -3
- package/src/layout-primitives/layers/_layers-core.scss +0 -141
- package/src/layout-primitives/layers/_layers.scss +0 -3
- package/src/layout-primitives/marquee/_marquee-core.scss +0 -73
- package/src/layout-primitives/marquee/_marquee.scss +0 -3
- package/src/layout-primitives/masonry/_masonry-core.scss +0 -26
- package/src/layout-primitives/masonry/_masonry.scss +0 -3
- package/src/layout-primitives/reel/_reel-core.scss +0 -55
- package/src/layout-primitives/reel/_reel.scss +0 -3
- package/src/layout-primitives/responsive-grid/_responsive-grid-core.scss +0 -225
- package/src/layout-primitives/responsive-grid/_responsive-grid.scss +0 -3
- package/src/layout-primitives/stack/_stack-core.scss +0 -182
- package/src/layout-primitives/stack/_stack.scss +0 -3
- package/src/layout-primitives/switcher/_switcher-core.scss +0 -70
- package/src/layout-primitives/switcher/_switcher.scss +0 -3
- package/src/layout-primitives/text/_text-core.scss +0 -144
- package/src/layout-primitives/text/_text.scss +0 -3
- package/src/layout-primitives/texture/_texture-core.scss +0 -271
- package/src/layout-primitives/texture/_texture.scss +0 -3
- package/src/layout-primitives/vertical-writing/_vertical-writing-core.scss +0 -118
- package/src/layout-primitives/vertical-writing/_vertical-writing.scss +0 -3
- package/src/layout-primitives/with-sidebar/_with-sidebar-core.scss +0 -304
- package/src/layout-primitives/with-sidebar/_with-sidebar.scss +0 -3
- package/src/settings/_settings-core.scss +0 -3
- package/src/settings/_settings.scss +0 -3
- package/src/utilities/_typography.scss +0 -5
- package/src/variables/_variables-core.scss +0 -79
- package/src/variables/_variables.scss +0 -3
package/src/library.js
CHANGED
|
@@ -870,54 +870,6 @@ export const verticalsResizeObserver = (target) => {
|
|
|
870
870
|
});
|
|
871
871
|
};
|
|
872
872
|
|
|
873
|
-
/**
|
|
874
|
-
* Writes the computed 1em value to a CSS custom property for Firefox.
|
|
875
|
-
*
|
|
876
|
-
* @param {HTMLElement} target Target element.
|
|
877
|
-
* @returns {void}
|
|
878
|
-
*/
|
|
879
|
-
export const setResult1emPxForFireFox = (target) => {
|
|
880
|
-
const ownerDocument = target.ownerDocument;
|
|
881
|
-
const defaultView = ownerDocument.defaultView;
|
|
882
|
-
|
|
883
|
-
const computedStyle = defaultView.getComputedStyle(target);
|
|
884
|
-
const fontSize = parseFloat(computedStyle.fontSize);
|
|
885
|
-
const result1emPx = parseFloat(computedStyle.getPropertyValue('--unitone--result--1em-px'));
|
|
886
|
-
if (fontSize === result1emPx) {
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
target.style.setProperty('--unitone--result--1em-px', fontSize);
|
|
891
|
-
};
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* Creates the observer bundle for the Firefox 1em measurement workaround.
|
|
895
|
-
*
|
|
896
|
-
* @param {HTMLElement} target Target element.
|
|
897
|
-
* @returns {void}
|
|
898
|
-
*/
|
|
899
|
-
export const result1emPxForFireFoxObserver = (target) => {
|
|
900
|
-
const ownerDocument = target.ownerDocument;
|
|
901
|
-
const defaultView = ownerDocument.defaultView;
|
|
902
|
-
const computedStyle = defaultView.getComputedStyle(ownerDocument.documentElement);
|
|
903
|
-
const isFirefox = computedStyle.getPropertyValue('--unitone--is-firefox').trim();
|
|
904
|
-
if (!isFirefox) {
|
|
905
|
-
return;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
createLayoutObserver(target, setResult1emPxForFireFox, {
|
|
909
|
-
getResizeValue: getBorderBoxInlineSize,
|
|
910
|
-
targetMutation: {
|
|
911
|
-
options: {
|
|
912
|
-
attributes: true,
|
|
913
|
-
attributeFilter: ['style', 'data-unitone-layout', 'class'],
|
|
914
|
-
characterData: true,
|
|
915
|
-
},
|
|
916
|
-
shouldApply: () => true,
|
|
917
|
-
},
|
|
918
|
-
});
|
|
919
|
-
};
|
|
920
|
-
|
|
921
873
|
/**
|
|
922
874
|
* Creates duplicated marquee content and refreshes initialization markers.
|
|
923
875
|
*
|
package/src/settings/_body.scss
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
background-color: var(--unitone--color--background);
|
|
4
4
|
color: var(--unitone--color--text);
|
|
5
5
|
font-family: var(--unitone--font-family);
|
|
6
|
-
|
|
7
6
|
-webkit-font-smoothing: antialiased;
|
|
8
7
|
// -moz-osx-font-smooting: grayscale; // White out elements will activate this.
|
|
9
8
|
-webkit-text-size-adjust: 100%;
|
package/src/settings/_index.scss
CHANGED
package/src/settings/_root.scss
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
initial-value: 0px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
@property --unitone--property--1rem {
|
|
12
|
+
syntax: "<length>";
|
|
13
|
+
inherits: false;
|
|
14
|
+
initial-value: 0px;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
@property --unitone--property--100vw {
|
|
12
18
|
syntax: "<length>";
|
|
13
19
|
inherits: false;
|
|
@@ -20,6 +26,12 @@
|
|
|
20
26
|
initial-value: 0;
|
|
21
27
|
}
|
|
22
28
|
|
|
29
|
+
@property --unitone--result--1rem-px {
|
|
30
|
+
syntax: "<number> | <length>";
|
|
31
|
+
inherits: false;
|
|
32
|
+
initial-value: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
23
35
|
@property --unitone--result--100vw-px {
|
|
24
36
|
syntax: "<number> | <length>";
|
|
25
37
|
inherits: false;
|
|
@@ -29,7 +41,7 @@
|
|
|
29
41
|
@function _generate-fluid-spacing($min, $max) {
|
|
30
42
|
@return clamp(
|
|
31
43
|
#{ $min },
|
|
32
|
-
#{ $min } + ((#{ $max } - #{ $min }) / (#{ variables.$max-breakpoint - variables.$min-breakpoint } * var(--unitone--
|
|
44
|
+
#{ $min } + ((#{ $max } - #{ $min }) / (#{ variables.$max-breakpoint - variables.$min-breakpoint } * var(--unitone--result--1rem-px)) * (var(--unitone--result--100vw-px) - (#{ variables.$min-breakpoint } * var(--unitone--result--1rem-px)))),
|
|
33
45
|
#{ $max }
|
|
34
46
|
);
|
|
35
47
|
}
|
|
@@ -46,16 +58,38 @@
|
|
|
46
58
|
@return _generate-fluid-spacing(#{ $min }, #{ $max });
|
|
47
59
|
}
|
|
48
60
|
|
|
61
|
+
$font-sizes: (
|
|
62
|
+
-3: 2xs,
|
|
63
|
+
-2: xs,
|
|
64
|
+
-1: s,
|
|
65
|
+
0: m,
|
|
66
|
+
1: l,
|
|
67
|
+
2: xl,
|
|
68
|
+
3: 2xl,
|
|
69
|
+
4: 3xl,
|
|
70
|
+
5: 4xl,
|
|
71
|
+
6: 5xl,
|
|
72
|
+
7: 6xl,
|
|
73
|
+
);
|
|
74
|
+
|
|
49
75
|
* {
|
|
50
76
|
/**
|
|
51
77
|
* A value to get the unitless px value in trigonometric functions. (For Safari)
|
|
52
78
|
*/
|
|
53
79
|
--unitone--property--1em: 1em;
|
|
80
|
+
--unitone--property--1rem: 1rem;
|
|
54
81
|
|
|
55
82
|
/**
|
|
56
83
|
* em unitless px real value
|
|
57
84
|
*/
|
|
58
85
|
--unitone--result--1em-px: calc(tan(atan2(var(--unitone--property--1em), 1px)));
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* rem unitless px real value
|
|
89
|
+
*/
|
|
90
|
+
--unitone--result--1rem-px: calc(tan(atan2(var(--unitone--property--1rem), 1px)));
|
|
91
|
+
|
|
92
|
+
@include variables.line-height();
|
|
59
93
|
}
|
|
60
94
|
|
|
61
95
|
/**
|
|
@@ -99,15 +133,9 @@
|
|
|
99
133
|
--unitone--measure: 42rem;
|
|
100
134
|
|
|
101
135
|
/**
|
|
102
|
-
*
|
|
103
|
-
* It is not recommended to override this value with :root in order to have the size determined based on 0.
|
|
104
|
-
*/
|
|
105
|
-
--unitone--font-size: 0;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The 1rem px font size (no units).
|
|
136
|
+
* Root font size.
|
|
109
137
|
*/
|
|
110
|
-
--unitone--
|
|
138
|
+
--unitone--root-font-size: 100%;
|
|
111
139
|
|
|
112
140
|
--unitone--harmonic-sequence-base: 8;
|
|
113
141
|
--unitone--min-harmonic-sequence-base: 10;
|
|
@@ -128,6 +156,16 @@
|
|
|
128
156
|
--unitone--font-family: sans-serif;
|
|
129
157
|
}
|
|
130
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Font size tokens.
|
|
161
|
+
*/
|
|
162
|
+
:root {
|
|
163
|
+
@each $level, $name in $font-sizes {
|
|
164
|
+
--unitone--font-size-#{ $name }: #{ variables.font-size-rem($level) };
|
|
165
|
+
--unitone--font-size-#{ $name }-fluid: #{ variables.font-size-fluid($level) };
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
131
169
|
/**
|
|
132
170
|
* Modular scales for spaces (em based).
|
|
133
171
|
*/
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
@each $
|
|
2
|
-
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
4: 3xl,
|
|
10
|
-
5: 4xl,
|
|
11
|
-
6: 5xl,
|
|
12
|
-
7: 6xl,
|
|
13
|
-
) {
|
|
14
|
-
.-font-size\:#{ $value } {
|
|
15
|
-
--unitone--font-size: #{ $key } !important;
|
|
1
|
+
@each $name in 2xs, xs, s, m, l, xl, 2xl, 3xl, 4xl, 5xl, 6xl {
|
|
2
|
+
.-font-size\:#{ $name } {
|
|
3
|
+
font-size: var(--unitone--font-size-#{ $name }) !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.-font-size\:#{ $name }[data-unitone-layout~="-fluid-typography"],
|
|
7
|
+
.-font-size\:#{ $name }.-fluid-typography {
|
|
8
|
+
font-size: var(--unitone--font-size-#{ $name }-fluid) !important;
|
|
16
9
|
}
|
|
17
10
|
}
|
|
@@ -1 +1,83 @@
|
|
|
1
|
-
|
|
1
|
+
$fibonacci-sequence: 1, 2, 3, 5, 8, 13, 21, 34, 55;
|
|
2
|
+
|
|
3
|
+
$min-breakpoint: 27; // = 432px
|
|
4
|
+
$max-breakpoint: 80; // = 1280px
|
|
5
|
+
|
|
6
|
+
$root-font-size: var(--unitone--root-font-size);
|
|
7
|
+
|
|
8
|
+
@function _max-font-size($level) {
|
|
9
|
+
@return calc(var(--unitone--harmonic-sequence-base) / (var(--unitone--max-harmonic-sequence-base) - (#{ $level })));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@function _min-font-size($level) {
|
|
13
|
+
@return calc(var(--unitone--harmonic-sequence-base) / (var(--unitone--min-harmonic-sequence-base) - (#{ $level })) + 1 - (var(--unitone--harmonic-sequence-base) / var(--unitone--min-harmonic-sequence-base)));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@function _font-size-scale($level) {
|
|
17
|
+
@return calc(var(--unitone--harmonic-sequence-base) / (var(--unitone--harmonic-sequence-base) - (#{ $level })));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@function font-size-rem($level) {
|
|
21
|
+
@return calc(#{ _font-size-scale($level) } * 1rem);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@function font-size-fluid($level) {
|
|
25
|
+
$max-font-size: _max-font-size($level);
|
|
26
|
+
$min-font-size: _min-font-size($level);
|
|
27
|
+
$slope: calc((#{ $max-font-size } - #{ $min-font-size }) / (#{ $max-breakpoint - $min-breakpoint }));
|
|
28
|
+
$intercept: calc(#{-1 * $min-breakpoint } * #{ $slope } + #{ $min-font-size });
|
|
29
|
+
$preferred-font-size: calc((#{ $intercept } * 1rem) + (#{ $slope } * 100vw));
|
|
30
|
+
|
|
31
|
+
@return clamp(var(--unitone--fluid-typography-min-length, calc(1rem * #{ $min-font-size })), #{ $preferred-font-size }, var(--unitone--fluid-typography-max-length, calc(1rem * #{ $max-font-size })));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Line-height scaling (non-linear / hyperbolic reciprocal curve)
|
|
36
|
+
*
|
|
37
|
+
* This block computes a font-size–dependent line-height using a hyperbolic (reciprocal) curve:
|
|
38
|
+
*
|
|
39
|
+
* LH(fs) = Lmin' + K / (fs + C)
|
|
40
|
+
*
|
|
41
|
+
* ### Internal bias (-0.1) for the effective minimum (Lmin')
|
|
42
|
+
* We slightly lower the effective minimum to compensate for the
|
|
43
|
+
* asymptotic nature of the reciprocal curve. This makes the observed
|
|
44
|
+
* minimum in typical font-size ranges closer to the user’s expectation.
|
|
45
|
+
*
|
|
46
|
+
* ### C: Curvature / controls how quickly the curve approaches the minimum
|
|
47
|
+
* Larger C => slower decay (more generous line-height for larger text)
|
|
48
|
+
* Smaller C => faster decay (tighter line-height sooner)
|
|
49
|
+
*
|
|
50
|
+
* ### K: Amplitude / scale factor for the reciprocal term
|
|
51
|
+
* We compute K so that the curve respects the intended range between
|
|
52
|
+
* max-line-height and the biased minimum, and so that near the base
|
|
53
|
+
* font size the line-height stays close to max (and is clamped there).
|
|
54
|
+
*/
|
|
55
|
+
$_min-line-height: calc(var(--unitone--min-line-height) - 0.1);
|
|
56
|
+
$_line-height-amplitude: calc((var(--unitone--max-line-height) - #{ $_min-line-height }) * (var(--unitone--result--1rem-px) + var(--unitone--line-height-curvature)));
|
|
57
|
+
$_line-height: clamp(
|
|
58
|
+
var(--unitone--min-line-height),
|
|
59
|
+
(#{ $_min-line-height } + #{ $_line-height-amplitude } / (var(--unitone--result--1em-px) + var(--unitone--line-height-curvature))),
|
|
60
|
+
var(--unitone--max-line-height)
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
@mixin line-height {
|
|
64
|
+
--unitone--min-line-height: calc(1 + 2 * min(var(--unitone--min-half-leading), var(--unitone--half-leading)));
|
|
65
|
+
--unitone--max-line-height: calc(1 + 2 * var(--unitone--half-leading));
|
|
66
|
+
--unitone--line-height: #{ $_line-height };
|
|
67
|
+
|
|
68
|
+
line-height: var(--unitone--line-height);
|
|
69
|
+
|
|
70
|
+
// @todo In Firefox, using tan(atan2()) for line-height is considered invalid.
|
|
71
|
+
// Therefore, a fallback line-height is applied.
|
|
72
|
+
@supports (-moz-appearance: none) {
|
|
73
|
+
line-height: clamp(
|
|
74
|
+
calc(var(--unitone--min-line-height) * 1em),
|
|
75
|
+
calc((var(--unitone--min-line-height) - 0.1) * 1em + (var(--unitone--max-line-height) - (var(--unitone--min-line-height) - 0.1)) * 1rem),
|
|
76
|
+
calc(var(--unitone--max-line-height) * 1em)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
$container-max-width: $max-breakpoint * 16px; // = 1280px
|
|
82
|
+
$grid-columns: 12;
|
|
83
|
+
$grid-rows: 7;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,u,a=[],l=!0,d=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw i}}return a}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,u=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw u}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i="".concat(200,"px 0px"),o=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.getValue,u=i.delay,a=!0,l=new ResizeObserver(c(function(e){var i,u=n(e);try{for(u.s();!(i=u.n()).done;){var l=i.value,d=null==o?void 0:o(l);a?(r=d,a=!1):void 0!==d&&d===r||(t(l.target,l),r=d)}}catch(e){u.e(e)}finally{u.f()}},void 0===u?250:u));return l.observe(e),l},u=function(e,t,n){var r=new MutationObserver(function(t){requestAnimationFrame(function(){null!=e&&e.isConnected&&n(t)})});return r.observe(e,t),r},a=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=a.getResizeValue,s=a.delay,f=void 0===s?250:s,v=a.observeResize,y=void 0===v||v,b=a.observeIntersection,h=void 0!==b&&b,m=a.observeDirectChildrenResize,p=void 0!==m&&m,g=a.targetMutation,w=a.directChildMutation,A=h&&"undefined"!=typeof IntersectionObserver,O=!A||d(e),z=A&&!O,E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;null!=t&&t.isConnected&&(!A||O?(z=!1,r(t)):z=!0)},C=function(e,t){var n,r=0;return function(){var i,o;null!==(o=n=null==e||null===(i=e.ownerDocument)||void 0===i?void 0:i.defaultView)&&void 0!==o&&o.requestAnimationFrame?r||(r=n.requestAnimationFrame(function(){r=0,n=null,null!=e&&e.isConnected&&t(e)})):t(e)}}(e,E),S=function(){null!=e&&e.isConnected&&(!A||O?(z=!0,C()):z=!0)},M=function(){},L=y?p?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getValue,o=r.delay,a=void 0===o?250:o,l=r.onChildList,d=new WeakMap,s=new Set,f=new ResizeObserver(c(function(r){var o,u=!1,a=n(r);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=null==i?void 0:i(l);d.has(l.target)?(void 0!==c&&c===d.get(l.target)||(u=!0),d.set(l.target,c)):d.set(l.target,c)}}catch(e){a.e(e)}finally{a.f()}u&&t(e)},a)),v=function(){var t;Array.from(s).forEach(function(t){t.parentElement!==e&&(f.unobserve(t),s.delete(t),d.delete(t))}),Array.from(null!==(t=null==e?void 0:e.children)&&void 0!==t?t:[]).forEach(function(e){s.has(e)||(f.observe(e),s.add(e))})};f.observe(e),v();var y=u(e,{childList:!0},function(n){n.some(function(e){return"childList"===e.type})&&(v(),null==l||l(n),t(e))});return{resizeObserver:f,mutationObserver:y}}(e,S,{getValue:l,delay:f,onChildList:function(){M()}}):{resizeObserver:o(e,S,{getValue:l,delay:f})}:{mutationObserver:null};A&&function(e,n){var r=new IntersectionObserver(function(e){var r=t(e,1)[0];r&&n(r)},{rootMargin:i});r.observe(e)}(e,function(e){(O=e.isIntersecting)&&z&&S()}),null!=g&&g.options&&u(e,g.options,function(e){var t,n;(null!==(t=null===(n=g.shouldApply)||void 0===n?void 0:n.call(g,e))&&void 0!==t?t:0<e.length)&&S()});var V=null!=w&&w.attributeFilter&&w.shouldApply?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.attributeFilter,i=n.shouldApply,o=n.attributeOldValue,u=void 0===o||o,a=new MutationObserver(function(n){requestAnimationFrame(function(){null!=e&&e.isConnected&&n.some(function(t){return"attributes"===t.type&&t.target.parentElement===e&&i(t)})&&t(e)})}),l=function(){var t;a.disconnect(),Array.from(null!==(t=null==e?void 0:e.children)&&void 0!==t?t:[]).forEach(function(e){a.observe(e,{attributes:!0,attributeFilter:r,attributeOldValue:u})})};return l(),{observer:a,syncObservedChildren:l}}(e,S,{attributeFilter:w.attributeFilter,shouldApply:w.shouldApply,attributeOldValue:w.attributeOldValue}):null;V&&(M=V.syncObservedChildren),!L.mutationObserver&&V&&u(e,{childList:!0},function(e){e.some(function(e){return"childList"===e.type})&&(M(),S())}),A&&!O||E(e)},l=function(e){var t;return null===(t=e.borderBoxSize)||void 0===t?void 0:t[0].inlineSize},d=function(e){var t;if(!function(e){return!(null==e||!e.isConnected)&&0<e.getClientRects().length}(e))return!1;var n=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;if(!n)return!0;var r=e.getBoundingClientRect(),i=n.innerWidth,o=n.innerHeight;return r.bottom>-200&&r.right>0&&r.top<o+200&&r.left<i};function c(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var u=this;clearTimeout(n),n=setTimeout(function(){e.apply(u,i)},t)}}var s=function(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.fontSize);n!==parseFloat(t.getPropertyValue("--unitone--result--1em-px"))&&e.style.setProperty("--unitone--result--1em-px",n)},f=Symbol.for("@inc2734/unitone-css/layout-initializers"),v=function(){return"undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof MutationObserver||"undefined"==typeof Node?null:(globalThis[f]||(globalThis[f]={initializers:new Map,pendingNodes:new Set,observer:null,rafId:0,hasDOMContentLoadedListener:!1}),globalThis[f])},y=function(e,t){var n,r;if(e.enabled()&&(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE){var i=new Set;null!==(n=t.matches)&&void 0!==n&&n.call(t,e.selector)&&i.add(t),null===(r=t.querySelectorAll)||void 0===r||r.call(t,e.selector).forEach(function(e){i.add(e)}),i.forEach(function(t){e.initialized.has(t)||(e.initialize(t),e.initialized.add(t))})}},b=function(e){var t=v();t&&t.initializers.forEach(function(t){y(t,e)})},h=function(){var e=v();e&&(e.pendingNodes.forEach(function(e){b(e)}),e.pendingNodes.clear(),e.rafId=0)},m=function(){var e=v();e&&!e.observer&&document.body&&(b(document.body),e.observer=new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.forEach(function(t){(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE&&e.pendingNodes.add(t)})}),!e.rafId&&0<e.pendingNodes.size&&(e.rafId=requestAnimationFrame(h))}),e.observer.observe(document.body,{childList:!0,subtree:!0}))};!function(e){var t=e.key,n=e.selector,r=e.initialize,i=e.enabled,o=void 0===i?function(){return!0}:i,u=v();if(u&&!u.initializers.has(t)){var a={selector:n,initialize:r,enabled:o,initialized:new WeakSet};u.initializers.set(t,a),u.observer?y(a,document.body):"loading"!==document.readyState?m():u.hasDOMContentLoadedListener||(document.addEventListener("DOMContentLoaded",m,{once:!0}),u.hasDOMContentLoadedListener=!0)}}({key:"compatibility/fluid-typography",selector:'[style*="font-size:"], [data-unitone-layout~="-fluid-typography"]',initialize:function(e){var t=e.ownerDocument;t.defaultView.getComputedStyle(t.documentElement).getPropertyValue("--unitone--is-firefox").trim()&&a(e,s,{getResizeValue:l,targetMutation:{options:{attributes:!0,attributeFilter:["style","data-unitone-layout","class"],characterData:!0},shouldApply:function(){return!0}}})},enabled:function(){return"undefined"!=typeof window&&"undefined"!=typeof document&&!!window.getComputedStyle(document.documentElement).getPropertyValue("--unitone--is-firefox").trim()}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(t,n){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,u,a=[],l=!0,d=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){d=!0,i=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(d)throw i}}return a}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,u=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw u}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i="".concat(200,"px 0px"),o=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.getValue,u=i.delay,a=!0,l=new ResizeObserver(c(function(e){var i,u=n(e);try{for(u.s();!(i=u.n()).done;){var l=i.value,d=null==o?void 0:o(l);a?(r=d,a=!1):void 0!==d&&d===r||(t(l.target,l),r=d)}}catch(e){u.e(e)}finally{u.f()}},void 0===u?250:u));return l.observe(e),l},u=function(e,t,n){var r=new MutationObserver(function(t){requestAnimationFrame(function(){null!=e&&e.isConnected&&n(t)})});return r.observe(e,t),r},a=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=a.getResizeValue,s=a.delay,f=void 0===s?250:s,v=a.observeResize,y=void 0===v||v,b=a.observeIntersection,h=void 0!==b&&b,m=a.observeDirectChildrenResize,p=void 0!==m&&m,g=a.targetMutation,w=a.directChildMutation,A=h&&"undefined"!=typeof IntersectionObserver,O=!A||d(e),z=A&&!O,E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;null!=t&&t.isConnected&&(!A||O?(z=!1,r(t)):z=!0)},C=function(e,t){var n,r=0;return function(){var i,o;null!==(o=n=null==e||null===(i=e.ownerDocument)||void 0===i?void 0:i.defaultView)&&void 0!==o&&o.requestAnimationFrame?r||(r=n.requestAnimationFrame(function(){r=0,n=null,null!=e&&e.isConnected&&t(e)})):t(e)}}(e,E),S=function(){null!=e&&e.isConnected&&(!A||O?(z=!0,C()):z=!0)},M=function(){},L=y?p?function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getValue,o=r.delay,a=void 0===o?250:o,l=r.onChildList,d=new WeakMap,s=new Set,f=new ResizeObserver(c(function(r){var o,u=!1,a=n(r);try{for(a.s();!(o=a.n()).done;){var l=o.value,c=null==i?void 0:i(l);d.has(l.target)?(void 0!==c&&c===d.get(l.target)||(u=!0),d.set(l.target,c)):d.set(l.target,c)}}catch(e){a.e(e)}finally{a.f()}u&&t(e)},a)),v=function(){var t;Array.from(s).forEach(function(t){t.parentElement!==e&&(f.unobserve(t),s.delete(t),d.delete(t))}),Array.from(null!==(t=null==e?void 0:e.children)&&void 0!==t?t:[]).forEach(function(e){s.has(e)||(f.observe(e),s.add(e))})};f.observe(e),v();var y=u(e,{childList:!0},function(n){n.some(function(e){return"childList"===e.type})&&(v(),null==l||l(n),t(e))});return{resizeObserver:f,mutationObserver:y}}(e,S,{getValue:l,delay:f,onChildList:function(){M()}}):{resizeObserver:o(e,S,{getValue:l,delay:f})}:{mutationObserver:null};A&&function(e,n){var r=new IntersectionObserver(function(e){var r=t(e,1)[0];r&&n(r)},{rootMargin:i});r.observe(e)}(e,function(e){(O=e.isIntersecting)&&z&&S()}),null!=g&&g.options&&u(e,g.options,function(e){var t,n;(null!==(t=null===(n=g.shouldApply)||void 0===n?void 0:n.call(g,e))&&void 0!==t?t:0<e.length)&&S()});var V=null!=w&&w.attributeFilter&&w.shouldApply?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.attributeFilter,i=n.shouldApply,o=n.attributeOldValue,u=void 0===o||o,a=new MutationObserver(function(n){requestAnimationFrame(function(){null!=e&&e.isConnected&&n.some(function(t){return"attributes"===t.type&&t.target.parentElement===e&&i(t)})&&t(e)})}),l=function(){var t;a.disconnect(),Array.from(null!==(t=null==e?void 0:e.children)&&void 0!==t?t:[]).forEach(function(e){a.observe(e,{attributes:!0,attributeFilter:r,attributeOldValue:u})})};return l(),{observer:a,syncObservedChildren:l}}(e,S,{attributeFilter:w.attributeFilter,shouldApply:w.shouldApply,attributeOldValue:w.attributeOldValue}):null;V&&(M=V.syncObservedChildren),!L.mutationObserver&&V&&u(e,{childList:!0},function(e){e.some(function(e){return"childList"===e.type})&&(M(),S())}),A&&!O||E(e)},l=function(e){var t;return null===(t=e.borderBoxSize)||void 0===t?void 0:t[0].inlineSize},d=function(e){var t;if(!function(e){return!(null==e||!e.isConnected)&&0<e.getClientRects().length}(e))return!1;var n=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;if(!n)return!0;var r=e.getBoundingClientRect(),i=n.innerWidth,o=n.innerHeight;return r.bottom>-200&&r.right>0&&r.top<o+200&&r.left<i};function c(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var u=this;clearTimeout(n),n=setTimeout(function(){e.apply(u,i)},t)}}var s=function(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.fontSize);n!==parseFloat(t.getPropertyValue("--unitone--result--1em-px"))&&e.style.setProperty("--unitone--result--1em-px",n)},f=Symbol.for("@inc2734/unitone-css/layout-initializers"),v=function(){return"undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof MutationObserver||"undefined"==typeof Node?null:(globalThis[f]||(globalThis[f]={initializers:new Map,pendingNodes:new Set,observer:null,rafId:0,hasDOMContentLoadedListener:!1}),globalThis[f])},y=function(e,t){var n,r;if(e.enabled()&&(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE){var i=new Set;null!==(n=t.matches)&&void 0!==n&&n.call(t,e.selector)&&i.add(t),null===(r=t.querySelectorAll)||void 0===r||r.call(t,e.selector).forEach(function(e){i.add(e)}),i.forEach(function(t){e.initialized.has(t)||(e.initialize(t),e.initialized.add(t))})}},b=function(e){var t=v();t&&t.initializers.forEach(function(t){y(t,e)})},h=function(){var e=v();e&&(e.pendingNodes.forEach(function(e){b(e)}),e.pendingNodes.clear(),e.rafId=0)},m=function(){var e=v();e&&!e.observer&&document.body&&(b(document.body),e.observer=new MutationObserver(function(t){t.forEach(function(t){t.addedNodes.forEach(function(t){(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE&&e.pendingNodes.add(t)})}),!e.rafId&&0<e.pendingNodes.size&&(e.rafId=requestAnimationFrame(h))}),e.observer.observe(document.body,{childList:!0,subtree:!0}))};!function(e){var t=e.key,n=e.selector,r=e.initialize,i=e.enabled,o=void 0===i?function(){return!0}:i,u=v();if(u&&!u.initializers.has(t)){var a={selector:n,initialize:r,enabled:o,initialized:new WeakSet};u.initializers.set(t,a),u.observer?y(a,document.body):"loading"!==document.readyState?m():u.hasDOMContentLoadedListener||(document.addEventListener("DOMContentLoaded",m,{once:!0}),u.hasDOMContentLoadedListener=!0)}}({key:"compatibility/fluid-typography",selector:'[style*="font-size:"], [data-unitone-layout~="-fluid-typography"]',initialize:function(e){var t=e.ownerDocument;t.defaultView.getComputedStyle(t.documentElement).getPropertyValue("--unitone--is-firefox").trim()&&a(e,s,{getResizeValue:l,targetMutation:{options:{attributes:!0,attributeFilter:["style","data-unitone-layout","class"],characterData:!0},shouldApply:function(){return!0}}})},enabled:function(){return"undefined"!=typeof window&&"undefined"!=typeof document&&!!window.getComputedStyle(document.documentElement).getPropertyValue("--unitone--is-firefox").trim()}});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@use '../variables' as variables;
|
|
2
|
-
|
|
3
|
-
@mixin typography() {
|
|
4
|
-
[data-unitone-layout~="-root\:typography"] {
|
|
5
|
-
font-size: #{ variables.$root-font-size };
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
[data-unitone-layout~="-typography"],
|
|
9
|
-
[data-unitone-layout~="-typography\:em"],
|
|
10
|
-
[data-unitone-layout~="-typography\:rem"] {
|
|
11
|
-
@include variables.typography();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
[data-unitone-layout~="-typography\:em"] {
|
|
15
|
-
@include variables.typography-em();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[data-unitone-layout~="-fluid-typography"] {
|
|
19
|
-
@include variables.fluid-typography();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { result1emPxForFireFoxObserver } from '../library';
|
|
2
|
-
import { registerLayoutInitializer } from '../register-layout-initializer';
|
|
3
|
-
|
|
4
|
-
const isFirefox = () => {
|
|
5
|
-
if ('undefined' === typeof window || 'undefined' === typeof document) {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const computedStyle = window.getComputedStyle(document.documentElement);
|
|
10
|
-
return !!computedStyle.getPropertyValue('--unitone--is-firefox').trim();
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
registerLayoutInitializer({
|
|
14
|
-
key: 'compatibility/fluid-typography',
|
|
15
|
-
selector: '[style*="font-size:"], [data-unitone-layout~="-fluid-typography"]',
|
|
16
|
-
initialize: result1emPxForFireFoxObserver,
|
|
17
|
-
enabled: isFirefox,
|
|
18
|
-
});
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
@use '../variables' as variables;
|
|
2
|
-
|
|
3
|
-
:where(:not(a):not(b):not(bdi):not(bdo):not(cite):not(data):not(del):not(dfn):not(em):not(i):not(ins):not(mark):not(q):not(ruby):not(s):not(samp):not(small):not(span):not(strong):not(sub):not(sup):not(time):not(u):not(svg)) {
|
|
4
|
-
@include variables.typography();
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
*,
|
|
8
|
-
*::before,
|
|
9
|
-
*::after {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
a {
|
|
14
|
-
text-underline-offset: 0.1em;
|
|
15
|
-
text-decoration-thickness: 1px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:where(
|
|
19
|
-
address,
|
|
20
|
-
article,
|
|
21
|
-
aside,
|
|
22
|
-
blockquote,
|
|
23
|
-
details,
|
|
24
|
-
dialog,
|
|
25
|
-
dd,
|
|
26
|
-
div,
|
|
27
|
-
dl,
|
|
28
|
-
dt,
|
|
29
|
-
fieldset,
|
|
30
|
-
figcaption,
|
|
31
|
-
figure,
|
|
32
|
-
footer,
|
|
33
|
-
form,
|
|
34
|
-
h1,
|
|
35
|
-
h2,
|
|
36
|
-
h3,
|
|
37
|
-
h4,
|
|
38
|
-
h5,
|
|
39
|
-
h6,
|
|
40
|
-
header,
|
|
41
|
-
hgroup,
|
|
42
|
-
hr,
|
|
43
|
-
li,
|
|
44
|
-
main,
|
|
45
|
-
nav,
|
|
46
|
-
ol,
|
|
47
|
-
p,
|
|
48
|
-
pre,
|
|
49
|
-
section,
|
|
50
|
-
table,
|
|
51
|
-
ul
|
|
52
|
-
) {
|
|
53
|
-
margin: 0;
|
|
54
|
-
padding: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:where(li) {
|
|
58
|
-
margin-inline-start: 1.5em;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
small {
|
|
62
|
-
font-size: smaller;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
sup {
|
|
66
|
-
font-size: smaller;
|
|
67
|
-
|
|
68
|
-
@supports (font-variant-position: super) {
|
|
69
|
-
font-variant-position: super;
|
|
70
|
-
vertical-align: baseline;
|
|
71
|
-
font-size: inherit;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
sub {
|
|
76
|
-
font-size: smaller;
|
|
77
|
-
|
|
78
|
-
@supports (font-variant-position: sub) {
|
|
79
|
-
font-variant-position: sub;
|
|
80
|
-
vertical-align: baseline;
|
|
81
|
-
font-size: inherit;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
img,
|
|
86
|
-
video {
|
|
87
|
-
height: auto;
|
|
88
|
-
max-width: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
figure {
|
|
92
|
-
max-width: 100%;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
figcaption {
|
|
96
|
-
--unitone--font-size: -2;
|
|
97
|
-
|
|
98
|
-
margin: var(--unitone--s-2) 0 0;
|
|
99
|
-
display: block;
|
|
100
|
-
width: 0;
|
|
101
|
-
min-width: fit-content !important;
|
|
102
|
-
text-align: start;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
pre {
|
|
106
|
-
text-spacing-trim: space-all;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
:where(
|
|
110
|
-
button,
|
|
111
|
-
input[type="button"],
|
|
112
|
-
input[type="submit"],
|
|
113
|
-
input[type="reset"],
|
|
114
|
-
[role="button"],
|
|
115
|
-
[role="tab"],
|
|
116
|
-
[role="switch"],
|
|
117
|
-
label,
|
|
118
|
-
select,
|
|
119
|
-
input[type="checkbox"],
|
|
120
|
-
input[type="radio"],
|
|
121
|
-
input[type="range"], /* スライダー */
|
|
122
|
-
input[type="color"], /* カラーピッカー */
|
|
123
|
-
summary
|
|
124
|
-
) {
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:where(
|
|
129
|
-
button:disabled,
|
|
130
|
-
input:disabled,
|
|
131
|
-
select:disabled,
|
|
132
|
-
[aria-disabled="true"]
|
|
133
|
-
) {
|
|
134
|
-
cursor: not-allowed;
|
|
135
|
-
}
|
package/src/helper/_helper.scss
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@use 'both-sides';
|
|
2
|
-
@use 'center';
|
|
3
|
-
@use 'cluster';
|
|
4
|
-
@use 'container';
|
|
5
|
-
@use 'cover';
|
|
6
|
-
@use 'decorator';
|
|
7
|
-
@use 'dialog';
|
|
8
|
-
@use 'divider';
|
|
9
|
-
@use 'float';
|
|
10
|
-
@use 'frame';
|
|
11
|
-
@use 'gutters';
|
|
12
|
-
@use 'layers';
|
|
13
|
-
@use 'marquee';
|
|
14
|
-
@use 'masonry';
|
|
15
|
-
@use 'popover';
|
|
16
|
-
@use 'reel';
|
|
17
|
-
@use 'responsive-grid';
|
|
18
|
-
@use 'stack';
|
|
19
|
-
@use 'switcher';
|
|
20
|
-
@use 'text';
|
|
21
|
-
@use 'texture';
|
|
22
|
-
@use 'vertical-ends';
|
|
23
|
-
@use 'vertical-writing';
|
|
24
|
-
@use 'with-sidebar';
|
|
25
|
-
|
|
26
|
-
@include both-sides.both-sides();
|
|
27
|
-
@include center.center();
|
|
28
|
-
@include cluster.cluster();
|
|
29
|
-
@include container.container();
|
|
30
|
-
@include cover.cover();
|
|
31
|
-
@include decorator.decorator();
|
|
32
|
-
@include dialog.dialog();
|
|
33
|
-
@include divider.divider();
|
|
34
|
-
@include float.float();
|
|
35
|
-
@include frame.frame();
|
|
36
|
-
@include gutters.gutters();
|
|
37
|
-
@include layers.layers();
|
|
38
|
-
@include marquee.marquee();
|
|
39
|
-
@include masonry.masonry();
|
|
40
|
-
@include popover.popover();
|
|
41
|
-
@include reel.reel();
|
|
42
|
-
@include responsive-grid.responsive-grid();
|
|
43
|
-
@include stack.stack();
|
|
44
|
-
@include switcher.switcher();
|
|
45
|
-
@include text.text();
|
|
46
|
-
@include texture.texture();
|
|
47
|
-
@include vertical-ends.vertical-ends();
|
|
48
|
-
@include vertical-writing.vertical-writing();
|
|
49
|
-
@include with-sidebar.with-sidebar();
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@mixin abstract-both-sides() {
|
|
2
|
-
--unitone--gap: var(--unitone--global--gap);
|
|
3
|
-
--unitone--column-gap: var(--unitone--gap);
|
|
4
|
-
--unitone--row-gap: var(--unitone--gap);
|
|
5
|
-
--unitone--align-items: start;
|
|
6
|
-
--unitone--content-width: fit-content;
|
|
7
|
-
--unitone--content-max-width: 100%;
|
|
8
|
-
|
|
9
|
-
display: flex;
|
|
10
|
-
column-gap: var(--unitone--column-gap);
|
|
11
|
-
row-gap: var(--unitone--row-gap);
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
align-items: var(--unitone--align-items);
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
|
|
16
|
-
> * {
|
|
17
|
-
--unitone--max-width: var(--unitone--content-max-width);
|
|
18
|
-
--unitone--flex-basis: var(--unitone--content-width);
|
|
19
|
-
|
|
20
|
-
flex-basis: var(--unitone--flex-basis);
|
|
21
|
-
flex-grow: 0;
|
|
22
|
-
max-width: min(100%, var(--unitone--max-width));
|
|
23
|
-
min-width: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@mixin both-sides() {
|
|
28
|
-
[data-unitone-layout~="both-sides"] {
|
|
29
|
-
@include abstract-both-sides();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@mixin abstract-center() {
|
|
2
|
-
--unitone--gutters: 0px;
|
|
3
|
-
--unitone--max-width: var(--unitone--measure);
|
|
4
|
-
|
|
5
|
-
box-sizing: content-box;
|
|
6
|
-
margin-right: auto;
|
|
7
|
-
margin-left: auto;
|
|
8
|
-
max-width: var(--unitone--max-width);
|
|
9
|
-
padding-right: var(--unitone--gutters);
|
|
10
|
-
padding-left: var(--unitone--gutters);
|
|
11
|
-
width: fit-content;
|
|
12
|
-
|
|
13
|
-
&[data-unitone-layout~="-with-text"] {
|
|
14
|
-
text-align: center;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin center() {
|
|
19
|
-
[data-unitone-layout~="center"] {
|
|
20
|
-
@include abstract-center();
|
|
21
|
-
}
|
|
22
|
-
}
|