_utilities.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. // Font style
  74. .text-italic {
  75. font-style: italic;
  76. }
  77. .text-highlight {
  78. padding: 4px 6px;
  79. }
  80. //
  81. .pin, .pin-y {
  82. top: 0;
  83. bottom: 0;
  84. }
  85. .pin {
  86. right: 0;
  87. left: 0;
  88. }
  89. // icon
  90. .icon-bg-circle{
  91. color: $white;
  92. padding: 0.5rem;
  93. border-radius: 50%;
  94. }
  95. .icon-left{
  96. margin-right:0.5rem;
  97. }
  98. .icon-right{
  99. margin-right:0.5rem;
  100. }
  101. .icon-spin {
  102. display: inline-block;
  103. animation: spin 1s infinite linear;
  104. }
  105. // spin
  106. @-moz-keyframes spin {
  107. from {
  108. -moz-transform: rotate(0deg);
  109. }
  110. to {
  111. -moz-transform: rotate(360deg);
  112. }
  113. }
  114. @-webkit-keyframes spin {
  115. from {
  116. -webkit-transform: rotate(0deg);
  117. }
  118. to {
  119. -webkit-transform: rotate(360deg);
  120. }
  121. }
  122. @keyframes spin {
  123. from {
  124. transform: rotate(0deg);
  125. }
  126. to {
  127. transform: rotate(360deg);
  128. }
  129. }
  130. .hidden {
  131. display: none;
  132. visibility: hidden;
  133. }
  134. .round{@include border-radius(1.5rem);}
  135. .square{@include border-radius($btn-border-radius-square);}
  136. .icon-line-height{
  137. line-height : 1.5rem !important;
  138. }
  139. // Spinner classes
  140. .spinner {
  141. display: inline-block;
  142. -webkit-animation: spin 1s linear infinite;
  143. -o-animation: spin 1s linear infinite;
  144. animation: spin 1s linear infinite;
  145. }
  146. @keyframes spin {
  147. 0% { transform: rotate(0deg); }
  148. 100% { transform: rotate(360deg); }
  149. }
  150. // Button focus outline
  151. button:focus{
  152. outline: none;
  153. }