@ulu/frontend 0.1.0-beta.24 → 0.1.0-beta.26
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/CHANGELOG.md +15 -0
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/changelog/index.html +49 -0
- package/docs-dev/demos/accordion/index.html +30 -0
- package/docs-dev/demos/button/index.html +30 -0
- package/docs-dev/demos/callout/index.html +30 -0
- package/docs-dev/demos/captioned-figure/index.html +30 -0
- package/docs-dev/demos/card/index.html +456 -429
- package/docs-dev/demos/card-grid/index.html +5165 -0
- package/docs-dev/demos/css-icons/index.html +30 -0
- package/docs-dev/demos/data-grid/index.html +30 -0
- package/docs-dev/demos/data-table/index.html +55 -25
- package/docs-dev/demos/details-group/index.html +30 -0
- package/docs-dev/demos/file-save/index.html +30 -0
- package/docs-dev/demos/flipcard/index.html +30 -0
- package/docs-dev/demos/form-theme/index.html +30 -0
- package/docs-dev/demos/index.html +30 -0
- package/docs-dev/demos/list-inline/index.html +30 -0
- package/docs-dev/demos/list-lines/index.html +30 -0
- package/docs-dev/demos/menu-stack/index.html +30 -0
- package/docs-dev/demos/modals/index.html +30 -0
- package/docs-dev/demos/nav-strip/index.html +30 -0
- package/docs-dev/demos/overlay-section/index.html +30 -0
- package/docs-dev/demos/popovers/index.html +30 -0
- package/docs-dev/demos/print/index.html +30 -0
- package/docs-dev/demos/pull-quote/index.html +30 -0
- package/docs-dev/demos/rule/index.html +30 -0
- package/docs-dev/demos/scroll-slider/index.html +60 -102
- package/docs-dev/demos/scrollpoints/index.html +30 -0
- package/docs-dev/demos/spoke-spinner/index.html +30 -0
- package/docs-dev/demos/sticky-list/index.html +30 -0
- package/docs-dev/demos/tabs/index.html +30 -0
- package/docs-dev/demos/tag/index.html +30 -0
- package/docs-dev/demos/theme-toggle/index.html +30 -0
- package/docs-dev/demos/tiles/index.html +30 -0
- package/docs-dev/demos/tooltip/index.html +30 -0
- package/docs-dev/guide/building-stylesheet/index.html +30 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +30 -0
- package/docs-dev/guide/index.html +30 -0
- package/docs-dev/index.html +30 -0
- package/docs-dev/javascript/events/index.html +30 -0
- package/docs-dev/javascript/index.html +30 -0
- package/docs-dev/javascript/settings/index.html +30 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +30 -0
- package/docs-dev/javascript/ui-collapsible/index.html +30 -0
- package/docs-dev/javascript/ui-details-group/index.html +30 -0
- package/docs-dev/javascript/ui-dialog/index.html +30 -0
- package/docs-dev/javascript/ui-flipcard/index.html +30 -0
- package/docs-dev/javascript/ui-grid/index.html +30 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +30 -0
- package/docs-dev/javascript/ui-overflow-scroller/index.html +30 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +30 -0
- package/docs-dev/javascript/ui-page/index.html +30 -0
- package/docs-dev/javascript/ui-popover/index.html +30 -0
- package/docs-dev/javascript/ui-print/index.html +30 -0
- package/docs-dev/javascript/ui-print-details/index.html +30 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +30 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +30 -0
- package/docs-dev/javascript/ui-resizer/index.html +30 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +30 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +30 -0
- package/docs-dev/javascript/ui-slider/index.html +30 -0
- package/docs-dev/javascript/ui-tabs/index.html +30 -0
- package/docs-dev/javascript/ui-theme-toggle/index.html +30 -0
- package/docs-dev/javascript/ui-tooltip/index.html +30 -0
- package/docs-dev/javascript/utils-class-logger/index.html +30 -0
- package/docs-dev/javascript/utils-dom/index.html +30 -0
- package/docs-dev/javascript/utils-file-save/index.html +30 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +30 -0
- package/docs-dev/javascript/utils-id/index.html +30 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +30 -0
- package/docs-dev/sass/base/color/index.html +30 -0
- package/docs-dev/sass/base/elements/index.html +30 -0
- package/docs-dev/sass/base/index/index.html +30 -0
- package/docs-dev/sass/base/index.html +30 -0
- package/docs-dev/sass/base/keyframes/index.html +30 -0
- package/docs-dev/sass/base/layout/index.html +30 -0
- package/docs-dev/sass/base/normalize/index.html +30 -0
- package/docs-dev/sass/base/print/index.html +30 -0
- package/docs-dev/sass/base/root/index.html +30 -0
- package/docs-dev/sass/base/typography/index.html +30 -0
- package/docs-dev/sass/components/accordion/index.html +31 -1
- package/docs-dev/sass/components/adaptive-spacing/index.html +30 -0
- package/docs-dev/sass/components/badge/index.html +30 -0
- package/docs-dev/sass/components/basic-hero/index.html +30 -0
- package/docs-dev/sass/components/button/index.html +30 -0
- package/docs-dev/sass/components/button-verbose/index.html +30 -0
- package/docs-dev/sass/components/callout/index.html +30 -0
- package/docs-dev/sass/components/captioned-figure/index.html +30 -0
- package/docs-dev/sass/components/card/index.html +70 -12
- package/docs-dev/sass/components/card-grid/index.html +30 -0
- package/docs-dev/sass/components/css-icon/index.html +30 -0
- package/docs-dev/sass/components/data-grid/index.html +30 -0
- package/docs-dev/sass/components/data-table/index.html +30 -0
- package/docs-dev/sass/components/fill-context/index.html +30 -0
- package/docs-dev/sass/components/flipcard/index.html +30 -0
- package/docs-dev/sass/components/flipcard-grid/index.html +30 -0
- package/docs-dev/sass/components/form-theme/index.html +30 -0
- package/docs-dev/sass/components/hero/index.html +30 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +30 -0
- package/docs-dev/sass/components/image-grid/index.html +30 -0
- package/docs-dev/sass/components/index/index.html +30 -0
- package/docs-dev/sass/components/index.html +30 -0
- package/docs-dev/sass/components/links/index.html +30 -0
- package/docs-dev/sass/components/list-inline/index.html +30 -0
- package/docs-dev/sass/components/list-lines/index.html +30 -0
- package/docs-dev/sass/components/list-ordered/index.html +30 -0
- package/docs-dev/sass/components/list-unordered/index.html +30 -0
- package/docs-dev/sass/components/menu-stack/index.html +30 -0
- package/docs-dev/sass/components/modal/index.html +30 -0
- package/docs-dev/sass/components/nav-strip/index.html +30 -0
- package/docs-dev/sass/components/overlay-section/index.html +30 -0
- package/docs-dev/sass/components/pager/index.html +30 -0
- package/docs-dev/sass/components/placeholder-block/index.html +30 -0
- package/docs-dev/sass/components/popover/index.html +30 -0
- package/docs-dev/sass/components/pull-quote/index.html +30 -0
- package/docs-dev/sass/components/ratio-box/index.html +30 -0
- package/docs-dev/sass/components/rule/index.html +30 -0
- package/docs-dev/sass/components/scroll-slider/index.html +30 -0
- package/docs-dev/sass/components/skip-link/index.html +30 -0
- package/docs-dev/sass/components/slider/index.html +30 -0
- package/docs-dev/sass/components/spoke-spinner/index.html +30 -0
- package/docs-dev/sass/components/sticky-list/index.html +33 -3
- package/docs-dev/sass/components/tabs/index.html +30 -0
- package/docs-dev/sass/components/tag/index.html +30 -0
- package/docs-dev/sass/components/tile-button/index.html +30 -0
- package/docs-dev/sass/components/tile-grid/index.html +30 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +30 -0
- package/docs-dev/sass/components/vignette/index.html +30 -0
- package/docs-dev/sass/components/wysiwyg/index.html +30 -0
- package/docs-dev/sass/core/breakpoint/index.html +30 -0
- package/docs-dev/sass/core/button/index.html +30 -0
- package/docs-dev/sass/core/color/index.html +30 -0
- package/docs-dev/sass/core/cssvar/index.html +30 -0
- package/docs-dev/sass/core/element/index.html +30 -0
- package/docs-dev/sass/core/index.html +30 -0
- package/docs-dev/sass/core/layout/index.html +30 -0
- package/docs-dev/sass/core/path/index.html +30 -0
- package/docs-dev/sass/core/selector/index.html +30 -0
- package/docs-dev/sass/core/typography/index.html +30 -0
- package/docs-dev/sass/core/units/index.html +30 -0
- package/docs-dev/sass/core/utils/index.html +30 -0
- package/docs-dev/sass/helpers/color/index.html +30 -0
- package/docs-dev/sass/helpers/display/index.html +30 -0
- package/docs-dev/sass/helpers/index/index.html +30 -0
- package/docs-dev/sass/helpers/index.html +30 -0
- package/docs-dev/sass/helpers/print/index.html +30 -0
- package/docs-dev/sass/helpers/typography/index.html +30 -0
- package/docs-dev/sass/helpers/units/index.html +30 -0
- package/docs-dev/sass/helpers/utilities/index.html +30 -0
- package/docs-dev/sass/index.html +30 -0
- package/package.json +1 -1
- package/scss/components/_accordion.scss +4 -5
- package/scss/components/_card.scss +111 -22
|
@@ -57,12 +57,15 @@
|
|
|
57
57
|
/// @prop {Boolean} image-transition-enabled [true] Enable or disable the image transition.
|
|
58
58
|
/// @prop {Time} image-transition-duration [350ms] The duration of the image transition.
|
|
59
59
|
/// @prop {CssValue} image-transition-timing-function [ease-in-out] The timing function for the image transition.
|
|
60
|
+
/// @prop {Number} image-fit-padding [1rem] Padding on inside of image when using image fit modifier
|
|
61
|
+
/// @prop {CssValue} image-fit-filter [drop-shadow(0 0px 8px rgba(0, 0, 0, 0.2))] Filter to use on image when using image fit modifier
|
|
60
62
|
/// @prop {List} image-icon-max-width [30rem] Max width for image when using the modifier on the .card__image--icon
|
|
61
63
|
/// @prop {List} image-transition-properties [(transform, filter)] The properties for the image transitions.
|
|
62
64
|
/// @prop {String} horizontal-breakpoint [small] The breakpoint used to change the card to vertical if using the card--horizontal styling. Uses ulu's breakpoint module.
|
|
65
|
+
/// @prop {Unit} horizontal-min-height [10rem] Minimum height when horizontal
|
|
66
|
+
/// @prop {Unit} horizontal-max-width [40rem] Maximum width when horizontal
|
|
63
67
|
/// @prop {Unit} horizontal-body-max-width [80rem] The max-width of body when horizontal
|
|
64
68
|
|
|
65
|
-
|
|
66
69
|
$config: (
|
|
67
70
|
"background-color" : white,
|
|
68
71
|
"background-color-hover" : rgb(242, 244, 246),
|
|
@@ -80,12 +83,14 @@ $config: (
|
|
|
80
83
|
"footer-padding-y" : 0.25rem,
|
|
81
84
|
"footer-min-height" : 2.5rem,
|
|
82
85
|
"horizontal-breakpoint" : "small",
|
|
83
|
-
"horizontal-image-width" : 33%,
|
|
86
|
+
"horizontal-image-width" : min(33%, 20rem),
|
|
84
87
|
"horizontal-body-max-width" : 80rem,
|
|
88
|
+
"horizontal-min-height" : 10rem,
|
|
89
|
+
"horizontal-max-width" : 40rem,
|
|
85
90
|
"header-margin" : 0.75em,
|
|
86
91
|
"image-ratio" : 56.25%,
|
|
87
92
|
"image-aspect-ratio": list.slash(5, 3),
|
|
88
|
-
"image-background-color" : rgb(
|
|
93
|
+
"image-background-color" : rgb(238, 238, 238),
|
|
89
94
|
"image-border" : null, // For when you have a margin
|
|
90
95
|
"image-filter-hover" : null,
|
|
91
96
|
"image-margin" : null,
|
|
@@ -95,6 +100,8 @@ $config: (
|
|
|
95
100
|
"image-transition-enabled" : true,
|
|
96
101
|
"image-transition-properties" : (transform, filter),
|
|
97
102
|
"image-transition-timing-function" : ease-in-out,
|
|
103
|
+
"image-fit-padding" : 1rem,
|
|
104
|
+
"image-fit-filter" : drop-shadow(0 0px 8px rgba(0, 0, 0, 0.3)),
|
|
98
105
|
"margin-y" : 3rem,
|
|
99
106
|
"max-width" : 28rem,
|
|
100
107
|
"padding" : 2rem,
|
|
@@ -183,6 +190,9 @@ $config: (
|
|
|
183
190
|
flex-direction: column;
|
|
184
191
|
justify-content: flex-end;
|
|
185
192
|
max-width: get("max-width");
|
|
193
|
+
// Not absolutely necessary, incase we want to remove in future
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
|
|
186
196
|
// Border is on pseudo so that it's on top of image/etc
|
|
187
197
|
&:after {
|
|
188
198
|
position: absolute;
|
|
@@ -411,28 +421,107 @@ $config: (
|
|
|
411
421
|
}
|
|
412
422
|
}
|
|
413
423
|
|
|
424
|
+
// Incase this modifier is being used to hide the image
|
|
425
|
+
// not just to tell the component how to layout without image
|
|
426
|
+
// - Use case is hiding image when you can't control the output
|
|
427
|
+
// of the inside of the card (printed no matter what). We had
|
|
428
|
+
// this happen in HHRC, including this extra CSS for that
|
|
429
|
+
#{ $prefix }--no-image {
|
|
430
|
+
#{ $prefix }__image {
|
|
431
|
+
display: none;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
#{ $prefix }--image-fit {
|
|
435
|
+
#{ $prefix }__image {
|
|
436
|
+
img {
|
|
437
|
+
padding: get("image-fit-padding");
|
|
438
|
+
object-fit: contain;
|
|
439
|
+
object-position: top center;
|
|
440
|
+
filter: get("image-fit-filter");
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
414
445
|
@if (get("horizontal-breakpoint")) {
|
|
415
446
|
@include breakpoint.min(get("horizontal-breakpoint")) {
|
|
416
|
-
|
|
417
|
-
display: flex;
|
|
418
|
-
justify-content: center;
|
|
419
|
-
align-items: center;
|
|
420
|
-
#{ $prefix }__image {
|
|
421
|
-
width: get("horizontal-image-width");
|
|
422
|
-
flex: 0 1 get("horizontal-image-width");
|
|
423
|
-
// max-width: 30rem;
|
|
424
|
-
min-height: 28rem;
|
|
425
|
-
// padding-top: 0;
|
|
426
|
-
}
|
|
427
|
-
#{ $prefix }__body {
|
|
428
|
-
display: flex;
|
|
429
|
-
flex: 1;
|
|
430
|
-
flex-direction: column;
|
|
431
|
-
justify-content: center;
|
|
432
|
-
max-width: get("horizontal-body-max-width");
|
|
433
|
-
}
|
|
434
|
-
}
|
|
447
|
+
@include -horizontal-card-styles();
|
|
435
448
|
}
|
|
449
|
+
} @else {
|
|
450
|
+
@include -horizontal-card-styles();
|
|
436
451
|
}
|
|
437
452
|
}
|
|
438
453
|
|
|
454
|
+
@mixin -horizontal-card-styles() {
|
|
455
|
+
$prefix: selector.class("card");
|
|
456
|
+
|
|
457
|
+
#{ $prefix }--horizontal {
|
|
458
|
+
display: grid;
|
|
459
|
+
grid-template-columns: get("horizontal-image-width") 1fr;
|
|
460
|
+
// Creating the two rows (body and footer), if one is missing it's height will be 0
|
|
461
|
+
// Cannot use gap with the grid as it will create space when a row isn't needed
|
|
462
|
+
grid-template-rows: auto auto;
|
|
463
|
+
min-height: get("horizontal-min-height");
|
|
464
|
+
max-width: get("horizontal-max-width");
|
|
465
|
+
#{ $prefix }__image {
|
|
466
|
+
grid-column: 1 / 2;
|
|
467
|
+
grid-row: 1 / -1;
|
|
468
|
+
aspect-ratio: auto;
|
|
469
|
+
border-top-right-radius: 0;
|
|
470
|
+
border-bottom-left-radius: get("border-radius");
|
|
471
|
+
}
|
|
472
|
+
#{ $prefix }__body,
|
|
473
|
+
#{ $prefix }__footer {
|
|
474
|
+
grid-column: 2 / 3;
|
|
475
|
+
}
|
|
476
|
+
#{ $prefix }__body {
|
|
477
|
+
display: flex;
|
|
478
|
+
flex-direction: column;
|
|
479
|
+
justify-content: center;
|
|
480
|
+
max-width: get("horizontal-body-max-width");
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// For modern browsers
|
|
484
|
+
// Optionally use no-image modifier for older browser support
|
|
485
|
+
&:not(:has(#{ $prefix }__image)) {
|
|
486
|
+
@include -card-horizontal-no-image-styles();
|
|
487
|
+
}
|
|
488
|
+
&#{ $prefix }--no-image {
|
|
489
|
+
@include -card-horizontal-no-image-styles();
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
@mixin -card-horizontal-no-image-styles() {
|
|
495
|
+
$prefix: selector.class("card");
|
|
496
|
+
grid-template-columns: 1fr;
|
|
497
|
+
#{ $prefix }__body,
|
|
498
|
+
#{ $prefix }__footer {
|
|
499
|
+
grid-column: 1 / 2;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// OLD CSS FOR HORIZONTAL
|
|
504
|
+
// #{ $prefix }--horizontal {
|
|
505
|
+
// display: flex;
|
|
506
|
+
// flex-direction: row;
|
|
507
|
+
// justify-content: center;
|
|
508
|
+
// align-items: center;
|
|
509
|
+
// #{ $prefix }__image {
|
|
510
|
+
// align-self: stretch;
|
|
511
|
+
// border-top-right-radius: 0;
|
|
512
|
+
// border-bottom-left-radius: get("border-radius");
|
|
513
|
+
// width: get("horizontal-image-width");
|
|
514
|
+
// flex: 0 0 get("horizontal-image-width");
|
|
515
|
+
// // max-width: 30rem;
|
|
516
|
+
// // min-height: 28rem;
|
|
517
|
+
// // padding-top: 0;
|
|
518
|
+
// }
|
|
519
|
+
// #{ $prefix }__body {
|
|
520
|
+
// display: flex;
|
|
521
|
+
// flex: 1;
|
|
522
|
+
// flex-direction: column;
|
|
523
|
+
// justify-content: center;
|
|
524
|
+
// max-width: get("horizontal-body-max-width");
|
|
525
|
+
// }
|
|
526
|
+
// }
|
|
527
|
+
|