public.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .el-form-item__label{
  2. color: white ;
  3. }
  4. /*
  5. * =====================================================
  6. * 页面公共样式、主体样式
  7. * =====================================================
  8. */
  9. /*初始化类*/
  10. @charset "UTF-8";
  11. html {
  12. font-family: "微软雅黑", Tahoma, Helvetica, Arial, sans-serif;
  13. /*去掉谷歌字体最小为12px的问题*/
  14. -webkit-text-size-adjust: 100%;
  15. /*超链接的去除高亮*/
  16. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  17. }
  18. *{
  19. margin: 0;
  20. padding: 0;
  21. box-sizing: border-box;
  22. -webkit-box-sizing: border-box;
  23. }
  24. input[type=button], input[type=submit], input[type=file], button {
  25. cursor: pointer;
  26. /*去除表单元素点击时的外框*/
  27. -webkit-appearance: none;
  28. outline: none;
  29. }
  30. body {
  31. margin: 0;
  32. padding: 0;
  33. line-height: normal;
  34. font-size: 0.24rem;
  35. /*下滑更流畅*/
  36. -webkit-overflow-scrolling: touch;
  37. }
  38. img {
  39. border: 0;
  40. vertical-align: middle;
  41. }
  42. *:focus{
  43. outline: medium;
  44. }
  45. article,
  46. aside,
  47. details,
  48. figcaption,
  49. figure,
  50. footer,
  51. header,
  52. hgroup,
  53. main,
  54. nav,
  55. section,
  56. summary {
  57. display: block;
  58. }
  59. a{
  60. text-decoration: none;
  61. color: white;
  62. }
  63. audio,
  64. canvas,
  65. progress,
  66. video {
  67. display: block;
  68. }
  69. a {
  70. background: transparent;
  71. text-decoration: none;
  72. }
  73. ol, ul, li {
  74. list-style: outside none none;
  75. }
  76. table {
  77. border-collapse: collapse;
  78. border-spacing: 0;
  79. }
  80. a:active {
  81. opacity: 0.5;
  82. -webkit-transition: 0.3s;
  83. transition: 0.3s;
  84. }
  85. select,
  86. textarea,
  87. input,
  88. button {
  89. border:1px solid #c8c7cc;
  90. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  91. -webkit-appearance: none !important;
  92. }
  93. /*主样式*/
  94. .pull-left {
  95. float: left !important;
  96. }
  97. .pull-right {
  98. float: right !important;
  99. }
  100. .clearfix:before, .clearfix:after {
  101. display: table;
  102. content: ' ';
  103. }
  104. .clearfix:after {
  105. clear: both;
  106. }
  107. .ellipsis {
  108. overflow: hidden;
  109. white-space: nowrap;
  110. text-overflow: ellipsis;
  111. }
  112. .ellipsis-2 {
  113. display: -webkit-box;
  114. overflow: hidden;
  115. white-space: normal !important;
  116. text-overflow: ellipsis;
  117. word-wrap: break-word;
  118. -webkit-line-clamp: 2;
  119. -webkit-box-orient: vertical;
  120. }
  121. .dcenter {
  122. margin-left: auto;
  123. margin-right: auto;
  124. }
  125. /*解决移动端1px边框变粗样式*/
  126. .border-t,
  127. .border-b,
  128. .border-l,
  129. .border-r,
  130. .border-tb,
  131. .border {
  132. position: relative;
  133. }
  134. .border-t:after,
  135. .border-b:after,
  136. .border-l:after,
  137. .border-r:after,
  138. .border-tb:after,
  139. .border:after {
  140. display: block;
  141. content: '';
  142. position: absolute;
  143. top: 0;
  144. right: 0;
  145. bottom: 0;
  146. left: 0;
  147. -webkit-transform-origin: 0 0;
  148. -webkit-transform: scale(1);
  149. pointer-events: none;
  150. }
  151. .border-l:after {
  152. border-left: 1px solid #c8c7cc;
  153. }
  154. .border-r:after {
  155. border-right: 1px solid #c8c7cc;
  156. }
  157. .border-t:after {
  158. border-top: 1px solid #c8c7cc;
  159. }
  160. .border-b:after {
  161. border-bottom: 1px solid #c8c7cc;
  162. }
  163. .border-tb:after {
  164. border-top: 1px solid #c8c7cc;
  165. border-bottom: 1px solid #c8c7cc;
  166. }
  167. .border:after {
  168. border:1px solid #c8c7cc;
  169. }
  170. .border.border-radius:after {
  171. border-radius: 6px;
  172. }
  173. @media screen and (-webkit-min-device-pixel-ratio:1.5) {
  174. .border-t:after,
  175. .border-b:after,
  176. .border-l:after,
  177. .border-r:after,
  178. .border-tb:after,
  179. .border:after {
  180. right: -100%;
  181. bottom: -100%;
  182. -webkit-transform: scale(0.5);
  183. }
  184. }
  185. /*仿IOS开关*/
  186. .switch {
  187. -webkit-appearance: none;
  188. -moz-appearance: none;
  189. appearance: none;
  190. position: relative;
  191. width: 52px;
  192. height: 32px;
  193. border: 1px solid #DFDFDF;
  194. outline: 0;
  195. border-radius: 16px;
  196. box-sizing: border-box;
  197. background: #DFDFDF;
  198. }
  199. .switch:before {
  200. content: " ";
  201. position: absolute;
  202. top: 0;
  203. left: 0;
  204. width: 50px;
  205. height: 30px;
  206. border-radius: 15px;
  207. background-color: #FDFDFD;
  208. -webkit-transition: -webkit-transform .3s;
  209. transition: -webkit-transform .3s;
  210. transition: transform .3s;
  211. transition: transform .3s, -webkit-transform .3s;
  212. }
  213. .switch:after {
  214. content: " ";
  215. position: absolute;
  216. top: 0;
  217. left: 0;
  218. width: 30px;
  219. height: 30px;
  220. border-radius: 15px;
  221. background-color: #FFFFFF;
  222. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  223. -webkit-transition: -webkit-transform .3s;
  224. transition: -webkit-transform .3s;
  225. transition: transform .3s;
  226. transition: transform .3s, -webkit-transform .3s;
  227. }
  228. .switch:checked {
  229. border-color: #04BE02;
  230. background-color: #04BE02;
  231. }
  232. .switch:checked:before {
  233. -webkit-transform: scale(0);
  234. transform: scale(0);
  235. }
  236. .switch:checked:after {
  237. -webkit-transform: translateX(20px);
  238. transform: translateX(20px);
  239. }