text.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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: 0px 0px 4px red}
  16. 50%{ text-shadow: 0px 0px 40px red}
  17. 100%{ text-shadow: 0px 0px 4px red}
  18. }
  19. /* 添加兼容性前缀 */
  20. @-webkit-keyframes changeshadow {
  21. 0%{ text-shadow: 0px 0px 4px red}
  22. 50%{ text-shadow: 0px 0px 40px red}
  23. 100%{ text-shadow: 0px 0px 4px red}
  24. }
  25. @-moz-keyframes changeshadow {
  26. 0%{ text-shadow: 0px 0px 4px red}
  27. 50%{ text-shadow: 0px 0px 40px red}
  28. 100%{ text-shadow: 0px 0px 4px red}
  29. }
  30. @-ms-keyframes changeshadow {
  31. 0%{ text-shadow: 0px 0px 4px red}
  32. 50%{ text-shadow: 0px 0px 40px red}
  33. 100%{ text-shadow: 0px 0px 4px red}
  34. }
  35. @-o-keyframes changeshadow {
  36. 0%{ text-shadow: 0px 0px 4px red}
  37. 50%{ text-shadow: 0px 0px 40px red}
  38. 100%{ text-shadow: 0px 0px 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. //溢出换行无上限,有下限
  92. .warp-min-200{
  93. max-width:100% !important;
  94. min-width:200px;
  95. }
  96. //输入框font标签图
  97. .form-font{
  98. margin-bottom: 1.5px;
  99. padding-top: 0.3rem;
  100. text-align: center;
  101. border: 1px solid rgba(0,0,0,.2);
  102. border-radius: 0.3rem;
  103. margin-right: 0px;
  104. }
  105. //圆角边框
  106. .fillet{
  107. border:2px solid cornflowerblue;
  108. border-radius: 30px;
  109. }
  110. //放大标记
  111. .sign{
  112. transform: scale(1.2);
  113. box-shadow: 0px 0px 9px 3px #999;
  114. }
  115. //放大标记-略小
  116. .sign-sm{
  117. transform: scale(1.05);
  118. box-shadow: 0px 0px 9px 3px #999;
  119. }
  120. //分隔线
  121. .hr-info{
  122. height:3px;
  123. border:none;
  124. border-top:3px solid #007bff;
  125. }
  126. //文本强制换行
  127. .text-wrap{
  128. white-space: normal;
  129. word-break:break-all
  130. }
  131. //文本强调阴影
  132. .text-shadow-stress{
  133. text-shadow: 3px 3px 3px yellow
  134. }
  135. //滚动条美化
  136. .scrollbar::-webkit-scrollbar {
  137. /*滚动条整体样式*/
  138. width : 10px; /*高宽分别对应横竖滚动条的尺寸*/
  139. height: 10px;
  140. }
  141. .scrollbar::-webkit-scrollbar-thumb {
  142. /*滚动条里面小方块*/
  143. border-radius: 10px;
  144. box-shadow : inset 0px 0px 5px rgba(0, 0, 0, 0.2);
  145. background : #535353;
  146. }
  147. .scrollbar::-webkit-scrollbar-track {
  148. /*滚动条里面轨道*/
  149. box-shadow : inset 0px 0px 5px rgba(0, 0, 0, 0.2);
  150. border-radius: 10px;
  151. background : #ededed;
  152. }
  153. //虚线边框-红色
  154. .border-dashed-red {
  155. border:2px dashed red;
  156. }
  157. //滑块
  158. .switch{
  159. outline: none;
  160. cursor: pointer;
  161. appearance: none;
  162. -webkit-appearance: none;
  163. -moz-appearance: none;
  164. position: relative;
  165. width: 40px;
  166. height: 20px;
  167. background: #ccc;
  168. border-radius: 10px;
  169. transition: border-color .3s, background-color .3s;
  170. }
  171. .switch::after {
  172. content: '';
  173. display: inline-block;
  174. width: 1rem;
  175. height:1rem;
  176. border-radius: 50%;
  177. background: #fff;
  178. box-shadow: 0 0 2px #999;
  179. transition:.4s;
  180. top: 2px;
  181. position: absolute;
  182. left: 2px;
  183. }
  184. .switch:checked {
  185. background: rgb(19, 206, 102);
  186. }
  187. .switch:checked::after {
  188. content: '';
  189. position: absolute;
  190. left: 55%;
  191. top: 2px;
  192. }
  193. //浅色
  194. .opacity{
  195. opacity: 0.6;
  196. }
  197. //选中的黑色阴影效果
  198. .box-shadow-dark{
  199. box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.9);
  200. z-index:100;
  201. position:relative;
  202. }
  203. //超高滚动 200px
  204. .overflow-scrollbar-200{
  205. max-height: 200px;
  206. max-width: 100%;
  207. overflow: auto;
  208. border: RGB(204,204,204) solid 1px;
  209. border-radius: 5px
  210. }
  211. .overflow-y-scrollbar-200{
  212. max-height: 200px;
  213. overflow-y: auto;
  214. border: RGB(204,204,204) solid 1px;
  215. border-radius: 5px
  216. }
  217. //规定最小宽度
  218. .td-min-width-80 tr td{
  219. min-width: 80px;
  220. }
  221. //浮动表头
  222. .header-float{
  223. position: sticky;
  224. position: -webkit-sticky;
  225. background-color: white;
  226. z-index: 50;
  227. }
  228. //td颜色
  229. .td-red td{
  230. color: red !important;
  231. }
  232. .td-green td{
  233. color: green !important;
  234. }
  235. //复选框
  236. .fixed-checkbox{
  237. display: none;
  238. +label{
  239. background-color: white;
  240. border-radius: 5px;
  241. border: 1px solid #d3d3d3;
  242. width: 20px;
  243. height: 20px;
  244. margin-bottom: 0px;
  245. display: inline-block;
  246. text-align: center;
  247. vertical-align: bottom;
  248. line-height: 20px;
  249. :hover {
  250. cursor: pointer;
  251. border: 1px solid #2783FB;
  252. }
  253. }
  254. }
  255. .fixed-checkbox:checked+label{
  256. background: #2783FB;
  257. }
  258. .fixed-checkbox:checked+label:after {
  259. content: "\2714";
  260. color: white;
  261. }
  262. //tr选中效果
  263. .tr-select td{
  264. background-color: rgb(170, 199, 234) !important;
  265. }
  266. //icon
  267. .icon-item{
  268. float: left;
  269. width: 38px;
  270. height: 38px;
  271. padding: 12px;
  272. margin: 0px 12px 12px 0px;
  273. text-align: center;
  274. cursor: pointer;
  275. border-radius: 3px;
  276. font-size: 14px;
  277. box-shadow: 0px 0px 0px 1px #ddd;
  278. color: inherit;
  279. }
  280. //文本颜色
  281. .text-greed{
  282. color: #27864f !important;
  283. }