sa.css 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /*
  2. 更新于2022-2-16 优化 el-alert 样式
  3. */
  4. /** 公共css */
  5. *{margin: 0px;padding: 0px;}
  6. html{font-size: 10px; height: 100%;}
  7. body{font-size: 1.4rem; height: 100%;/* background-color: #eeeeee; */ color: #333;}
  8. body{font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;}
  9. a{text-decoration: none;}
  10. a:hover{}
  11. /* h1,h2,h3,h4,h5,h6{font-weight: 400;} */
  12. hr{background-color : #ddd; height: 1px; border: none;}
  13. input,select{outline: 0;}
  14. /* input type=number时不显示按钮 */
  15. input::-webkit-outer-spin-button,
  16. input::-webkit-inner-spin-button {
  17. -webkit-appearance: none !important;
  18. margin: 0;
  19. }
  20. /* 居中形式的img */
  21. .cover-img{object-fit: cover; object-position: 50% 30%;}
  22. /* ajax2加载时的转圈圈样式 */
  23. .ajax-layer-load.layui-layer-dialog{min-width: 0px !important; background-color: rgba(0,0,0,0.85);}
  24. .ajax-layer-load.layui-layer-dialog .layui-layer-content{padding: 10px 20px 10px 40px; color: #FFF;}
  25. .ajax-layer-load.layui-layer-dialog .layui-layer-content .layui-layer-ico{width: 20px; height: 20px; background-size: 20px 20px; top: 12px; }
  26. /* layer图片预览时, 左右键永远显示 */
  27. .layui-layer-imgbar, .layui-layer-imguide{display: block !important;}
  28. .layui-layer-iconext.layui-layer-imgprev{position: fixed; left: 50;}
  29. .layui-layer-iconext.layui-layer-imgnext{position: fixed; right: 50;}
  30. /* ===================== 整体面板 ===================== */
  31. /* vue盒子 */
  32. .vue-box{padding: 14px; height: calc(100vh - 28px); overflow: auto; font-size: 14px; background-color: #eeeeee;}
  33. /* 内容-面板 */
  34. .c-panel{/* margin: 0.7em 1em; */ margin-bottom: 10px; padding: 1em 1.5em; padding-bottom: 5px; background-color: #fff; color: #333; /* box-shadow: 0 0 5px #eee; */}
  35. .c-title{font-size: 14px; font-weight: bold; line-height: 2em; margin-bottom: 3px;}
  36. .c-title span{font-weight: 400; font-size: 0.85em; padding-left: 1em; color: #888;}
  37. /* ===================== 表单相关 ===================== */
  38. .c-panel .el-form{/* padding-top: 10px; */ /* padding-bottom: 15px; */}
  39. .c-panel .el-form-item{min-width: 278px;}
  40. .c-panel .el-form-item__label{width: 100px;}
  41. .c-panel .el-form .el-input{width: 178px;}
  42. .c-remark{color: #888; margin-left: 0.5em; font-size: 0.9em;}
  43. /* 标签 */
  44. .c-panel .c-tag{padding: 0px 15px; height: 22px; line-height: 22px; border-radius: 0px; border: 0px;}
  45. /* 复选框 */
  46. .c-panel .el-checkbox,.c-panel .el-radio{margin-right: 20px;}
  47. /* 禁用input的样式 */
  48. .c-panel .el-input.is-disabled .el-input__inner{color: #999;}
  49. /* 表格的表头颜色深一点 */
  50. .c-panel .el-table__header tr th{background-color: #F5F5F5; color: #555; padding: 8px 0;}
  51. /* 调整圆角大小: 输入框、文本域、按钮、 */
  52. .vue-box .el-input__inner,
  53. .vue-box .el-textarea__inner,
  54. .vue-box .el-button,
  55. .s-foot .el-button{border-radius: 2px !important;}
  56. .vue-box .el-alert{/* padding: 1em 0.5em; */border-radius: 0px !important;}
  57. /* 多个按钮并列时的距离 */
  58. .vue-box .el-button+.el-button{margin-left: 2px;}
  59. .vue-box .el-button+.el-button.el-button--text{margin-left: 10px;}
  60. /* 单选button,圆角限制2px */
  61. .el-radio-button:first-child .el-radio-button__inner{border-radius: 2px 0 0 2px !important;}
  62. .el-radio-button:last-child .el-radio-button__inner{border-radius: 0 2px 2px 0 !important;}
  63. /* 单选按钮, 文字版 */
  64. .s-radio-text{}
  65. .s-radio-text .el-radio__input{display: none;}
  66. .s-radio-text .el-radio__input.is-checked+.el-radio__label{font-weight: 700;}
  67. .s-radio-text .el-radio__label{padding-left: 0px; }
  68. .s-radio-text .el-radio__label:hover{text-decoration:underline;}
  69. .s-radio-text .hover-line:hover{text-decoration: underline; cursor: pointer;}
  70. .s-radio-text .el-form-item__content{position: relative; top: -2px;}
  71. /* 按钮的样式调整 */
  72. .el-button--primary{background-color: #1890ff;}
  73. .el-button--success{background-color: #57C22A;}
  74. .el-button--danger{background-color: #ee4949; border-color: #de4949;}
  75. .el-button--warning{background-color: #FF8a10; border-color: #FF8a10; color: #FFF;}
  76. .el-button--primary:hover,.el-button--primary:focus{background-color: #066CF3; border-color: #066CF3;}
  77. .el-button--success:hover,.el-button--success:focus{background-color: #2B9939; border-color: #2B9939;}
  78. .el-button--danger:hover,.el-button--danger:focus{background-color: #d02C2C; border-color: #d02C2C;}
  79. .el-button--warning:hover,.el-button--warning:focus{background-color: #dd6300; border-color: #dd6300;}
  80. .el-button--info:hover,.el-button--info:focus{background-color: #707379; border-color: #707379;}
  81. /* .c-btn 加强 */
  82. .el-table .c-btn{padding: 4px 6px; font-size: 12px !important; border-radius: 0px !important;}
  83. .c-btn.el-button--danger{background-color: #ca4242; border-color: #ca4242;}
  84. .c-btn.el-button--danger:hover{background-color: #A00C0C; border-color: #A00C0C;}
  85. /* 表格上面的按钮 */
  86. .fast-btn{padding-top: 15px; padding-bottom: 10px;}
  87. /* .el-table{padding-top: 10px;} */
  88. /* 表格里的img */
  89. .td-img{width: 3em; height: 3em; border-radius: 2px; cursor: pointer;}
  90. .info-img{width: 8em; height: 8em; cursor: pointer; margin-right: 5px; vertical-align: middle;}
  91. .c-price{color: red;}
  92. /* 分页盒子调整一下间距 */
  93. .page-box{padding: 2em 0 25px 0; }
  94. /* 流体表单 */
  95. .cj-form.vue-box{padding-bottom: 0px; background-color: #FFF;}
  96. .cj-form .c-panel{box-shadow: 0 0 0; margin-top: 0px; margin-bottom: 0px; padding-top: 2.5em; padding-bottom: 0px;}
  97. .cj-form .c-panel .el-form .el-input{width: 100%;}
  98. /* 底部按钮式风格 */
  99. .sbot{padding: 0px; height: 100vh; background-color: rgba(0,0,0,0); display: flex !important; flex-direction: column;}
  100. .s-body{/* height: calc(100vh - 50px); */ flex: 1; overflow: auto; /* background-color: #009688s; */ }
  101. .s-foot{height: 49px !important; line-height: 49px; text-align: right; background-color: #f5f5f5; border-top: 1px #e5e5e5 solid;}
  102. .sbot .s-foot .el-button{margin-left: -10px; margin-right: 15px; padding: 7px 18px;}
  103. .sbot .s-body .c-panel{margin-bottom: 0px; padding-top: 14px; padding-bottom: 0px;}
  104. .vue-box .s-foot{display: none;}
  105. .sbot .s-ok{display: none !important;}
  106. .sbot .s-foot{display: block;}
  107. .sbot .c-title{display: none;}
  108. /* alert */
  109. .vue-box .el-alert--success.is-light{border: 1px #13ce66 solid;}
  110. .vue-box .el-alert--blue.is-light{border: 1px #28a0ff solid; color: #28a0ff; background-color: #e8f4ff;}
  111. .vue-box .el-alert.is-light .el-alert__closebtn{color: 666;}
  112. /* ===================== 表单相关 ===================== */
  113. /* 内容-item */
  114. .c-item {min-width: 270px; min-height: 32px; line-height: 32px; padding-right: 10px; display: inline-block; margin: 0.5em 0;}
  115. .c-item.br{display: block; margin: 14px 0;}
  116. /* label样式 */
  117. .c-item .c-label{width: 6em; color: #333; padding-right: 4px; display: inline-block; text-align: right; vertical-align: top;}
  118. /* input宽度等样式调整 */
  119. .c-item .el-input{width: 178px;}
  120. /* 禁用input的样式 */
  121. .c-item .el-input.is-disabled .el-input__inner{color: #999;}
  122. /* 链接 行高设置 */
  123. .c-item .el-link{line-height: 1.6em;}
  124. /* 表格动画相关 */
  125. .data-table .el-table__body-wrapper{min-height: 0px; max-height: 60px;}
  126. .data-table .el-table__body-wrapper{transition: all 0.3s;}
  127. .el-table .el-table__body-wrapper table td .cell{word-break: normal;}
  128. /* 防止下拉框被富文本覆盖 */
  129. .el-select-dropdown,.el-picker-panel{z-index: 99999 !important;}
  130. /* ===================== sp 新增 ===================== */
  131. /* ==== 图集照片样式 ==== */
  132. .c-item .image-box{max-width: 700px; padding-left: 0px;}
  133. .c-item .image-box-2{width: 90px; height: 125px; cursor: pointer; float: left;}
  134. .c-item .image-box-2 img{width: 90px; height: 90px; border-radius: 2px;}
  135. .c-item .image-box-info .image-box-2{height: 90px;}
  136. .c-item .image-box-2{display: inline-block; margin-right: 5px; margin-bottom: 5px;}
  137. .c-item .image-box-2 p{text-align: center; color: #999; margin-top: -10px;}
  138. .c-item .up_img{text-align: center; background-color: #f8f8f8; height: 90px;}
  139. .c-item .up_img img{width: 40px; height: 40px; margin-top: 25px;}
  140. .c-item .up_img{border: 1px #eee solid;}
  141. /* ==== wang富文本编辑器 ==== */
  142. .c-item .editor-box{width: 800px; margin-top: 0px; transition: all 0.2s;}
  143. .c-item .content-box-info{border: 1px #ddd solid; padding: 1em; overflow: hidden; box-sizing: border-box;}
  144. .editor-box #editor{min-height: 300px; background-color: #FFF;}
  145. .editor-box .w-e-toolbar{padding-top: 5px !important;}
  146. /* 富文本内的编辑器尽量小点 */
  147. .editor-box img{max-width: 300px !important;}
  148. .content-box-info img{max-width: 100% !important;}
  149. /* 仿移动端样式兼容 */
  150. /* .editor-item .editor-box{float: left; width: 400px;}
  151. .editor-item .w-e-toolbar{width: 400px; flex-wrap: wrap; } */
  152. .c-item .fold{height: 100px !important; overflow: hidden;}
  153. .c-item .el-select-dropdown{z-index: 9999999 !important;}
  154. /* 多行内容的样式 */
  155. .c-item-mline{display: inline-block; width: calc(100% - 10em);}
  156. .del-rr{color: red !important; cursor: pointer; margin-left: 0.5em; vertical-align: middle;}
  157. /* ---- 你可以在此处定制全局的字段风格 ---- */
  158. /* .tc-num{font-weight: bold;} */
  159. .tc-num{color: blue;}
  160. /* .tc-date{color: blue;} */
  161. .data-table .el-link--inner{font-weight: bold;}