ps-toolkit-ui 1.3.18 → 1.3.21
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/bundles/ps-toolkit-ui.umd.js +2 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +2 -2
- package/esm2015/lib/components/table/row/table.row.component.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
- package/src/assets/styles/base.css +153 -0
|
@@ -490,3 +490,156 @@ form{
|
|
|
490
490
|
.m-r-1400-0{margin-right: 0;}.m-l-1400-0{margin-left: 0;}
|
|
491
491
|
}
|
|
492
492
|
.f-r{float:right!important}.f-l{float:left!important}.f-u{float:unset!important}
|
|
493
|
+
|
|
494
|
+
/* Positioning and visibility settings of the tooltip */
|
|
495
|
+
[data-tooltip]:before,
|
|
496
|
+
[data-tooltip]:after {
|
|
497
|
+
position: absolute;
|
|
498
|
+
visibility: hidden;
|
|
499
|
+
opacity: 0;
|
|
500
|
+
left: 50%;
|
|
501
|
+
bottom: calc(100% + 5px);
|
|
502
|
+
pointer-events: none;
|
|
503
|
+
transition: 0.2s;
|
|
504
|
+
will-change: transform;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/* The actual tooltip with a dynamic width */
|
|
508
|
+
[data-tooltip]:before {
|
|
509
|
+
content: attr(data-tooltip);
|
|
510
|
+
padding: 0 10px;
|
|
511
|
+
line-height: 30px;
|
|
512
|
+
min-width: 50px;
|
|
513
|
+
max-width: 300px;
|
|
514
|
+
width: max-content;
|
|
515
|
+
width: -moz-max-content;
|
|
516
|
+
border-radius: var(--border-radius-base);
|
|
517
|
+
font-size: 13px;
|
|
518
|
+
background-color: var(--black);
|
|
519
|
+
color: #fff;
|
|
520
|
+
text-align: center;
|
|
521
|
+
white-space: pre-wrap;
|
|
522
|
+
z-index: 6;
|
|
523
|
+
transform: translate(-50%, -5px) scale(0.5);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* Tooltip arrow */
|
|
527
|
+
[data-tooltip]:after {
|
|
528
|
+
content: '';
|
|
529
|
+
border-style: solid;
|
|
530
|
+
border-width: 5px 5px 0px 5px;
|
|
531
|
+
border-color: var(--black);
|
|
532
|
+
transition-duration: 0s; /* If the mouse leaves the element,
|
|
533
|
+
the transition effects for the
|
|
534
|
+
tooltip arrow are "turned off" */
|
|
535
|
+
transform-origin: top; /* Orientation setting for the
|
|
536
|
+
slide-down effect */
|
|
537
|
+
transform: translateX(-50%) scaleY(0);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
/* Tooltip becomes visible at hover */
|
|
541
|
+
[data-tooltip]:hover:before,
|
|
542
|
+
[data-tooltip]:hover:after {
|
|
543
|
+
visibility: visible;
|
|
544
|
+
opacity: 1;
|
|
545
|
+
}
|
|
546
|
+
/* Scales from 0.5 to 1 -> grow effect */
|
|
547
|
+
[data-tooltip]:hover:before {
|
|
548
|
+
transition-delay: 0.3s;
|
|
549
|
+
transform: translate(-50%, -5px) scale(1);
|
|
550
|
+
}
|
|
551
|
+
/* Slide down effect only on mouseenter (NOT on mouseleave) */
|
|
552
|
+
[data-tooltip]:hover:after {
|
|
553
|
+
transition-delay: 0.5s; /* Starting after the grow effect */
|
|
554
|
+
transition-duration: 0.2s;
|
|
555
|
+
transform: translateX(-50%) scaleY(1);
|
|
556
|
+
}
|
|
557
|
+
/*
|
|
558
|
+
That's it.
|
|
559
|
+
*/
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
/*
|
|
567
|
+
If you want some adjustability
|
|
568
|
+
here are some orientation settings you can use:
|
|
569
|
+
*/
|
|
570
|
+
|
|
571
|
+
/* LEFT */
|
|
572
|
+
/* Tooltip + arrow */
|
|
573
|
+
[data-tooltip-location="left"]:before,
|
|
574
|
+
[data-tooltip-location="left"]:after {
|
|
575
|
+
left: auto;
|
|
576
|
+
right: calc(100% + 5px);
|
|
577
|
+
bottom: 50%;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/* Tooltip */
|
|
581
|
+
[data-tooltip-location="left"]:before {
|
|
582
|
+
transform: translate(-5px, 50%) scale(0.5);
|
|
583
|
+
}
|
|
584
|
+
[data-tooltip-location="left"]:hover:before {
|
|
585
|
+
transform: translate(-5px, 50%) scale(1);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* Arrow */
|
|
589
|
+
[data-tooltip-location="left"]:after {
|
|
590
|
+
border-width: 5px 0px 5px 5px;
|
|
591
|
+
border-color: transparent transparent transparent rgba(55, 64, 70, 0.9);
|
|
592
|
+
transform-origin: left;
|
|
593
|
+
transform: translateY(50%) scaleX(0);
|
|
594
|
+
}
|
|
595
|
+
[data-tooltip-location="left"]:hover:after {
|
|
596
|
+
transform: translateY(50%) scaleX(1);
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
/* RIGHT */
|
|
602
|
+
[data-tooltip-location="right"]:before,
|
|
603
|
+
[data-tooltip-location="right"]:after {
|
|
604
|
+
left: calc(100% + 5px);
|
|
605
|
+
bottom: 50%;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
[data-tooltip-location="right"]:before {
|
|
609
|
+
transform: translate(5px, 50%) scale(0.5);
|
|
610
|
+
}
|
|
611
|
+
[data-tooltip-location="right"]:hover:before {
|
|
612
|
+
transform: translate(5px, 50%) scale(1);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
[data-tooltip-location="right"]:after {
|
|
616
|
+
border-width: 5px 5px 5px 0px;
|
|
617
|
+
border-color: transparent rgba(55, 64, 70, 0.9) transparent transparent;
|
|
618
|
+
transform-origin: right;
|
|
619
|
+
transform: translateY(50%) scaleX(0);
|
|
620
|
+
}
|
|
621
|
+
[data-tooltip-location="right"]:hover:after {
|
|
622
|
+
transform: translateY(50%) scaleX(1);
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
/* BOTTOM */
|
|
628
|
+
[data-tooltip-location="bottom"]:before,
|
|
629
|
+
[data-tooltip-location="bottom"]:after {
|
|
630
|
+
top: calc(100% + 5px);
|
|
631
|
+
bottom: auto;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
[data-tooltip-location="bottom"]:before {
|
|
635
|
+
transform: translate(-50%, 5px) scale(0.5);
|
|
636
|
+
}
|
|
637
|
+
[data-tooltip-location="bottom"]:hover:before {
|
|
638
|
+
transform: translate(-50%, 5px) scale(1);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
[data-tooltip-location="bottom"]:after {
|
|
642
|
+
border-width: 0px 5px 5px 5px;
|
|
643
|
+
border-color: transparent transparent rgba(55, 64, 70, 0.9) transparent;
|
|
644
|
+
transform-origin: bottom;
|
|
645
|
+
}
|