text.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. //text
  2. .del{
  3. text-decoration-line: line-through;
  4. }
  5. .flicker{
  6. font-size: 1em;
  7. color: red;
  8. animation: changeshadow 2s ease-in infinite;
  9. -webkit-animation: changeshadow 2s linear infinite;
  10. -moz-animation: changeshadow 2s linear infinite;
  11. -ms-animation: changeshadow 2s linear infinite;
  12. -o-animation: changeshadow 2s linear infinite;
  13. }
  14. @keyframes changeshadow {
  15. 0%{ text-shadow: 0 0 4px red}
  16. 50%{ text-shadow: 0 0 40px red}
  17. 100%{ text-shadow: 0 0 4px red}
  18. }
  19. /* 添加兼容性前缀 */
  20. @-webkit-keyframes changeshadow {
  21. 0%{ text-shadow: 0 0 4px red}
  22. 50%{ text-shadow: 0 0 40px red}
  23. 100%{ text-shadow: 0 0 4px red}
  24. }
  25. @-moz-keyframes changeshadow {
  26. 0%{ text-shadow: 0 0 4px red}
  27. 50%{ text-shadow: 0 0 40px red}
  28. 100%{ text-shadow: 0 0 4px red}
  29. }
  30. @-ms-keyframes changeshadow {
  31. 0%{ text-shadow: 0 0 4px red}
  32. 50%{ text-shadow: 0 0 40px red}
  33. 100%{ text-shadow: 0 0 4px red}
  34. }
  35. @-o-keyframes changeshadow {
  36. 0%{ text-shadow: 0 0 4px red}
  37. 50%{ text-shadow: 0 0 40px red}
  38. 100%{ text-shadow: 0 0 4px red}
  39. }
  40. .noselect {
  41. -webkit-touch-callout: none; /* iOS Safari */
  42. -webkit-user-select: none; /* Chrome/Safari/Opera */
  43. -khtml-user-select: none; /* Konqueror */
  44. -moz-user-select: none; /* Firefox */
  45. -ms-user-select: none; /* Internet Explorer/Edge */
  46. user-select: none;
  47. }
  48. .fa-sort{
  49. opacity: 0.3;
  50. }
  51. .text-letter{
  52. word-break: break-all
  53. }
  54. .cursor-pointer{
  55. color: dodgerblue;
  56. cursor: pointer;
  57. }
  58. //文本溢出隐藏展示...
  59. .text-overflow-replace{
  60. overflow: hidden;
  61. white-space: nowrap;
  62. text-overflow: ellipsis;
  63. pointer-events: none;
  64. }
  65. .text-overflow-replace-100{
  66. overflow: hidden;
  67. white-space: nowrap;
  68. text-overflow: ellipsis;
  69. pointer-events: none;
  70. max-width: 100px;
  71. }
  72. .text-overflow-replace-200{
  73. overflow: hidden;
  74. white-space: nowrap;
  75. text-overflow: ellipsis;
  76. pointer-events: none;
  77. max-width: 200px;
  78. }
  79. //文本溢出换行展示
  80. .text-overflow-warp{
  81. white-space: normal;
  82. }
  83. .text-overflow-warp-100{
  84. max-width: 100px;
  85. white-space: normal;
  86. }
  87. .text-overflow-warp-200{
  88. max-width: 200px;
  89. white-space: normal;
  90. }
  91. //输入框font标签图
  92. .form-font{
  93. margin-bottom: 1.5px;
  94. padding-top: 0.3rem;
  95. text-align: center;
  96. border: 1px solid rgba(0,0,0,.2);
  97. border-radius: 0.3rem;
  98. margin-right: 0;
  99. }
  100. //圆角边框
  101. .fillet{
  102. border:2px solid cornflowerblue;
  103. border-radius: 30px;
  104. }
  105. //放大标记
  106. .sign{
  107. transform: scale(1.2);
  108. box-shadow: 0 0 9px 3px #999;
  109. }
  110. //放大标记-略小
  111. .sign-sm{
  112. transform: scale(1.05);
  113. box-shadow: 0 0 9px 3px #999;
  114. }
  115. //分隔线
  116. .hr-info{
  117. height:3px;
  118. border:none;
  119. border-top:3px solid #007bff;
  120. }
  121. //文本强制换行
  122. .text-wrap{
  123. white-space: normal;
  124. word-break:break-all
  125. }
  126. //文本强调阴影
  127. .text-shadow-stress{
  128. text-shadow: 3px 3px 3px yellow
  129. }
  130. //滚动条美化
  131. .scrollbar::-webkit-scrollbar {
  132. /*滚动条整体样式*/
  133. width : 10px; /*高宽分别对应横竖滚动条的尺寸*/
  134. height: 1px;
  135. }
  136. .scrollbar::-webkit-scrollbar-thumb {
  137. /*滚动条里面小方块*/
  138. border-radius: 10px;
  139. box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
  140. background : #535353;
  141. }
  142. .scrollbar::-webkit-scrollbar-track {
  143. /*滚动条里面轨道*/
  144. box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
  145. border-radius: 10px;
  146. background : #ededed;
  147. }
  148. //虚线边框-红色
  149. .border-dashed-red {
  150. border:2px dashed red;
  151. }
  152. //滑块
  153. .switch{
  154. outline: none;
  155. cursor: pointer;
  156. appearance: none;
  157. -webkit-appearance: none;
  158. -moz-appearance: none;
  159. position: relative;
  160. width: 40px;
  161. height: 20px;
  162. background: #ccc;
  163. border-radius: 10px;
  164. transition: border-color .3s, background-color .3s;
  165. }
  166. .switch::after {
  167. content: '';
  168. display: inline-block;
  169. width: 1rem;
  170. height:1rem;
  171. border-radius: 50%;
  172. background: #fff;
  173. box-shadow: 0 0 2px #999;
  174. transition:.4s;
  175. top: 2px;
  176. position: absolute;
  177. left: 2px;
  178. }
  179. .switch:checked {
  180. background: rgb(19, 206, 102);
  181. }
  182. .switch:checked::after {
  183. content: '';
  184. position: absolute;
  185. left: 55%;
  186. top: 2px;
  187. }