_utility.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. .u-relative {
  2. position: relative;
  3. }
  4. .u-pointer {
  5. user-select: none;
  6. cursor: pointer;
  7. }
  8. .u-readonly {
  9. user-select: none;
  10. }
  11. .u-ellipsis {
  12. white-space: nowrap;
  13. overflow: hidden;
  14. text-overflow: ellipsis;
  15. }
  16. .u-overflow-x--auto {
  17. overflow-x: auto;
  18. overflow-y: hidden;
  19. }
  20. .u-overflow-y--auto {
  21. overflow-x: hidden;
  22. overflow-y: auto;
  23. }
  24. .u-color--blue {
  25. color: $blue;
  26. }
  27. .u-color--primary {
  28. color: $primary;
  29. }
  30. .u-color--success {
  31. color: $success;
  32. &.dark {
  33. color: $success--dark;
  34. }
  35. }
  36. .u-color--error {
  37. color: $error;
  38. &.light {
  39. color: #fb8885;
  40. }
  41. &.dark {
  42. color: #e51414;
  43. }
  44. }
  45. .u-color--warning {
  46. color: $warning;
  47. }
  48. .u-color--white {
  49. color: #fff;
  50. }
  51. .u-color--black {
  52. color: $black;
  53. &.light {
  54. color: $gray;
  55. }
  56. }
  57. .u-color--info {
  58. color: $info--dark;
  59. &.light {
  60. color: $info;
  61. }
  62. }
  63. .u-bold {
  64. font-weight: bold;
  65. }
  66. .u-text {
  67. &--center {
  68. text-align: center;
  69. }
  70. &--right {
  71. text-align: right;
  72. }
  73. }
  74. .u-align-self {
  75. &--stretch {
  76. align-self: stretch;
  77. }
  78. &--center {
  79. align-self: center;
  80. }
  81. &--start {
  82. align-self: flex-start;
  83. }
  84. }
  85. .u-size--contain {
  86. background-position: center center;
  87. background-size: contain;
  88. background-repeat: no-repeat;
  89. }
  90. .u-width--auto {
  91. width: auto !important;
  92. }
  93. .u-password {
  94. -webkit-text-security: disc;
  95. }
  96. .u-font-size--xs {
  97. font-size: $font-size--xs !important;
  98. }
  99. .u-font-size--sm {
  100. font-size: $font-size--sm !important;
  101. }
  102. .u-font-size {
  103. font-size: $font-size !important;
  104. }
  105. .u-font-size--md {
  106. font-size: $font-size--md !important;
  107. }
  108. .u-font-size--lg {
  109. font-size: $font-size--lg !important;
  110. }
  111. .u-font-size--xl {
  112. font-size: $font-size--xl !important;
  113. }
  114. .u-font-size--2xl {
  115. font-size: $font-size--2xl !important;
  116. }
  117. .u-font-size--3xl {
  118. font-size: $font-size--3xl !important;
  119. }
  120. .u-required::before {
  121. content: '*';
  122. color: #ff0000;
  123. }
  124. .has-info {
  125. position: relative;
  126. margin-bottom: 18px;
  127. &::after {
  128. content: attr(data-info);
  129. position: absolute;
  130. left: 0;
  131. bottom: -18px;
  132. color: $gray;
  133. font-size: 12px;
  134. line-height: 1;
  135. }
  136. }
  137. .u-events--none {
  138. pointer-events: none !important;
  139. }
  140. .u-fit--contain {
  141. object-fit: contain !important;
  142. }
  143. .u-width {
  144. width: 200px !important;
  145. &--xs {
  146. width: 120px !important;
  147. }
  148. &--sm {
  149. width: 160px !important;
  150. }
  151. &--md {
  152. width: 240px !important;
  153. }
  154. &--lg {
  155. width: 320px !important;
  156. }
  157. &--2xl {
  158. width: 400px !important;
  159. }
  160. }
  161. .u-vertical--middle {
  162. vertical-align: middle;
  163. }