reset.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin:0; padding:0; }
  2. body, button, input, select, textarea {
  3. font-size:14px;
  4. color: #303133;
  5. font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  6. -webkit-font-smoothing: antialiased;
  7. -webkit-tap-highlight-color: transparent;
  8. }
  9. html,body{
  10. height: 100%;
  11. }
  12. h1, h2, h3, h4, h5, h6{ font-size:100%; }
  13. address, cite, dfn, em, var { font-style:normal; }
  14. code, kbd, pre, samp { font-family:couriernew, courier, monospace; }
  15. small{ font-size:12px; }
  16. ul, ol { list-style:none; }
  17. a { text-decoration:none; }
  18. a:hover { text-decoration:underline; }
  19. sup { vertical-align:text-top; }
  20. sub{ vertical-align:text-bottom; }
  21. legend { color:#000; }
  22. fieldset, img { border:0; }
  23. button, input, select, textarea { font-size:100%; }
  24. table { border-collapse:collapse; border-spacing:0; }
  25. label {
  26. font-weight: 600;
  27. }
  28. .el-image-viewer__btn .el-icon-circle-close{
  29. color: #fff;
  30. background-color: #606266;
  31. border-color: #fff;
  32. border-radius: 25px;
  33. }
  34. .icon {
  35. width: 1em;
  36. height: 1em;
  37. vertical-align: -0.15em;
  38. fill: currentColor;
  39. overflow: hidden;
  40. }
  41. .boxMinHeight {
  42. min-height: calc(100vh - 110px);
  43. }
  44. .cursor{
  45. cursor: pointer;
  46. }
  47. .el-form-item__content {
  48. line-height: 36px !important;
  49. }
  50. a:focus,
  51. a:active {
  52. outline: none;
  53. }
  54. a,
  55. a:focus,
  56. a:hover {
  57. cursor: pointer;
  58. color: inherit;
  59. text-decoration: none;
  60. }
  61. /* 盒子模型 */
  62. .flex-box {
  63. display: -webkit-box;
  64. display: -moz-box;
  65. display: -ms-flexbox;
  66. display: -webkit-flex;
  67. display: flex;
  68. }
  69. /*盒子模型,竖向自适应,垂直排列 */
  70. .flex-box-v {
  71. display: -webkit-box;
  72. display: -webkit-flex;
  73. display: flex;
  74. -webkit-box-orient: vertical;
  75. -webkit-flex-flow: column;
  76. flex-flow: column !important;
  77. }
  78. /*flex-box与 flex-v-ce结合*/
  79. .flex-box-ce {
  80. display: -webkit-box;
  81. display: -moz-box;
  82. display: -ms-flexbox;
  83. display: -webkit-flex;
  84. display: flex;
  85. align-items: center;
  86. -webkit-align-items: center;
  87. -webkit-box-align: center;
  88. }
  89. /* 水平等列排版(容器左右没缝隙,子元素左右两边自适应) */
  90. .flex-d-center {
  91. justify-content: space-between;
  92. -webkit-justify-content: space-between;
  93. }
  94. /* 水平等列排版(子元素两边有缝隙自己适应) */
  95. .flex-dv-center {
  96. justify-content: space-around;
  97. -webkit-justify-content: space-around;
  98. }
  99. /*水平,垂直居中 */
  100. .flex-center-center {
  101. justify-content: center;
  102. -webkit-justify-content: center;
  103. -moz-justify-content: center;
  104. align-items: center;
  105. -webkit-align-items: center;
  106. -webkit-box-pack: center;
  107. -webkit-box-align: center;
  108. -moz-align-items: center;
  109. -moz-box-pack: center;
  110. -moz-box-align: center;
  111. }
  112. /*对view中的子元素进行居中,并且位于容器的中间位置 水平居中 */
  113. .flex-v-zhu,
  114. .flex-h-zhu {
  115. justify-content: center;
  116. -webkit-justify-content: center;
  117. -webkit-box-pack: center;
  118. }
  119. /*对view中的子元素进行居中,并且位于容器的中间位置 垂直居中 */
  120. .flex-v-ce,
  121. .flex-h-ce {
  122. align-items: center;
  123. -webkit-align-items: center;
  124. -webkit-box-align: center;
  125. }
  126. /*让所有弹性盒模型对象的子元素都有相同的长度,且忽略它们内部的内容: */
  127. .flex-1 {
  128. -webkit-box-flex: 1;
  129. -moz-box-flex: 1;
  130. -webkit-flex: 1;
  131. -ms-flex: 1;
  132. flex: 1;
  133. }
  134. .flex-2 {
  135. -webkit-box-flex: 2;
  136. box-flex: 2;
  137. -moz-box-flex: 2;
  138. -webkit-flex: 2;
  139. -ms-flex: 2;
  140. flex: 2;
  141. }
  142. .flex-3 {
  143. -webkit-box-flex: 3;
  144. box-flex: 3;
  145. -moz-box-flex: 3;
  146. -webkit-flex: 3;
  147. -ms-flex: 3;
  148. flex: 3;
  149. }
  150. .flex-4 {
  151. -webkit-box-flex: 4;
  152. box-flex: 4;
  153. -moz-box-flex: 4;
  154. -webkit-flex: 4;
  155. -ms-flex: 4;
  156. flex: 4;
  157. }
  158. .flex-5 {
  159. -webkit-box-flex: 5;
  160. box-flex: 5;
  161. -moz-box-flex: 5;
  162. -webkit-flex: 5;
  163. -ms-flex: 5;
  164. flex: 5;
  165. }
  166. /* 水平反方向 */
  167. .flex-direction-row-reverse {
  168. flex-direction: row-reverse;
  169. -webkit-flex-direction: row-reverse;
  170. }
  171. /*超出部分用....表示的公用样式 */
  172. .font-flex-word {
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. white-space: nowrap;
  176. }
  177. .clamp2 {
  178. overflow: hidden;
  179. text-overflow: ellipsis;
  180. word-break: break-all;
  181. display: -webkit-box;
  182. -webkit-line-clamp: 2;
  183. -webkit-box-orient: vertical;
  184. }
  185. .clamp3 {
  186. overflow: hidden;
  187. text-overflow: ellipsis;
  188. word-break: break-all;
  189. display: -webkit-box;
  190. -webkit-line-clamp: 3;
  191. -webkit-box-orient: vertical;
  192. }
  193. /* 内容超出部分自动换行 */
  194. .flex-d-wrap {
  195. flex-wrap: wrap;
  196. }
  197. /* 内容超出部分不换行 */
  198. .flex-no-wrap {
  199. flex-wrap: nowrap;
  200. }
  201. /* 从右边开始排列 */
  202. .flex-box-end {
  203. display: -webkit-box;
  204. display: -moz-box;
  205. display: -ms-flexbox;
  206. display: -webkit-flex;
  207. display: flex;
  208. justify-content: flex-end;
  209. }
  210. /* 字体颜色 */
  211. .blue {
  212. color: #26A2FF !important;
  213. }
  214. .red {
  215. color: #F56C6C !important;
  216. }
  217. .yellow {
  218. color: #FFC910 !important;
  219. }
  220. .orange {
  221. color: #FF9600 !important;
  222. }
  223. .green {
  224. color: #67C23A !important;
  225. }
  226. .cyan {
  227. color: #00C4CB !important;
  228. }
  229. .black {
  230. color: #141c28 !important;
  231. }
  232. .fontColorA {
  233. color: #303133 !important;
  234. }
  235. .fontColorB {
  236. color: #606266 !important;
  237. }
  238. .fontColorC {
  239. color: #89919F !important;
  240. }
  241. .fontColorD {
  242. color: #BFC7D5 !important;
  243. }
  244. /* 整体布局样式 */
  245. .all {
  246. background-color: #fff;
  247. border-radius: 5px;
  248. min-height: calc(100vh - 120px);
  249. min-width: 800px;
  250. position: relative;
  251. }
  252. .terr-left {
  253. width: 200px;
  254. box-sizing: border-box;
  255. padding: 20px 10px;
  256. max-height: 700px;
  257. overflow: auto;
  258. }
  259. .terr-left::-webkit-scrollbar {
  260. width: 3px;
  261. height: 3px;
  262. background-color: #fff;
  263. }
  264. .terr-left::-webkit-scrollbar-thumb {
  265. background-color: #D9D9D9;
  266. }
  267. .terr-right {
  268. padding: 20px;
  269. min-width: 600px;
  270. box-sizing: border-box;
  271. }
  272. .border-right:after {
  273. content: ' ';
  274. position: absolute;
  275. top: 0;
  276. left: 200px;
  277. bottom: 0;
  278. width: 1px;
  279. background: #ebeef5;
  280. }
  281. .border-right {
  282. /* position: relative; */
  283. }
  284. .padding-20 {
  285. padding: 20px;
  286. }
  287. .margin-bottom {
  288. margin-bottom: 20px;
  289. }
  290. .diy-tip {
  291. margin-bottom: 10px !important;
  292. background: #f0f9eb !important;
  293. color: #67c23a !important;
  294. border: 1px solid #67c23a !important;
  295. padding: 16px !important;
  296. min-width: 800px;
  297. border-radius: 4px;
  298. }
  299. .diy-tip p {
  300. color: #67c23a !important;
  301. }
  302. /* 分页样式 */
  303. .pagination {
  304. padding: 20px 0;
  305. text-align: center;
  306. }
  307. /* EL UI 重置 */
  308. .notifyBox {
  309. width: auto !important;
  310. }
  311. /* 级联选择器长度限制样式 */
  312. .el-cascader-menu .el-cascader-menu__wrap .el-scrollbar__view li.el-cascader-node {
  313. height: auto;
  314. max-width: 500px;
  315. }
  316. .el-cascader-menu .el-cascader-menu__wrap .el-scrollbar__view li.el-cascader-node .el-cascader-node__label {
  317. white-space: initial;
  318. overflow: initial;
  319. text-overflow: initial;
  320. }
  321. /* // 滚动条样式 */
  322. .scroll-bar {
  323. scroll-behavior: smooth
  324. }
  325. .scroll-bar::-webkit-scrollbar {
  326. width: 6px;
  327. height: 6px;
  328. }
  329. /*外层轨道。可以用display:none让其不显示,也可以添加背景图片,颜色改变显示效果*/
  330. .scroll-bar::-webkit-scrollbar-track {
  331. width: 6px;
  332. background-color: #fff0;
  333. -webkit-border-radius: 2em;
  334. -moz-border-radius: 2em;
  335. border-radius: 2em;
  336. }
  337. /*滚动条的设置*/
  338. .scroll-bar::-webkit-scrollbar-thumb {
  339. background-color: #fff0;
  340. background-clip: padding-box;
  341. -webkit-border-radius: 2em;
  342. -moz-border-radius: 2em;
  343. border-radius: 2em;
  344. }
  345. /*滚动条移上去的背景*/
  346. .scroll-bar:hover::-webkit-scrollbar-thumb {
  347. background-color: rgba(144, 147, 153, 0.3);
  348. height: 20px;
  349. }
  350. /* 上传组件 */
  351. .el-upload--picture-card {
  352. width: 100px !important;
  353. height: 100px !important;
  354. line-height: 100px !important;
  355. }
  356. .el-upload-list--picture-card .el-upload-list__item {
  357. width: 100px !important;
  358. height: 100px !important;
  359. }
  360. .text-center {
  361. text-align: center;
  362. }