@ulu/frontend 0.0.23 → 0.1.0-beta.0
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/deprecated/js/drupal-programmatic-modal.js +91 -0
- package/{js/ui/modals.js → deprecated/js/micromodal-modals.js} +41 -67
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +70 -1
- package/index.js +6 -1
- package/js/events/index.js +58 -7
- package/js/index.js +3 -7
- package/js/{helpers/css-breakpoint.js → ui/breakpoints.js} +9 -11
- package/js/ui/collapsible.js +195 -0
- package/js/ui/dialog.js +157 -0
- package/js/ui/dialog.todo +37 -0
- package/js/ui/flipcard.js +55 -11
- package/js/ui/grid.js +2 -47
- package/js/ui/index.js +21 -0
- package/js/ui/modal-builder.js +197 -0
- package/js/ui/overflow-scroller-pager.js +1 -1
- package/js/ui/overflow-scroller.js +8 -5
- package/js/ui/page.js +14 -0
- package/js/ui/popover.js +135 -0
- package/js/ui/print-details.js +44 -0
- package/js/ui/print.js +67 -0
- package/js/ui/programmatic-modal.js +79 -81
- package/js/ui/proxy-click.js +80 -0
- package/js/ui/resizer.js +3 -3
- package/js/ui/scroll-slider.js +56 -0
- package/js/ui/scrollpoint.js +300 -0
- package/js/ui/slider.js +72 -10
- package/js/ui/tabs.js +85 -58
- package/js/ui/theme-toggle.js +129 -0
- package/js/ui/tooltip.js +268 -67
- package/js/utils/{logger.js → class-logger.js} +6 -5
- package/js/utils/dom.js +122 -0
- package/js/utils/file-save.js +67 -0
- package/js/utils/floating-ui.js +83 -0
- package/js/utils/id.js +22 -0
- package/js/utils/index.js +7 -0
- package/js/{helpers → utils}/pause-youtube-video.js +1 -1
- package/package.json +32 -11
- package/resources/drupal/twig-macros/accordion.twig +99 -0
- package/resources/drupal/twig-macros/dropdown.twig +44 -0
- package/resources/drupal/twig-macros/flipcard.twig +69 -0
- package/resources/drupal/twig-macros/image.twig +30 -0
- package/resources/drupal/twig-macros/layout.twig +338 -0
- package/resources/drupal/twig-macros/slider.twig +214 -0
- package/resources/drupal/twig-macros/tabs.twig +84 -0
- package/scss/README.md +13 -1
- package/scss/_breakpoint.scss +69 -26
- package/scss/_button.scss +148 -57
- package/scss/_color.scss +46 -28
- package/scss/_cssvar.scss +103 -12
- package/scss/_element.scss +84 -67
- package/scss/_index.scss +0 -3
- package/scss/_layout.scss +57 -26
- package/scss/_path.scss +2 -2
- package/scss/_selector.scss +20 -11
- package/scss/_typography.scss +115 -82
- package/scss/_units.scss +14 -13
- package/scss/_utils.scss +280 -18
- package/scss/base/_color.scss +2 -1
- package/scss/base/_elements.scss +61 -35
- package/scss/base/_index.scss +60 -23
- package/scss/base/_keyframes.scss +115 -16
- package/scss/base/_layout.scss +10 -6
- package/scss/base/_normalize.scss +6 -122
- package/scss/base/_print.scss +49 -0
- package/scss/base/_root.scss +28 -0
- package/scss/base/_typography.scss +4 -1
- package/scss/components/_accordion.scss +217 -0
- package/scss/components/_adaptive-spacing.scss +148 -0
- package/scss/components/_badge.scss +17 -14
- package/scss/components/_button-verbose.scss +138 -0
- package/scss/components/_button.scss +9 -4
- package/scss/components/_callout.scss +175 -0
- package/scss/components/_captioned-figure.scss +173 -0
- package/scss/components/_card-grid.scss +75 -0
- package/scss/components/_card.scss +420 -0
- package/scss/components/_css-icon.scss +433 -0
- package/scss/{_grid.scss → components/_data-grid.scss} +100 -68
- package/scss/components/_data-table.scss +180 -0
- package/scss/components/_fill-context.scss +20 -22
- package/scss/components/_flipcard-grid.scss +66 -0
- package/scss/components/_flipcard.scss +304 -0
- package/scss/components/_form-theme.scss +633 -0
- package/scss/components/_hero.scss +183 -0
- package/scss/components/_horizontal-rule.scss +51 -0
- package/scss/components/_image-grid.scss +71 -0
- package/scss/components/_index.scss +276 -38
- package/scss/components/_links.scss +1 -1
- package/scss/components/_list-lines.scss +14 -3
- package/scss/components/_list-ordered.scss +3 -1
- package/scss/components/_list-unordered.scss +3 -1
- package/scss/components/_menu-stack.scss +245 -0
- package/scss/components/_modal.scss +495 -0
- package/scss/components/_nav-strip.scss +148 -0
- package/scss/components/_overlay-section.scss +122 -0
- package/scss/components/_pager.scss +168 -0
- package/scss/components/_placeholder-block.scss +121 -0
- package/scss/components/_popover.scss +263 -0
- package/scss/components/_pull-quote.scss +111 -0
- package/scss/components/_ratio-box.scss +64 -0
- package/scss/components/_rule.scss +12 -9
- package/scss/components/_scroll-slider.scss +204 -0
- package/scss/components/_skip-link.scss +92 -0
- package/scss/components/_slider.scss +241 -0
- package/scss/components/_spoke-spinner.scss +193 -0
- package/scss/components/_tabs.scss +179 -0
- package/scss/components/_tag.scss +142 -0
- package/scss/components/_tile-button.scss +131 -0
- package/scss/components/_tile-grid-overlay.scss +132 -0
- package/scss/components/_tile-grid.scss +172 -0
- package/scss/components/_vignette.scss +65 -0
- package/scss/components/_wysiwyg.scss +94 -0
- package/scss/helpers/_color.scss +1 -0
- package/scss/helpers/_display.scss +2 -1
- package/scss/helpers/_index.scss +45 -22
- package/scss/helpers/_print.scss +20 -43
- package/scss/helpers/_typography.scss +3 -0
- package/scss/helpers/_units.scss +10 -13
- package/scss/helpers/_utilities.scss +5 -1
- package/scss/stylesheets/base-styles.scss +7 -0
- package/scss/stylesheets/component-styles.scss +7 -0
- package/scss/stylesheets/helper-styles.scss +7 -0
- package/types/events/index.d.ts +1 -1
- package/types/events/index.d.ts.map +1 -1
- package/types/index.d.ts +2 -2
- package/types/{helpers/css-breakpoint.d.ts → ui/breakpoints.d.ts} +3 -3
- package/types/ui/breakpoints.d.ts.map +1 -0
- package/types/ui/collapsible.d.ts +67 -0
- package/types/ui/collapsible.d.ts.map +1 -0
- package/types/ui/dialog.d.ts +42 -0
- package/types/ui/dialog.d.ts.map +1 -0
- package/types/ui/flipcard.d.ts +8 -1
- package/types/ui/flipcard.d.ts.map +1 -1
- package/types/ui/grid.d.ts +0 -11
- package/types/ui/grid.d.ts.map +1 -1
- package/types/ui/index.d.ts +23 -0
- package/types/ui/index.d.ts.map +1 -0
- package/types/ui/modal-builder.d.ts +54 -0
- package/types/ui/modal-builder.d.ts.map +1 -0
- package/types/ui/overflow-scroller-pager.d.ts +1 -1
- package/types/ui/overflow-scroller-pager.d.ts.map +1 -1
- package/types/ui/overflow-scroller.d.ts +3 -1
- package/types/ui/overflow-scroller.d.ts.map +1 -1
- package/types/ui/page.d.ts +5 -0
- package/types/ui/page.d.ts.map +1 -0
- package/types/ui/popover.d.ts +40 -0
- package/types/ui/popover.d.ts.map +1 -0
- package/types/ui/print-details.d.ts +10 -0
- package/types/ui/print-details.d.ts.map +1 -0
- package/types/ui/print.d.ts +10 -0
- package/types/ui/print.d.ts.map +1 -0
- package/types/ui/programmatic-modal.d.ts +19 -1
- package/types/ui/programmatic-modal.d.ts.map +1 -1
- package/types/ui/proxy-click.d.ts +18 -0
- package/types/ui/proxy-click.d.ts.map +1 -0
- package/types/ui/resizer.d.ts +1 -1
- package/types/ui/resizer.d.ts.map +1 -1
- package/types/ui/scroll-slider.d.ts +13 -0
- package/types/ui/scroll-slider.d.ts.map +1 -0
- package/types/ui/scrollpoint.d.ts +133 -0
- package/types/ui/scrollpoint.d.ts.map +1 -0
- package/types/ui/slider.d.ts +14 -2
- package/types/ui/slider.d.ts.map +1 -1
- package/types/ui/tabs.d.ts +22 -0
- package/types/ui/tabs.d.ts.map +1 -1
- package/types/ui/theme-toggle.d.ts +14 -0
- package/types/ui/theme-toggle.d.ts.map +1 -0
- package/types/ui/tooltip.d.ts +92 -10
- package/types/ui/tooltip.d.ts.map +1 -1
- package/types/utils/{logger.d.ts → class-logger.d.ts} +1 -1
- package/types/utils/class-logger.d.ts.map +1 -0
- package/types/utils/dom.d.ts +48 -0
- package/types/utils/dom.d.ts.map +1 -0
- package/types/utils/file-save.d.ts +64 -0
- package/types/utils/file-save.d.ts.map +1 -0
- package/types/utils/floating-ui.d.ts +19 -0
- package/types/utils/floating-ui.d.ts.map +1 -0
- package/types/utils/id.d.ts +10 -0
- package/types/utils/id.d.ts.map +1 -0
- package/types/utils/index.d.ts +9 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/pause-youtube-video.d.ts.map +1 -0
- package/js/helpers/file-save.js +0 -52
- package/js/helpers/scrollbar-width-property.js +0 -14
- package/project.todo +0 -22
- package/scss/_calculate.scss +0 -64
- package/scss/_utility.scss +0 -12
- package/types/helpers/css-breakpoint.d.ts.map +0 -1
- package/types/helpers/file-save.d.ts +0 -17
- package/types/helpers/file-save.d.ts.map +0 -1
- package/types/helpers/node-data-manager.d.ts +0 -45
- package/types/helpers/node-data-manager.d.ts.map +0 -1
- package/types/helpers/pause-youtube-video.d.ts.map +0 -1
- package/types/helpers/scrollbar-width-property.d.ts +0 -11
- package/types/helpers/scrollbar-width-property.d.ts.map +0 -1
- package/types/ui/modals.d.ts +0 -27
- package/types/ui/modals.d.ts.map +0 -1
- package/types/utils/logger.d.ts.map +0 -1
- package/vite.config.js +0 -36
- /package/{js/deprecated → deprecated/js}/doc-ready.js +0 -0
- /package/{js/deprecated → deprecated/js}/jquery-prototypes.js +0 -0
- /package/{js/deprecated → deprecated/js}/mini-collapsible-popper-positioning.js +0 -0
- /package/{js/deprecated → deprecated/js}/mini-collapsible.js +0 -0
- /package/{js/helpers → deprecated/js}/node-data-manager.js +0 -0
- /package/{js/deprecated → deprecated/js}/script-loader.js +0 -0
- /package/{js/deprecated → deprecated/js}/waypoints/README.md +0 -0
- /package/{js/deprecated → deprecated/js}/waypoints/anchor-menu.js +0 -0
- /package/{js/deprecated → deprecated/js}/waypoints/element-waypoint.js +0 -0
- /package/{js/deprecated → deprecated/js}/waypoints/examples/page-link-menu.md +0 -0
- /package/{js/deprecated → deprecated/js}/waypoints/state-in-attribute.js +0 -0
- /package/types/{helpers → utils}/pause-youtube-video.d.ts +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
////
|
|
2
2
|
/// @group keyframes
|
|
3
|
+
/// Outputs keyframes used in animations for components, etc
|
|
3
4
|
////
|
|
4
5
|
|
|
5
6
|
@use "../utils";
|
|
6
7
|
|
|
7
|
-
///
|
|
8
|
+
/// Output ulu CSS keyframes
|
|
8
9
|
/// @example scss
|
|
9
10
|
/// @include ulu.base-keyframes-styles();
|
|
10
11
|
|
|
11
12
|
@mixin styles {
|
|
12
13
|
@include utils.file-header('base', 'keyframes');
|
|
13
|
-
@keyframes
|
|
14
|
+
@keyframes UluFadeIn {
|
|
14
15
|
0% {
|
|
15
16
|
opacity: 0;
|
|
16
17
|
}
|
|
@@ -18,7 +19,17 @@
|
|
|
18
19
|
opacity: 1;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
@keyframes
|
|
22
|
+
@keyframes UluFadeInUp {
|
|
23
|
+
0% {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateY(10px);
|
|
26
|
+
}
|
|
27
|
+
100% {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
transform: translateY(0);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@keyframes UluFadeInDown {
|
|
22
33
|
0% {
|
|
23
34
|
opacity: 0;
|
|
24
35
|
transform: translateY(-10px);
|
|
@@ -28,23 +39,51 @@
|
|
|
28
39
|
transform: translateY(0);
|
|
29
40
|
}
|
|
30
41
|
}
|
|
31
|
-
@keyframes
|
|
42
|
+
@keyframes UluFadeInLeft {
|
|
32
43
|
0% {
|
|
33
44
|
opacity: 0;
|
|
34
|
-
transform:
|
|
45
|
+
transform: translateX(-10px);
|
|
35
46
|
}
|
|
36
47
|
100% {
|
|
37
48
|
opacity: 1;
|
|
38
|
-
transform:
|
|
49
|
+
transform: translateX(0);
|
|
39
50
|
}
|
|
40
51
|
}
|
|
41
|
-
@keyframes
|
|
42
|
-
|
|
52
|
+
@keyframes UluFadeInLeftMore {
|
|
53
|
+
0% {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transform: translateX(-50px);
|
|
56
|
+
}
|
|
57
|
+
100% {
|
|
58
|
+
opacity: 1;
|
|
59
|
+
transform: translateX(0);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@keyframes UluFadeInRight {
|
|
63
|
+
0% {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
transform: translateX(10px);
|
|
66
|
+
}
|
|
67
|
+
100% {
|
|
68
|
+
opacity: 1;
|
|
69
|
+
transform: translateX(0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@keyframes UluFadeInRightMore {
|
|
73
|
+
0% {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
transform: translateX(50px);
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
transform: translateX(0);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@keyframes UluFadeInZoom {
|
|
43
83
|
0% {
|
|
44
84
|
opacity: 0;
|
|
45
85
|
transform: scale(0);
|
|
46
86
|
}
|
|
47
|
-
// Start
|
|
48
87
|
50% {
|
|
49
88
|
opacity: 0;
|
|
50
89
|
transform: scale(0);
|
|
@@ -54,25 +93,85 @@
|
|
|
54
93
|
transform: scale(1);
|
|
55
94
|
}
|
|
56
95
|
}
|
|
57
|
-
@keyframes
|
|
96
|
+
@keyframes UluFadeOut {
|
|
58
97
|
0% {
|
|
59
|
-
|
|
98
|
+
opacity: 1;
|
|
99
|
+
}
|
|
100
|
+
100% {
|
|
101
|
+
opacity: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@keyframes UluFadeOutLeft {
|
|
105
|
+
0% {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
transform: translateX(0);
|
|
108
|
+
}
|
|
109
|
+
100% {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translateX(-10px);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
@keyframes UluFadeOutRight {
|
|
115
|
+
0% {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
transform: translateX(0);
|
|
118
|
+
}
|
|
119
|
+
100% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform: translateX(10px);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
@keyframes UluFadeOutLeftMore {
|
|
125
|
+
0% {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
transform: translateX(0);
|
|
128
|
+
}
|
|
129
|
+
100% {
|
|
130
|
+
opacity: 0;
|
|
131
|
+
transform: translateX(-50px);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
@keyframes UluFadeOutRightMore {
|
|
135
|
+
0% {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
transform: translateX(0);
|
|
138
|
+
}
|
|
139
|
+
100% {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
transform: translateX(50px);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
@keyframes UluFadeDownOut {
|
|
145
|
+
0% {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
transform: translateY(-10px);
|
|
60
148
|
}
|
|
61
149
|
100% {
|
|
62
|
-
|
|
150
|
+
opacity: 0;
|
|
151
|
+
transform: translateY(0);
|
|
63
152
|
}
|
|
64
153
|
}
|
|
65
|
-
@keyframes
|
|
154
|
+
@keyframes UluSpin {
|
|
66
155
|
from {
|
|
67
|
-
transform:rotate(0deg);
|
|
156
|
+
transform: rotate(0deg);
|
|
68
157
|
}
|
|
69
158
|
to {
|
|
70
|
-
transform:rotate(360deg);
|
|
159
|
+
transform: rotate(360deg);
|
|
71
160
|
}
|
|
72
161
|
}
|
|
73
|
-
@keyframes
|
|
162
|
+
@keyframes UluPulse {
|
|
74
163
|
50% {
|
|
75
164
|
opacity: 0.5;
|
|
76
165
|
}
|
|
77
166
|
}
|
|
167
|
+
@keyframes UluScaleIn {
|
|
168
|
+
0% {
|
|
169
|
+
opacity: 0;
|
|
170
|
+
transform: scale(0);
|
|
171
|
+
}
|
|
172
|
+
100% {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
transform: scale(1);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
78
177
|
}
|
package/scss/base/_layout.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
////
|
|
2
2
|
/// @group layout
|
|
3
|
+
/// Output base layout styles (containers, flex layout utilities, etc)
|
|
3
4
|
////
|
|
4
5
|
|
|
5
6
|
@use "sass:map";
|
|
@@ -9,7 +10,9 @@
|
|
|
9
10
|
|
|
10
11
|
/// Module Settings
|
|
11
12
|
/// @type Map
|
|
12
|
-
/// @prop {
|
|
13
|
+
/// @prop {Boolean} containers [true] Enables container styling.
|
|
14
|
+
/// @prop {Boolean} container-nested-no-padding [false] Toggles whether nested receive horizontal padding or not.
|
|
15
|
+
/// @prop {Boolean} layout-flex [true] Enables layout-flex styling.
|
|
13
16
|
|
|
14
17
|
$config: (
|
|
15
18
|
"containers" : true,
|
|
@@ -19,22 +22,23 @@ $config: (
|
|
|
19
22
|
|
|
20
23
|
/// Change modules $config
|
|
21
24
|
/// @param {Map} $changes Map of changes
|
|
22
|
-
/// @example scss - General example
|
|
23
|
-
/// @include
|
|
25
|
+
/// @example scss - General example
|
|
26
|
+
/// @include ulu.base-layout-set(( "property" : value ));
|
|
27
|
+
|
|
24
28
|
@mixin set($changes) {
|
|
25
29
|
$config: map.merge($config, $changes) !global;
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
/// Get a config option
|
|
29
33
|
/// @param {Map} $name Name of property
|
|
30
|
-
/// @example scss - General example
|
|
31
|
-
/// @include
|
|
34
|
+
/// @example scss - General example
|
|
35
|
+
/// @include ulu.base-layout-get("property");
|
|
32
36
|
|
|
33
37
|
@function get($name) {
|
|
34
38
|
@return utils.require-map-get($config, $name, "base layout [config]");
|
|
35
39
|
}
|
|
36
40
|
|
|
37
|
-
/// Output Styles
|
|
41
|
+
/// Output Layout Styles
|
|
38
42
|
|
|
39
43
|
@mixin styles {
|
|
40
44
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
////
|
|
2
2
|
/// @group normalize
|
|
3
|
+
/// Output base normalize stylesheet
|
|
3
4
|
////
|
|
4
5
|
|
|
5
6
|
@use "../utils";
|
|
@@ -7,6 +8,8 @@
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
/// Prints the normalize stylesheet. Originally based on modern-normalize 1.1.0
|
|
11
|
+
/// - This has been reduced to what is needed and doesn't interfere
|
|
12
|
+
/// - Should be updated/added to as needed
|
|
10
13
|
/// @link https://www.npmjs.com/package/modern-normalize Modern Normalize (NPM)
|
|
11
14
|
/// @example scss
|
|
12
15
|
/// @include ulu.base-normalize-styles();
|
|
@@ -17,21 +20,6 @@
|
|
|
17
20
|
|
|
18
21
|
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
19
22
|
|
|
20
|
-
/*
|
|
21
|
-
Document
|
|
22
|
-
========
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
Use a better box model (opinionated).
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
// *,
|
|
30
|
-
// ::before,
|
|
31
|
-
// ::after {
|
|
32
|
-
// box-sizing: border-box;
|
|
33
|
-
// }
|
|
34
|
-
|
|
35
23
|
/**
|
|
36
24
|
Use a more readable tab size (opinionated).
|
|
37
25
|
*/
|
|
@@ -41,57 +29,9 @@
|
|
|
41
29
|
tab-size: 4;
|
|
42
30
|
}
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
// html {
|
|
50
|
-
// line-height: 1.15; /* 1 */
|
|
51
|
-
// -webkit-text-size-adjust: 100%; /* 2 */
|
|
52
|
-
// }
|
|
53
|
-
|
|
54
|
-
/*
|
|
55
|
-
Sections
|
|
56
|
-
========
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
Remove the margin in all browsers.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
// body {
|
|
64
|
-
// margin: 0;
|
|
65
|
-
// }
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
69
|
-
*/
|
|
70
|
-
|
|
71
|
-
// body {
|
|
72
|
-
// font-family:
|
|
73
|
-
// system-ui,
|
|
74
|
-
// -apple-system, /* Firefox supports this but not yet `system-ui` */
|
|
75
|
-
// 'Segoe UI',
|
|
76
|
-
// Roboto,
|
|
77
|
-
// Helvetica,
|
|
78
|
-
// Arial,
|
|
79
|
-
// sans-serif,
|
|
80
|
-
// 'Apple Color Emoji',
|
|
81
|
-
// 'Segoe UI Emoji';
|
|
82
|
-
// }
|
|
83
|
-
|
|
84
|
-
/*
|
|
85
|
-
Grouping content
|
|
86
|
-
================
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
1. Add the correct height in Firefox.
|
|
91
|
-
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
|
|
32
|
+
body {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
95
35
|
|
|
96
36
|
/*
|
|
97
37
|
Text-level semantics
|
|
@@ -106,62 +46,6 @@
|
|
|
106
46
|
text-decoration: underline dotted;
|
|
107
47
|
}
|
|
108
48
|
|
|
109
|
-
/**
|
|
110
|
-
Add the correct font weight in Edge and Safari.
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
// b,
|
|
114
|
-
// strong {
|
|
115
|
-
// font-weight: bolder;
|
|
116
|
-
// }
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
|
|
120
|
-
2. Correct the odd 'em' font sizing in all browsers.
|
|
121
|
-
*/
|
|
122
|
-
|
|
123
|
-
// code,
|
|
124
|
-
// kbd,
|
|
125
|
-
// samp,
|
|
126
|
-
// pre {
|
|
127
|
-
// font-family:
|
|
128
|
-
// ui-monospace,
|
|
129
|
-
// SFMono-Regular,
|
|
130
|
-
// Consolas,
|
|
131
|
-
// 'Liberation Mono',
|
|
132
|
-
// Menlo,
|
|
133
|
-
// monospace; /* 1 */
|
|
134
|
-
// font-size: 1em; /* 2 */
|
|
135
|
-
// }
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
Add the correct font size in all browsers.
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
// small {
|
|
142
|
-
// font-size: 80%;
|
|
143
|
-
// }
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
// sub,
|
|
150
|
-
// sup {
|
|
151
|
-
// font-size: 75%;
|
|
152
|
-
// line-height: 0;
|
|
153
|
-
// position: relative;
|
|
154
|
-
// vertical-align: baseline;
|
|
155
|
-
// }
|
|
156
|
-
|
|
157
|
-
// sub {
|
|
158
|
-
// bottom: -0.25em;
|
|
159
|
-
// }
|
|
160
|
-
|
|
161
|
-
// sup {
|
|
162
|
-
// top: -0.5em;
|
|
163
|
-
// }
|
|
164
|
-
|
|
165
49
|
/*
|
|
166
50
|
Tabular data
|
|
167
51
|
============
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group print
|
|
3
|
+
/// Output base print CSS styles
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
/// Printed Media Stylesheet
|
|
7
|
+
/// - Note this is a portion of the print styles from the original framework
|
|
8
|
+
/// and may be outdated. Most of the styling options have been removed though
|
|
9
|
+
/// @example scss
|
|
10
|
+
/// @include ulu.base-print-styles();
|
|
11
|
+
|
|
12
|
+
@mixin styles {
|
|
13
|
+
@media (print) {
|
|
14
|
+
* {
|
|
15
|
+
background: transparent !important;
|
|
16
|
+
color: black !important;
|
|
17
|
+
box-shadow: none !important;
|
|
18
|
+
text-shadow: none !important;
|
|
19
|
+
filter: none !important;
|
|
20
|
+
}
|
|
21
|
+
a,
|
|
22
|
+
a:visited {
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
}
|
|
25
|
+
pre,
|
|
26
|
+
blockquote {
|
|
27
|
+
page-break-inside: avoid;
|
|
28
|
+
}
|
|
29
|
+
tr, img {
|
|
30
|
+
page-break-inside: avoid;
|
|
31
|
+
}
|
|
32
|
+
img {
|
|
33
|
+
max-width: 100% !important;
|
|
34
|
+
}
|
|
35
|
+
p,
|
|
36
|
+
h2,
|
|
37
|
+
h3 {
|
|
38
|
+
orphans: 3;
|
|
39
|
+
widows: 3;
|
|
40
|
+
}
|
|
41
|
+
h2,
|
|
42
|
+
h3 {
|
|
43
|
+
page-break-after: avoid;
|
|
44
|
+
}
|
|
45
|
+
@page {
|
|
46
|
+
margin: 0.5in;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group root
|
|
3
|
+
/// Responsible for outputting the base :root custom properties for ulu
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
@use "sass:map";
|
|
7
|
+
|
|
8
|
+
@use "../utils";
|
|
9
|
+
|
|
10
|
+
/// Output custom properties in :root for base stylesheet
|
|
11
|
+
/// @example scss
|
|
12
|
+
/// @include ulu.base-root-styles();
|
|
13
|
+
|
|
14
|
+
@mixin styles {
|
|
15
|
+
@include utils.file-header('base', 'root');
|
|
16
|
+
// Core/default css-vars
|
|
17
|
+
:root {
|
|
18
|
+
@include custom-properties();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/// Output custom properties for ulu
|
|
23
|
+
|
|
24
|
+
@mixin custom-properties() {
|
|
25
|
+
--ulu-sticky-top-offset: 0px; // Should be adjusted by user
|
|
26
|
+
--ulu-sticky-bottom-offset: 0px; // Should be adjusted by user
|
|
27
|
+
--ulu-scrollbar-width: 0px; // Needs to be set by JS
|
|
28
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
////
|
|
2
2
|
/// @group typography
|
|
3
|
+
/// Output base typography classes
|
|
3
4
|
////
|
|
4
5
|
|
|
5
6
|
@use "sass:map";
|
|
@@ -7,7 +8,9 @@
|
|
|
7
8
|
@use "../selector";
|
|
8
9
|
@use "../utils";
|
|
9
10
|
|
|
10
|
-
/// Prints
|
|
11
|
+
/// Prints typography base styles
|
|
12
|
+
/// - These are any type sizes that specify "base-class" in their configuration
|
|
13
|
+
/// - Type sizes with "base-class-prefixed" will be prefixed with the "type-" prefix
|
|
11
14
|
/// @example scss
|
|
12
15
|
/// @include ulu.base-typography-styles();
|
|
13
16
|
/// @example html {preview} Example of type size as base unprefixed
|