hr-design-system-handlebars 0.42.5 → 0.42.6
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
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.42.6 (Wed Apr 13 2022)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- - added aspect ratio classes with fallback to tailwind.css [#215](https://github.com/mumprod/hr-design-system-handlebars/pull/215) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.42.5 (Wed Apr 13 2022)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -796,6 +796,54 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
796
796
|
grid-column: full;
|
|
797
797
|
}
|
|
798
798
|
|
|
799
|
+
/*! ****************************/
|
|
800
|
+
|
|
801
|
+
/*! Aspect Ratio with fallback */
|
|
802
|
+
|
|
803
|
+
/*! ****************************/
|
|
804
|
+
|
|
805
|
+
.ar-16-9 {
|
|
806
|
+
aspect-ratio: 16 / 9
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
@supports not (aspect-ratio: 16 / 9) {
|
|
810
|
+
.ar-16-9::before {
|
|
811
|
+
float: left;
|
|
812
|
+
padding-top: 56.25%;
|
|
813
|
+
content: '';
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.ar-16-19::after {
|
|
817
|
+
display: block;
|
|
818
|
+
content: '';
|
|
819
|
+
clear: both;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.ar-1-1 {
|
|
824
|
+
aspect-ratio: 1 / 1
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
@supports not (aspect-ratio: 1 / 1) {
|
|
828
|
+
.ar-1-1::before {
|
|
829
|
+
float: left;
|
|
830
|
+
padding-top: 100%;
|
|
831
|
+
content: '';
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.ar-1-1::after {
|
|
835
|
+
display: block;
|
|
836
|
+
content: '';
|
|
837
|
+
clear: both;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/*! ********************************/
|
|
842
|
+
|
|
843
|
+
/*! Aspect Ratio with fallback end */
|
|
844
|
+
|
|
845
|
+
/*! ********************************/
|
|
846
|
+
|
|
799
847
|
.headline--barrier {
|
|
800
848
|
display: -webkit-box;
|
|
801
849
|
display: -ms-flexbox;
|
|
@@ -2478,155 +2526,216 @@ Ensure the default browser behavior of the `hidden` attribute.
|
|
|
2478
2526
|
}
|
|
2479
2527
|
}
|
|
2480
2528
|
@media (min-width: 768px) {
|
|
2529
|
+
.md\:ar-16-9 {
|
|
2530
|
+
aspect-ratio: 16 / 9
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
@supports not (aspect-ratio: 16 / 9) {
|
|
2534
|
+
.md\:ar-16-9::before {
|
|
2535
|
+
float: left;
|
|
2536
|
+
padding-top: 56.25%;
|
|
2537
|
+
content: '';
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
.ar-16-19::after {
|
|
2541
|
+
display: block;
|
|
2542
|
+
content: '';
|
|
2543
|
+
clear: both;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2481
2547
|
.md\:static {
|
|
2482
2548
|
position: static;
|
|
2483
2549
|
}
|
|
2550
|
+
|
|
2484
2551
|
.md\:top-auto {
|
|
2485
2552
|
top: auto;
|
|
2486
2553
|
}
|
|
2554
|
+
|
|
2487
2555
|
.md\:left-auto {
|
|
2488
2556
|
left: auto;
|
|
2489
2557
|
}
|
|
2558
|
+
|
|
2490
2559
|
.md\:top-12 {
|
|
2491
2560
|
top: 3rem;
|
|
2492
2561
|
}
|
|
2562
|
+
|
|
2493
2563
|
.md\:left-0 {
|
|
2494
2564
|
left: 0px;
|
|
2495
2565
|
}
|
|
2566
|
+
|
|
2496
2567
|
.md\:z-101 {
|
|
2497
2568
|
z-index: 101;
|
|
2498
2569
|
}
|
|
2570
|
+
|
|
2499
2571
|
.md\:order-2 {
|
|
2500
2572
|
-webkit-box-ordinal-group: 3;
|
|
2501
2573
|
-ms-flex-order: 2;
|
|
2502
2574
|
order: 2;
|
|
2503
2575
|
}
|
|
2576
|
+
|
|
2504
2577
|
.md\:order-4 {
|
|
2505
2578
|
-webkit-box-ordinal-group: 5;
|
|
2506
2579
|
-ms-flex-order: 4;
|
|
2507
2580
|
order: 4;
|
|
2508
2581
|
}
|
|
2582
|
+
|
|
2509
2583
|
.md\:col-span-8 {
|
|
2510
2584
|
grid-column: span 8 / span 8;
|
|
2511
2585
|
}
|
|
2586
|
+
|
|
2512
2587
|
.md\:col-span-6 {
|
|
2513
2588
|
grid-column: span 6 / span 6;
|
|
2514
2589
|
}
|
|
2590
|
+
|
|
2515
2591
|
.md\:col-span-4 {
|
|
2516
2592
|
grid-column: span 4 / span 4;
|
|
2517
2593
|
}
|
|
2594
|
+
|
|
2518
2595
|
.md\:col-span-3 {
|
|
2519
2596
|
grid-column: span 3 / span 3;
|
|
2520
2597
|
}
|
|
2598
|
+
|
|
2521
2599
|
.md\:mt-0 {
|
|
2522
2600
|
margin-top: 0px;
|
|
2523
2601
|
}
|
|
2602
|
+
|
|
2524
2603
|
.md\:-mt-40 {
|
|
2525
2604
|
margin-top: -10rem;
|
|
2526
2605
|
}
|
|
2606
|
+
|
|
2527
2607
|
.md\:block {
|
|
2528
2608
|
display: block;
|
|
2529
2609
|
}
|
|
2610
|
+
|
|
2530
2611
|
.md\:flex {
|
|
2531
2612
|
display: -webkit-box;
|
|
2532
2613
|
display: -ms-flexbox;
|
|
2533
2614
|
display: flex;
|
|
2534
2615
|
}
|
|
2616
|
+
|
|
2535
2617
|
.md\:hidden {
|
|
2536
2618
|
display: none;
|
|
2537
2619
|
}
|
|
2620
|
+
|
|
2538
2621
|
.md\:h-header-md {
|
|
2539
2622
|
height: 5.5625rem;
|
|
2540
2623
|
}
|
|
2624
|
+
|
|
2541
2625
|
.md\:h-12 {
|
|
2542
2626
|
height: 3rem;
|
|
2543
2627
|
}
|
|
2628
|
+
|
|
2544
2629
|
.md\:h-7 {
|
|
2545
2630
|
height: 1.75rem;
|
|
2546
2631
|
}
|
|
2632
|
+
|
|
2547
2633
|
.md\:h-full {
|
|
2548
2634
|
height: 100%;
|
|
2549
2635
|
}
|
|
2636
|
+
|
|
2550
2637
|
.md\:h-8 {
|
|
2551
2638
|
height: 2rem;
|
|
2552
2639
|
}
|
|
2640
|
+
|
|
2553
2641
|
.md\:w-1\/2 {
|
|
2554
2642
|
width: 50%;
|
|
2555
2643
|
}
|
|
2644
|
+
|
|
2556
2645
|
.md\:w-40 {
|
|
2557
2646
|
width: 10rem;
|
|
2558
2647
|
}
|
|
2648
|
+
|
|
2559
2649
|
.md\:w-80 {
|
|
2560
2650
|
width: 20rem;
|
|
2561
2651
|
}
|
|
2652
|
+
|
|
2562
2653
|
.md\:w-auto {
|
|
2563
2654
|
width: auto;
|
|
2564
2655
|
}
|
|
2656
|
+
|
|
2565
2657
|
.md\:w-8 {
|
|
2566
2658
|
width: 2rem;
|
|
2567
2659
|
}
|
|
2660
|
+
|
|
2568
2661
|
.md\:max-w-1\/2 {
|
|
2569
2662
|
max-width: 50%;
|
|
2570
2663
|
}
|
|
2664
|
+
|
|
2571
2665
|
.md\:flex-auto {
|
|
2572
2666
|
-webkit-box-flex: 1;
|
|
2573
2667
|
-ms-flex: 1 1 auto;
|
|
2574
2668
|
flex: 1 1 auto;
|
|
2575
2669
|
}
|
|
2670
|
+
|
|
2576
2671
|
.md\:flex-col {
|
|
2577
2672
|
-webkit-box-orient: vertical;
|
|
2578
2673
|
-webkit-box-direction: normal;
|
|
2579
2674
|
-ms-flex-direction: column;
|
|
2580
2675
|
flex-direction: column;
|
|
2581
2676
|
}
|
|
2677
|
+
|
|
2582
2678
|
.md\:justify-end {
|
|
2583
2679
|
-webkit-box-pack: end;
|
|
2584
2680
|
-ms-flex-pack: end;
|
|
2585
2681
|
justify-content: flex-end;
|
|
2586
2682
|
}
|
|
2683
|
+
|
|
2587
2684
|
.md\:rounded-none {
|
|
2588
2685
|
border-radius: 0px;
|
|
2589
2686
|
}
|
|
2687
|
+
|
|
2590
2688
|
.md\:border-0 {
|
|
2591
2689
|
border-width: 0px;
|
|
2592
2690
|
}
|
|
2691
|
+
|
|
2593
2692
|
.md\:border-r {
|
|
2594
2693
|
border-right-width: 1px;
|
|
2595
2694
|
}
|
|
2695
|
+
|
|
2596
2696
|
.md\:border-l {
|
|
2597
2697
|
border-left-width: 1px;
|
|
2598
2698
|
}
|
|
2699
|
+
|
|
2599
2700
|
.md\:border-white {
|
|
2600
2701
|
--tw-border-opacity: 1;
|
|
2601
2702
|
border-color: rgba(255, 255, 255, var(--tw-border-opacity));
|
|
2602
2703
|
}
|
|
2704
|
+
|
|
2603
2705
|
.md\:px-0 {
|
|
2604
2706
|
padding-left: 0px;
|
|
2605
2707
|
padding-right: 0px;
|
|
2606
2708
|
}
|
|
2709
|
+
|
|
2607
2710
|
.md\:px-5 {
|
|
2608
2711
|
padding-left: 1.25rem;
|
|
2609
2712
|
padding-right: 1.25rem;
|
|
2610
2713
|
}
|
|
2714
|
+
|
|
2611
2715
|
.md\:px-4 {
|
|
2612
2716
|
padding-left: 1rem;
|
|
2613
2717
|
padding-right: 1rem;
|
|
2614
2718
|
}
|
|
2719
|
+
|
|
2615
2720
|
.md\:pt-4 {
|
|
2616
2721
|
padding-top: 1rem;
|
|
2617
2722
|
}
|
|
2723
|
+
|
|
2618
2724
|
.md\:pl-0 {
|
|
2619
2725
|
padding-left: 0px;
|
|
2620
2726
|
}
|
|
2727
|
+
|
|
2621
2728
|
.md\:text-4xl {
|
|
2622
2729
|
font-size: 2.125rem;
|
|
2623
2730
|
line-height: 2.25rem;
|
|
2624
2731
|
}
|
|
2732
|
+
|
|
2625
2733
|
.md\:drop-shadow-md {
|
|
2626
2734
|
--tw-drop-shadow: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.07));
|
|
2627
2735
|
-webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2628
2736
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2629
2737
|
}
|
|
2738
|
+
|
|
2630
2739
|
.md\:filter {
|
|
2631
2740
|
-webkit-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2632
2741
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
2
|
-
<figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
|
|
2
|
+
<figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
4
4
|
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
5
5
|
{{/components/base/link}}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "0.42.
|
|
9
|
+
"version": "0.42.6",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "start-storybook -p 6006 public",
|
package/src/assets/tailwind.css
CHANGED
|
@@ -411,6 +411,50 @@
|
|
|
411
411
|
grid-column: main;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
+
/*! ****************************/
|
|
415
|
+
/*! Aspect Ratio with fallback */
|
|
416
|
+
/*! ****************************/
|
|
417
|
+
.ar-16-9 {
|
|
418
|
+
aspect-ratio: 16 / 9
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
@supports not (aspect-ratio: 16 / 9) {
|
|
422
|
+
.ar-16-9::before {
|
|
423
|
+
float: left;
|
|
424
|
+
padding-top: 56.25%;
|
|
425
|
+
content: '';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.ar-16-19::after {
|
|
429
|
+
display: block;
|
|
430
|
+
content: '';
|
|
431
|
+
clear: both;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.ar-1-1 {
|
|
436
|
+
aspect-ratio: 1 / 1
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@supports not (aspect-ratio: 1 / 1) {
|
|
440
|
+
.ar-1-1::before {
|
|
441
|
+
float: left;
|
|
442
|
+
padding-top: 100%;
|
|
443
|
+
content: '';
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ar-1-1::after {
|
|
447
|
+
display: block;
|
|
448
|
+
content: '';
|
|
449
|
+
clear: both;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
/*! ********************************/
|
|
455
|
+
/*! Aspect Ratio with fallback end */
|
|
456
|
+
/*! ********************************/
|
|
457
|
+
|
|
414
458
|
.headline--barrier {
|
|
415
459
|
display: flex;
|
|
416
460
|
width: 100%;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<article class="col-span-12 flex gap-y-4 gap-x-5 {{inline-switch teasersize '["sm","md","lg"]' '["px-5 md:px-0 md:col-span-3 flex-row md:flex-col","md:col-span-4 flex-col","md:col-span-6 flex-col","flex-col"]'}} ">
|
|
2
|
-
<figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full"]'}} ">
|
|
2
|
+
<figure class="{{inline-switch teasersize '["sm"]' '["basis-2/5 md:flex-full ar-1-1 md:ar-16-9", "ar-16-9"]'}} ">
|
|
3
3
|
{{#>components/base/link _cssClasses="" _isAriaHidden=true _doTracking=(if this.doTracking 'true') _clickLabelPrefix1=this.realTeasersize _clickLabelPrefix2="mediaLink" }}
|
|
4
4
|
{{~> components/base/image/responsiveImage this.content.teaserImage _type=this.content.teasertype _variant=this.content.imageVariant _noDelay=../_noDelay _addClassImg="ar__content mediaPlayerLoader__mediaplayerArea" ~}}
|
|
5
5
|
{{/components/base/link}}
|