@fastkit/vui 0.6.34 → 0.6.38

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
@@ -440,6 +440,12 @@ template {
440
440
  --control-switch-width: 3.625em;
441
441
  --control-switch-track-width: 2.125em;
442
442
  --control-switch-track-height: 0.875em;
443
+ --wysiwyg-min-height-sm: 3em;
444
+ --wysiwyg-min-height-md: 6em;
445
+ --wysiwyg-min-height-lg: 9em;
446
+ --wysiwyg-max-height-sm: 9em;
447
+ --wysiwyg-max-height-md: 13em;
448
+ --wysiwyg-max-height-lg: 16em;
443
449
  --shadow-key-umbra-opacity: rgba(0, 0, 0, 0.2);
444
450
  --shadow-key-penumbra-opacity: rgba(0, 0, 0, 0.14);
445
451
  --shadow-key-ambient-opacity: rgba(0, 0, 0, 0.12);
@@ -812,6 +818,34 @@ thead th {
812
818
  --control-field-rem: var(--control-field-rem-lg);
813
819
  font-size: var(--control-field-rem);
814
820
  }
821
+
822
+ .wysiwyg > h1:first-child,
823
+ .wysiwyg h2:first-child,
824
+ .wysiwyg h3:first-child,
825
+ .wysiwyg h4:first-child,
826
+ .wysiwyg h5:first-child,
827
+ .wysiwyg h6:first-child,
828
+ .wysiwyg p:first-child,
829
+ .wysiwyg ul:first-child,
830
+ .wysiwyg ol:first-child,
831
+ .wysiwyg table:first-child {
832
+ margin-top: 0;
833
+ }
834
+ .wysiwyg > h1:last-child,
835
+ .wysiwyg h2:last-child,
836
+ .wysiwyg h3:last-child,
837
+ .wysiwyg h4:last-child,
838
+ .wysiwyg h5:last-child,
839
+ .wysiwyg h6:last-child,
840
+ .wysiwyg p:last-child,
841
+ .wysiwyg ul:last-child,
842
+ .wysiwyg ol:last-child,
843
+ .wysiwyg table:last-child {
844
+ margin-bottom: 0;
845
+ }
846
+ .wysiwyg p {
847
+ margin: 0;
848
+ }
815
849
  .v-form-selector__body {
816
850
  display: block;
817
851
  }
@@ -953,6 +987,9 @@ thead th {
953
987
  .v-button--plain {
954
988
  color: inherit !important;
955
989
  }
990
+ .v-button--plain[disabled] {
991
+ opacity: 0.5;
992
+ }
956
993
  .v-button--sm {
957
994
  font-size: calc(var(--root-em) * 0.75);
958
995
  }
@@ -965,13 +1002,14 @@ thead th {
965
1002
  .v-button--rounded {
966
1003
  --padding: 0;
967
1004
  min-width: 0;
1005
+ aspect-ratio: 1/1;
968
1006
  margin: calc(var(--root-em) * 0.125) calc(var(--root-em) * 0.125);
969
1007
  border-radius: 50%;
970
- aspect-ratio: 1/1;
971
1008
  --height: auto;
972
1009
  }
973
1010
  .v-button--icon {
974
- min-width: 0;
1011
+ min-width: 1.9285714286em;
1012
+ margin: calc(var(--root-em) * 0.125) calc(var(--root-em) * 0.125);
975
1013
  --height: 1.9285714286em;
976
1014
  --padding: 0em;
977
1015
  }
@@ -1010,6 +1048,25 @@ thead th {
1010
1048
  z-index: 1;
1011
1049
  transform: translate(-50%, -50%);
1012
1050
  }
1051
+ .v-button-group {
1052
+ display: inline-flex;
1053
+ align-items: stretch;
1054
+ }
1055
+ .v-button-group__item {
1056
+ position: relative;
1057
+ margin: 0;
1058
+ }
1059
+ .v-button-group__item--has-left {
1060
+ border-top-left-radius: 0;
1061
+ border-bottom-left-radius: 0;
1062
+ }
1063
+ .v-button-group__item--has-right {
1064
+ border-top-right-radius: 0;
1065
+ border-bottom-right-radius: 0;
1066
+ }
1067
+ .v-button-group__item:focus {
1068
+ z-index: 1;
1069
+ }
1013
1070
  .v-pagination {
1014
1071
  --pagination-size: var(--pagination-item-size);
1015
1072
  --pagination-margin: var(--pagination-item-margin);
@@ -1708,6 +1765,51 @@ thead th {
1708
1765
  font-style: italic;
1709
1766
  color: var(--control-disabled-color);
1710
1767
  }
1768
+ .v-wysiwyg-editor--sm {
1769
+ --min-height: var(--wysiwyg-min-height-sm);
1770
+ --max-height: var(--wysiwyg-max-height-sm);
1771
+ }
1772
+ .v-wysiwyg-editor--md {
1773
+ --min-height: var(--wysiwyg-min-height-md);
1774
+ --max-height: var(--wysiwyg-max-height-md);
1775
+ }
1776
+ .v-wysiwyg-editor--lg {
1777
+ --min-height: var(--wysiwyg-min-height-lg);
1778
+ --max-height: var(--wysiwyg-max-height-lg);
1779
+ }
1780
+ .v-wysiwyg-editor__wrapper {
1781
+ position: relative;
1782
+ }
1783
+ .v-wysiwyg-editor__floating-toolbar {
1784
+ position: absolute;
1785
+ right: 0;
1786
+ bottom: 100%;
1787
+ z-index: 1;
1788
+ }
1789
+ .v-wysiwyg-editor__body {
1790
+ position: relative;
1791
+ max-height: var(--max-height);
1792
+ overflow: auto;
1793
+ }
1794
+ .v-wysiwyg-editor__input {
1795
+ cursor: text;
1796
+ }
1797
+ .v-wysiwyg-editor__input__element {
1798
+ width: 100%;
1799
+ min-width: 0;
1800
+ padding: 8px 0;
1801
+ margin: 0;
1802
+ }
1803
+ .v-wysiwyg-editor__input__prose {
1804
+ min-height: var(--min-height);
1805
+ outline: none;
1806
+ }
1807
+ .v-wysiwyg-editor--disabled-min-heihgt .v-wysiwyg-editor__input__prose {
1808
+ min-height: 0;
1809
+ }
1810
+ .v-wysiwyg-editor--disabled-max-heihgt .v-wysiwyg-editor__body {
1811
+ max-height: none;
1812
+ }
1711
1813
  .v-tabs {
1712
1814
  position: relative;
1713
1815
  width: 100%;