reset.css 6.5 KB

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