sa.css 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. /*
  2. 更新于2021-9-25 全面优化
  3. */
  4. /** 公共css */
  5. * {
  6. margin: 0px;
  7. padding: 0px;
  8. }
  9. html {
  10. font-size: 10px;
  11. height: 100%;
  12. }
  13. body {
  14. font-size: 1.4rem;
  15. height: 100%; /* background-color: #eeeeee; */
  16. color: #333;
  17. }
  18. body {
  19. font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
  20. }
  21. a {
  22. text-decoration: none;
  23. }
  24. a:hover {
  25. }
  26. /* h1,h2,h3,h4,h5,h6{font-weight: 400;} */
  27. hr {
  28. background-color: #ddd;
  29. height: 1px;
  30. border: none;
  31. }
  32. input, select {
  33. outline: 0;
  34. }
  35. /* input type=number时不显示按钮 */
  36. input::-webkit-outer-spin-button,
  37. input::-webkit-inner-spin-button {
  38. -webkit-appearance: none !important;
  39. margin: 0;
  40. }
  41. /* 居中形式的img */
  42. .cover-img {
  43. object-fit: cover;
  44. object-position: 50% 30%;
  45. }
  46. /* ajax2加载时的转圈圈样式 */
  47. .ajax-layer-load.layui-layer-dialog {
  48. min-width: 0px !important;
  49. background-color: rgba(0, 0, 0, 0.85);
  50. }
  51. .ajax-layer-load.layui-layer-dialog .layui-layer-content {
  52. padding: 10px 20px 10px 40px;
  53. color: #FFF;
  54. }
  55. .ajax-layer-load.layui-layer-dialog .layui-layer-content .layui-layer-ico {
  56. width: 20px;
  57. height: 20px;
  58. background-size: 20px 20px;
  59. top: 12px;
  60. }
  61. /* layer图片预览时, 左右键永远显示 */
  62. .layui-layer-imgbar, .layui-layer-imguide {
  63. display: block !important;
  64. }
  65. .layui-layer-iconext.layui-layer-imgprev {
  66. position: fixed;
  67. left: 50;
  68. }
  69. .layui-layer-iconext.layui-layer-imgnext {
  70. position: fixed;
  71. right: 50;
  72. }
  73. /* ===================== 整体面板 ===================== */
  74. /* vue盒子 */
  75. .vue-box {
  76. padding: 14px;
  77. height: calc(100vh - 28px);
  78. overflow: auto;
  79. font-size: 14px;
  80. background-color: #eeeeee;
  81. }
  82. /* 内容-面板 */
  83. .c-panel { /* margin: 0.7em 1em; */
  84. margin-bottom: 10px;
  85. padding: 1em 1.5em;
  86. padding-bottom: 5px;
  87. background-color: #fff;
  88. color: #333; /* box-shadow: 0 0 5px #eee; */
  89. }
  90. .c-title {
  91. font-size: 14px;
  92. font-weight: bold;
  93. line-height: 2em;
  94. margin-bottom: 3px;
  95. }
  96. .c-title span {
  97. font-weight: 400;
  98. font-size: 0.85em;
  99. padding-left: 1em;
  100. color: #888;
  101. }
  102. /* ===================== 表单相关 ===================== */
  103. .c-panel .el-form { /* padding-top: 10px; */ /* padding-bottom: 15px; */
  104. }
  105. .c-panel .el-form-item {
  106. min-width: 278px;
  107. }
  108. .c-panel .el-form-item__label {
  109. width: 100px;
  110. }
  111. .c-panel .el-form .el-input {
  112. width: 178px;
  113. }
  114. .c-remark {
  115. color: #888;
  116. margin-left: 0.5em;
  117. font-size: 0.9em;
  118. }
  119. /* 标签 */
  120. .c-panel .c-tag {
  121. padding: 0px 15px;
  122. height: 22px;
  123. line-height: 22px;
  124. border-radius: 0px;
  125. border: 0px;
  126. }
  127. /* 复选框 */
  128. .c-panel .el-checkbox, .c-panel .el-radio {
  129. margin-right: 20px;
  130. }
  131. /* 禁用input的样式 */
  132. .c-panel .el-input.is-disabled .el-input__inner {
  133. color: #999;
  134. }
  135. /* 表格的表头颜色深一点 */
  136. .c-panel .el-table__header tr th {
  137. background-color: #F5F5F5;
  138. color: #555;
  139. padding: 8px 0;
  140. }
  141. /* 调整圆角大小: 输入框、文本域、按钮、 */
  142. .vue-box .el-input__inner,
  143. .vue-box .el-textarea__inner,
  144. .vue-box .el-button,
  145. .s-foot .el-button {
  146. border-radius: 2px !important;
  147. }
  148. .vue-box .el-alert {
  149. padding: 1em 0.5em;
  150. border-radius: 0px !important;
  151. }
  152. /* 多个按钮并列时的距离 */
  153. .vue-box .el-button + .el-button {
  154. margin-left: 2px;
  155. }
  156. .vue-box .el-button + .el-button.el-button--text {
  157. margin-left: 10px;
  158. }
  159. /* 单选button,圆角限制2px */
  160. .el-radio-button:first-child .el-radio-button__inner {
  161. border-radius: 2px 0 0 2px !important;
  162. }
  163. .el-radio-button:last-child .el-radio-button__inner {
  164. border-radius: 0 2px 2px 0 !important;
  165. }
  166. /* 单选按钮, 文字版 */
  167. .s-radio-text {
  168. }
  169. .s-radio-text .el-radio__input {
  170. display: none;
  171. }
  172. .s-radio-text .el-radio__input.is-checked + .el-radio__label {
  173. font-weight: 700;
  174. }
  175. .s-radio-text .el-radio__label {
  176. padding-left: 0px;
  177. }
  178. .s-radio-text .el-radio__label:hover {
  179. text-decoration: underline;
  180. }
  181. .s-radio-text .hover-line:hover {
  182. text-decoration: underline;
  183. cursor: pointer;
  184. }
  185. .s-radio-text .el-form-item__content {
  186. position: relative;
  187. top: -2px;
  188. }
  189. /* 按钮的样式调整 */
  190. .el-button--primary {
  191. background-color: #1890ff;
  192. }
  193. .el-button--success {
  194. background-color: #57C22A;
  195. }
  196. .el-button--danger {
  197. background-color: #ee4949;
  198. border-color: #de4949;
  199. }
  200. .el-button--warning {
  201. background-color: #FF8a10;
  202. border-color: #FF8a10;
  203. color: #FFF;
  204. }
  205. .el-button--primary:hover, .el-button--primary:focus {
  206. background-color: #066CF3;
  207. border-color: #066CF3;
  208. }
  209. .el-button--success:hover, .el-button--success:focus {
  210. background-color: #2B9939;
  211. border-color: #2B9939;
  212. }
  213. .el-button--danger:hover, .el-button--danger:focus {
  214. background-color: #d02C2C;
  215. border-color: #d02C2C;
  216. }
  217. .el-button--warning:hover, .el-button--warning:focus {
  218. background-color: #dd6300;
  219. border-color: #dd6300;
  220. }
  221. .el-button--info:hover, .el-button--info:focus {
  222. background-color: #707379;
  223. border-color: #707379;
  224. }
  225. /* .c-btn 加强 */
  226. .el-table .c-btn {
  227. padding: 4px 6px;
  228. font-size: 12px !important;
  229. border-radius: 1px;
  230. }
  231. .c-btn.el-button--danger {
  232. background-color: #ca4242;
  233. border-color: #ca4242;
  234. }
  235. .c-btn.el-button--danger:hover {
  236. background-color: #A00C0C;
  237. border-color: #A00C0C;
  238. }
  239. /* 表格上面的按钮 */
  240. .fast-btn {
  241. padding-top: 15px;
  242. padding-bottom: 10px;
  243. }
  244. /* .el-table{padding-top: 10px;} */
  245. /* 表格里的img */
  246. .td-img {
  247. width: 3em;
  248. height: 3em;
  249. border-radius: 2px;
  250. cursor: pointer;
  251. }
  252. .info-img {
  253. width: 3em;
  254. height: 3em;
  255. cursor: pointer;
  256. margin-right: 5px;
  257. vertical-align: middle;
  258. }
  259. .c-price {
  260. color: red;
  261. }
  262. /* 分页盒子调整一下间距 */
  263. .page-box {
  264. padding: 2em 0 25px 0;
  265. }
  266. /* 流体表单 */
  267. .cj-form.vue-box {
  268. padding-bottom: 0px;
  269. background-color: #FFF;
  270. }
  271. .cj-form .c-panel {
  272. box-shadow: 0 0 0;
  273. margin-top: 0px;
  274. margin-bottom: 0px;
  275. padding-top: 2.5em;
  276. padding-bottom: 0px;
  277. }
  278. .cj-form .c-panel .el-form .el-input {
  279. width: 100%;
  280. }
  281. /* 底部按钮式风格 */
  282. .sbot {
  283. padding: 0px;
  284. height: 100vh;
  285. background-color: rgba(0, 0, 0, 0);
  286. display: flex !important;
  287. flex-direction: column;
  288. }
  289. .s-body { /* height: calc(100vh - 50px); */
  290. flex: 1;
  291. overflow: auto; /* background-color: #009688s; */
  292. }
  293. .s-foot {
  294. height: 49px !important;
  295. line-height: 49px;
  296. text-align: right;
  297. background-color: #f5f5f5;
  298. border-top: 1px #e5e5e5 solid;
  299. }
  300. .sbot .s-foot .el-button {
  301. margin-left: -10px;
  302. margin-right: 15px;
  303. padding: 7px 18px;
  304. }
  305. .sbot .s-body .c-panel {
  306. margin-bottom: 0px;
  307. padding-top: 14px;
  308. padding-bottom: 0px;
  309. }
  310. .vue-box .s-foot {
  311. display: none;
  312. }
  313. .sbot .s-ok {
  314. display: none !important;
  315. }
  316. .sbot .s-foot {
  317. display: block;
  318. }
  319. .sbot .c-title {
  320. display: none;
  321. }
  322. /* ===================== 表单相关 ===================== */
  323. /* 内容-item */
  324. .c-item {
  325. min-width: 270px;
  326. min-height: 32px;
  327. line-height: 32px;
  328. padding-right: 10px;
  329. display: inline-block;
  330. margin: 0.5em 0;
  331. }
  332. .c-item.br {
  333. display: block;
  334. margin: 14px 0;
  335. }
  336. /* label样式 */
  337. .c-item .c-label {
  338. width: 6em;
  339. color: #333;
  340. padding-right: 4px;
  341. display: inline-block;
  342. text-align: right;
  343. vertical-align: top;
  344. }
  345. /* input宽度等样式调整 */
  346. .c-item .el-input {
  347. width: 178px;
  348. }
  349. /* 禁用input的样式 */
  350. .c-item .el-input.is-disabled .el-input__inner {
  351. color: #999;
  352. }
  353. /* 链接 行高设置 */
  354. .c-item .el-link {
  355. line-height: 1.6em;
  356. }
  357. /* 表格动画相关 */
  358. .data-table .el-table__body-wrapper {
  359. min-height: 0px;
  360. max-height: 60px;
  361. }
  362. .data-table .el-table__body-wrapper {
  363. transition: all 0.3s;
  364. }
  365. .el-table .el-table__body-wrapper table td .cell {
  366. word-break: normal;
  367. }
  368. /* 防止下拉框被富文本覆盖 */
  369. .el-select-dropdown, .el-picker-panel {
  370. z-index: 99999 !important;
  371. }
  372. /* ===================== sp 新增 ===================== */
  373. /* ==== 图集照片样式 ==== */
  374. .c-item .image-box {
  375. max-width: 700px;
  376. padding-left: 0px;
  377. }
  378. .c-item .image-box-2 {
  379. width: 90px;
  380. height: 125px;
  381. cursor: pointer;
  382. float: left;
  383. }
  384. .c-item .image-box-2 img {
  385. width: 90px;
  386. height: 90px;
  387. border-radius: 2px;
  388. }
  389. .c-item .image-box-info .image-box-2 {
  390. height: 90px;
  391. }
  392. .c-item .image-box-2 {
  393. display: inline-block;
  394. margin-right: 5px;
  395. margin-bottom: 5px;
  396. }
  397. .c-item .image-box-2 p {
  398. text-align: center;
  399. color: #999;
  400. margin-top: -10px;
  401. }
  402. .c-item .up_img {
  403. text-align: center;
  404. background-color: #f8f8f8;
  405. height: 90px;
  406. }
  407. .c-item .up_img img {
  408. width: 40px;
  409. height: 40px;
  410. margin-top: 25px;
  411. }
  412. .c-item .up_img {
  413. border: 1px #eee solid;
  414. }
  415. /* ==== wang富文本编辑器 ==== */
  416. .c-item .editor-box {
  417. width: 800px;
  418. margin-top: 0px;
  419. transition: all 0.2s;
  420. }
  421. .c-item .content-box-info {
  422. border: 1px #ddd solid;
  423. padding: 1em;
  424. overflow: hidden;
  425. box-sizing: border-box;
  426. }
  427. .editor-box #editor {
  428. min-height: 300px;
  429. background-color: #FFF;
  430. }
  431. .editor-box .w-e-toolbar {
  432. padding-top: 5px !important;
  433. }
  434. /* 富文本内的编辑器尽量小点 */
  435. .editor-box img {
  436. max-width: 300px !important;
  437. }
  438. .content-box-info img {
  439. max-width: 100% !important;
  440. }
  441. /* 仿移动端样式兼容 */
  442. /* .editor-item .editor-box{float: left; width: 400px;}
  443. .editor-item .w-e-toolbar{width: 400px; flex-wrap: wrap; } */
  444. .c-item .fold {
  445. height: 100px !important;
  446. overflow: hidden;
  447. }
  448. .c-item .el-select-dropdown {
  449. z-index: 9999999 !important;
  450. }
  451. /* 多行内容的样式 */
  452. .c-item-mline {
  453. display: inline-block;
  454. width: calc(100% - 10em);
  455. }
  456. .del-rr {
  457. color: red !important;
  458. cursor: pointer;
  459. margin-left: 0.5em;
  460. vertical-align: middle;
  461. }
  462. /* ---- 你可以在此处定制全局的字段风格 ---- */
  463. /* .tc-num{font-weight: bold;} */
  464. .tc-num {
  465. color: blue;
  466. }
  467. /* .tc-date{color: blue;} */
  468. .data-table .el-link--inner {
  469. font-weight: bold;
  470. }
  471. /*给c-label样式加红色星号,固定id*/
  472. #ast .c-label:before{
  473. content: '*';
  474. color:red;
  475. }