@fastkit/vui 0.15.0 → 0.16.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/dist/vui.css CHANGED
@@ -357,6 +357,15 @@
357
357
  --tabs-font-size:calc(var(--root-em)*0.875);
358
358
  --breadcrumbs-font-size:var(--typo-sm-size);
359
359
  --list-tile-padding:calc(var(--root-em)*0.625);
360
+ --snackbar-shadow:0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14), 0 1px 18px 0 rgba(0,0,0,.12);
361
+ --dialog-shadow:0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12);
362
+ --menu-shadow:0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
363
+ --tooltip-background:rgba(35,47,52,.9);
364
+ --tooltip-color:#fff;
365
+ --tooltip-radius:4px;
366
+ --tooltip-padding:5px 16px;
367
+ --tooltip-font-size:calc(var(--root-em)*0.875);
368
+ --tooltip-shadow:0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
360
369
  }
361
370
  :root,[lang=en]{
362
371
  --typo-base-font:Roboto, "Noto Sans";
@@ -691,6 +700,129 @@
691
700
  justify-content:center;
692
701
  transition:transform .15s linear;
693
702
  }
703
+ }
704
+ .v-tooltip{
705
+ --menu-shadow:var(--tooltip-shadow);
706
+ background:var(--tooltip-background) !important;
707
+ border-radius:var(--tooltip-radius);
708
+ color:var(--tooltip-color) !important;
709
+ font-size:var(--tooltip-font-size);
710
+ }
711
+ .v-tooltip__inner{
712
+ display:inline-block;
713
+ padding:var(--tooltip-padding);
714
+ }
715
+ .v-menu{
716
+ box-shadow:var(--menu-shadow);
717
+ }
718
+ .v-dialog,.v-menu{
719
+ border-radius:2px;
720
+ }
721
+ .v-dialog{
722
+ box-shadow:var(--dialog-shadow);
723
+ display:inline-block;
724
+ margin:24px;
725
+ min-width:280px;
726
+ outline:0;
727
+ pointer-events:auto;
728
+ position:relative;
729
+ text-align:left;
730
+ }
731
+ .v-dialog__header{
732
+ font-size:24px;
733
+ line-height:1.4;
734
+ }
735
+ .v-dialog__body,.v-dialog__header{
736
+ box-sizing:border-box;
737
+ padding:16px;
738
+ }
739
+ .v-dialog__body{
740
+ font-size:16px;
741
+ line-height:1.5;
742
+ }
743
+ .v-dialog--dense .v-dialog__body{
744
+ padding-bottom:0;
745
+ }
746
+ .v-dialog__actions{
747
+ align-items:center;
748
+ box-sizing:border-box;
749
+ display:flex;
750
+ justify-content:flex-end;
751
+ padding:8px;
752
+ }
753
+ .v-dialog--dense .v-dialog__actions{
754
+ padding-top:0;
755
+ }
756
+ .v-snackbar{
757
+ box-shadow:var(--snackbar-shadow);
758
+ font-size:14px;
759
+ }
760
+ .v-snackbar__inner{
761
+ align-items:center;
762
+ background-color:var(--main-color);
763
+ border-color:var(--border-color);
764
+ border-radius:inherit;
765
+ color:var(--text-color);
766
+ display:flex;
767
+ justify-content:space-between;
768
+ max-width:calc(100vw - 96px);
769
+ min-width:288px;
770
+ padding:8px 4px 8px 16px;
771
+ width:auto;
772
+ }
773
+ .v-snackbar__body{
774
+ flex:1 1 100%;
775
+ word-break:break-all;
776
+ }
777
+ .v-snackbar__actions{
778
+ flex:0 0 auto;
779
+ padding-left:20px;
780
+ white-space:nowrap;
781
+ }
782
+ .v-snackbar__close{
783
+ margin:0;
784
+ }
785
+ .v-sheet-modal{
786
+ --v-sheet-modal-width:90vw;
787
+ --v-sheet-modal-max-width:none;
788
+ --v-sheet-background:var(--palette-foundation);
789
+ bottom:0;
790
+ box-shadow:var(--dialog-shadow);
791
+ box-sizing:border-box;
792
+ display:flex;
793
+ flex-direction:column;
794
+ max-width:var(--v-sheet-modal-max-width);
795
+ outline:0;
796
+ padding:0;
797
+ position:fixed;
798
+ right:0;
799
+ top:0;
800
+ transition:transform var(--v-stack-transition-slowly);
801
+ width:var(--v-sheet-modal-width);
802
+ }
803
+ .v-sheet-modal__header{
804
+ background-color:var(--v-sheet-background);
805
+ flex:0 0;
806
+ position:relative;
807
+ z-index:1;
808
+ }
809
+ .v-sheet-modal__scroller{
810
+ -webkit-overflow-scrolling:touch;
811
+ background-color:var(--v-sheet-background);
812
+ flex:1 1;
813
+ height:100%;
814
+ overflow-y:auto;
815
+ }
816
+ .v-sheet-modal--has-active-child{
817
+ transform:translateX(calc(-100vw + var(--v-sheet-modal-width)));
818
+ }
819
+ .v-sheet-modal-enter-active,.v-sheet-modal-leave-active{
820
+ transition:transform var(--v-stack-transition-slowly);
821
+ }
822
+ .v-sheet-modal-enter-from,.v-sheet-modal-leave-to{
823
+ transform:translateX(var(--v-sheet-modal-width));
824
+ }
825
+ @layer vui{
694
826
  .v-skelton-loader-bone{
695
827
  background:rgba(0,0,0,.12);
696
828
  border-radius:inherit;
@@ -698,8 +830,6 @@
698
830
  overflow:hidden;
699
831
  position:relative;
700
832
  }
701
- }
702
- @layer vui{
703
833
  .v-skelton-loader-bone:after{
704
834
  animation:v-skelton-loader-bone-loading 1.5s infinite;
705
835
  background:linear-gradient(90deg, hsla(0,0%,100%,0), hsla(0,0%,100%,.3), hsla(0,0%,100%,0));