_utilities.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. // 阴影
  2. .shadow-0 {
  3. box-shadow: none!important;
  4. }
  5. .shadow {
  6. box-shadow: $shadow!important;
  7. }
  8. .shadow-100 {
  9. box-shadow: $shadow-100!important;
  10. }
  11. .shadow-200 {
  12. box-shadow: $shadow-200!important;
  13. }
  14. // 文本大小
  15. // small
  16. .font-sm-1{
  17. font-size: 0.7rem !important;
  18. }
  19. .font-sm-2{
  20. font-size: 0.8rem !important;
  21. }
  22. .font-sm-3{
  23. font-size: 0.9rem !important;
  24. }
  25. // medium
  26. .font-md-1{
  27. font-size: 1.1rem !important;
  28. }
  29. .font-md-2{
  30. font-size: 1.2rem !important;
  31. }
  32. .font-md-3{
  33. font-size: 1.3rem !important;
  34. }
  35. .font-md-4{
  36. font-size: 1.4rem !important;
  37. }
  38. .font-md-5{
  39. font-size: 1.5rem !important;
  40. }
  41. //large
  42. .font-lg-1{
  43. font-size: 2rem !important;
  44. }
  45. .font-lg-2{
  46. font-size: 3rem !important;
  47. }
  48. .font-lg-3{
  49. font-size: 4rem !important;
  50. }
  51. .font-lg-4{
  52. font-size: 5rem !important;
  53. }
  54. .font-lg-5{
  55. font-size: 6rem !important;
  56. }
  57. // Font weights
  58. .font-w-300 {
  59. font-weight: 300;
  60. }
  61. .font-w-400 {
  62. font-weight: 400;
  63. }
  64. .font-w-500 {
  65. font-weight: 500;
  66. }
  67. .font-w-600 {
  68. font-weight: 600;
  69. }
  70. .font-w-700 {
  71. font-weight: 700;
  72. }
  73. // margin 1.5 pading 1.5
  74. .mt-1-5 {
  75. margin-top: 1.5rem!important;
  76. }
  77. .mb-1-5 {
  78. margin-bottom: 1.5rem!important;
  79. }
  80. .ml-1-5 {
  81. margin-left: 1.5rem!important;
  82. }
  83. .mr-1-5 {
  84. margin-right: 1.5rem!important;
  85. }
  86. .pt-1-5 {
  87. padding-top: 1.5rem!important;
  88. }
  89. .pb-1-5 {
  90. padding-bottom: 1.5rem!important;
  91. }
  92. .pl-1-5 {
  93. padding-left: 1.5rem!important;
  94. }
  95. .pr-1-5 {
  96. padding-right: 1.5rem!important;
  97. }
  98. // Font style
  99. .text-italic {
  100. font-style: italic;
  101. }
  102. .text-highlight {
  103. padding: 4px 6px;
  104. }
  105. //
  106. .pin, .pin-y {
  107. top: 0;
  108. bottom: 0;
  109. }
  110. .pin {
  111. right: 0;
  112. left: 0;
  113. }
  114. // icon
  115. .icon-bg-circle{
  116. color: $white;
  117. padding: 0.5rem;
  118. border-radius: 50%;
  119. }
  120. .icon-left{
  121. margin-right:0.5rem;
  122. }
  123. .icon-right{
  124. margin-right:0.5rem;
  125. }
  126. .icon-spin {
  127. display: inline-block;
  128. animation: spin 1s infinite linear;
  129. }
  130. // spin
  131. @-moz-keyframes spin {
  132. from {
  133. -moz-transform: rotate(0deg);
  134. }
  135. to {
  136. -moz-transform: rotate(360deg);
  137. }
  138. }
  139. @-webkit-keyframes spin {
  140. from {
  141. -webkit-transform: rotate(0deg);
  142. }
  143. to {
  144. -webkit-transform: rotate(360deg);
  145. }
  146. }
  147. @keyframes spin {
  148. from {
  149. transform: rotate(0deg);
  150. }
  151. to {
  152. transform: rotate(360deg);
  153. }
  154. }
  155. .hidden {
  156. display: none;
  157. visibility: hidden;
  158. }
  159. .round{@include border-radius(1.5rem);}
  160. .square{@include border-radius($btn-border-radius-square);}
  161. .icon-line-height{
  162. line-height : 1.5rem !important;
  163. }
  164. // Spinner classes
  165. .spinner {
  166. display: inline-block;
  167. -webkit-animation: spin 1s linear infinite;
  168. -o-animation: spin 1s linear infinite;
  169. animation: spin 1s linear infinite;
  170. }
  171. @keyframes spin {
  172. 0% { transform: rotate(0deg); }
  173. 100% { transform: rotate(360deg); }
  174. }
  175. // Button focus outline
  176. button:focus{
  177. outline: none;
  178. }
  179. .overflow-x-auto {
  180. overflow-x: auto!important;
  181. }
  182. .overflow-y-auto {
  183. overflow-y: auto!important;
  184. }