console.display.less 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. @import "console.config.less";
  2. fieldset {
  3. margin: 0 0 10px 0;
  4. border: 1px solid @borderColor;
  5. padding: 10px 20px 5px 20px;
  6. background: #fff;
  7. border-radius: @borderRadius;
  8. legend {
  9. color: #666;
  10. padding: 0 10px;
  11. font-size: 13px;
  12. }
  13. }
  14. .layui-tab, .layui-card {
  15. border-radius: @borderRadius;
  16. }
  17. .layui-tab {
  18. .layui-tab-title {
  19. border-top-left-radius: @borderRadius;
  20. border-top-right-radius: @borderRadius;
  21. > li:first-child {
  22. border-top-left-radius: @borderRadius;
  23. }
  24. }
  25. .layui-tab-content {
  26. border-bottom-left-radius: @borderRadius;
  27. border-bottom-right-radius: @borderRadius;
  28. }
  29. > .layui-tab-content {
  30. padding: 20px;
  31. background: #fff;
  32. }
  33. }
  34. .layui-card {
  35. > .layui-card-header {
  36. padding: 0 20px;
  37. }
  38. > .layui-card-body {
  39. padding: 20px;
  40. }
  41. }
  42. .layui-code {
  43. border-radius: @borderRadius;
  44. }
  45. .layui-btn {
  46. border: 1px solid #009688;
  47. &-warm {
  48. border: 1px solid #FFB800;
  49. }
  50. &-danger {
  51. border: 1px solid #FF5722;
  52. }
  53. &-normal {
  54. border: 1px solid #1E9FFF;
  55. }
  56. &-disabled {
  57. border: 1px solid @borderColor;
  58. }
  59. &-group {
  60. border: 1px solid #098;
  61. overflow: hidden;
  62. background: #009688;
  63. line-height: 28px;
  64. border-radius: 2px;
  65. + .layui-btn {
  66. margin-left: 8px;
  67. }
  68. .layui-btn {
  69. height: 28px;
  70. line-height: 28px;
  71. border-width: 0 !important;
  72. border-radius: 0 !important;
  73. + .layui-btn {
  74. margin-left: 1px !important;
  75. }
  76. &-primary:hover {
  77. border-color: #009688;
  78. }
  79. }
  80. }
  81. .layui-icon {
  82. float: left;
  83. margin-right: 5px;
  84. }
  85. & + .layui-btn {
  86. margin-left: 8px;
  87. }
  88. }
  89. .layui-badge {
  90. margin-right: 5px;
  91. &-middle {
  92. width: 1em;
  93. height: auto;
  94. padding: 5px;
  95. white-space: normal;
  96. vertical-align: middle;
  97. }
  98. }
  99. /*! 搜索表单样式 */
  100. .form-search {
  101. .layui-btn {
  102. height: 32px;
  103. padding: 0 10px;
  104. font-size: 13px;
  105. line-height: 32px;
  106. .layui-icon {
  107. font-size: 15px
  108. }
  109. }
  110. .layui-form-label {
  111. width: auto !important;
  112. height: 32px;
  113. padding: 0 8px;
  114. line-height: 32px
  115. }
  116. .layui-input-inline {
  117. width: 170px;
  118. display: inline-block !important;
  119. margin: 0 10px 0 -1px !important;
  120. input, select {
  121. width: 100%;
  122. height: 32px;
  123. padding: 0 8px;
  124. line-height: 32px
  125. }
  126. }
  127. .layui-form-select dl {
  128. top: 31px;
  129. padding: 0
  130. }
  131. }
  132. /* 表单验证异常提示 */
  133. .label-required {
  134. &-prev:before {
  135. width: 1em;
  136. color: red;
  137. content: '*';
  138. display: inline-block;
  139. position: absolute;
  140. text-align: left;
  141. font-weight: 700;
  142. line-height: 1.6em;
  143. margin-left: -0.8em;
  144. }
  145. &:after, &-next:after {
  146. top: 6px;
  147. right: 5px;
  148. color: red;
  149. content: '*';
  150. position: absolute;
  151. margin-left: 4px;
  152. font-weight: 700;
  153. line-height: 1.8em
  154. }
  155. &-null:before {
  156. content: none !important
  157. }
  158. }
  159. .layui-input, .layui-select {
  160. line-height: 38px
  161. }
  162. .layui-disabled, .layui-disabled:hover {
  163. color: #333 !important;
  164. background: #EEE !important;
  165. }
  166. .layui-form-checkbox.layui-form-checked {
  167. i {
  168. border-color: #5FB878;
  169. }
  170. }
  171. label.think-radio, label.think-checkbox {
  172. cursor: pointer;
  173. margin-right: 10px;
  174. display: inline-block;
  175. }
  176. .think-radio, .think-checkbox {
  177. margin-top: 10px;
  178. font-weight: 400;
  179. line-height: 18px;
  180. input[type=radio], input[type=checkbox] {
  181. width: 18px;
  182. height: 18px;
  183. cursor: pointer;
  184. border: 1px solid @borderColor;
  185. position: relative;
  186. background: #fff;
  187. margin-right: 5px;
  188. vertical-align: bottom;
  189. display: inline-block !important;
  190. box-sizing: border-box !important;
  191. appearance: none;
  192. -webkit-appearance: none;
  193. &:checked {
  194. border-color: #009688;
  195. &:after {
  196. display: block;
  197. position: relative;
  198. animation-duration: .3s;
  199. -webkit-animation-duration: .3s;
  200. animation-fill-mode: both;
  201. -webkit-animation-fill-mode: both;
  202. animation-name: layui-scale-spring;
  203. -webkit-animation-name: layui-scale-spring;
  204. }
  205. }
  206. }
  207. input[type=radio] {
  208. border-radius: 1em;
  209. &:checked:after {
  210. top: 4px;
  211. left: 4px;
  212. width: 8px;
  213. height: 8px;
  214. cursor: pointer;
  215. content: '';
  216. background: #009688;
  217. border-radius: 1em;
  218. }
  219. }
  220. input[type=checkbox] {
  221. border-radius: 1px;
  222. &:checked:after {
  223. color: #009688;
  224. cursor: pointer;
  225. padding: 2px;
  226. content: "\e605";
  227. font-size: 12px;
  228. font-style: normal;
  229. font-weight: 700;
  230. font-family: layui-icon !important;
  231. -webkit-font-smoothing: antialiased;
  232. -moz-osx-font-smoothing: grayscale
  233. }
  234. }
  235. }
  236. .layui-table {
  237. td, th {
  238. font-size: 12px;
  239. }
  240. td.list-table-check-td + td,
  241. th.list-table-check-td + th {
  242. padding-left: 5px;
  243. }
  244. div.headimg {
  245. width: 35px;
  246. height: 35px;
  247. border: 1px solid @borderColor;
  248. display: inline-block;
  249. overflow: hidden;
  250. text-align: center;
  251. margin-right: 5px;
  252. border-radius: 50%;
  253. vertical-align: middle;
  254. box-shadow: @minShadow;
  255. background-size: cover;
  256. background-repeat: no-repeat;
  257. background-position: center center;
  258. &-no {
  259. border: none;
  260. box-shadow: none;
  261. border-radius: 0;
  262. }
  263. &-xs {
  264. width: 28px;
  265. height: 28px;
  266. }
  267. &-md {
  268. width: 55px;
  269. height: 55px;
  270. }
  271. > img {
  272. width: 110%;
  273. height: 110%;
  274. max-width: 110%;
  275. max-height: 110%;
  276. margin: -5% 0 0 -5%;
  277. }
  278. & + * {
  279. vertical-align: middle;
  280. }
  281. }
  282. .list-table-sort-td {
  283. width: 10px !important;
  284. text-align: center !important;
  285. padding-left: 5px !important;
  286. padding-right: 5px !important;
  287. button {
  288. width: 56px;
  289. background: #009688
  290. }
  291. input {
  292. width: 50px;
  293. color: #666;
  294. padding: 2px;
  295. font-size: 9pt;
  296. border: 1px solid @borderColor;
  297. text-align: center;
  298. line-height: 18px
  299. }
  300. }
  301. .list-table-check-td {
  302. width: 10px !important;
  303. text-align: center !important;
  304. padding-left: 15px !important;
  305. padding-right: 15px !important;
  306. input {
  307. margin: 0 !important;
  308. vertical-align: middle
  309. }
  310. }
  311. }
  312. .layui-layer-content {
  313. .layui-form.layui-card {
  314. margin: 0;
  315. box-shadow: none !important;
  316. .layui-card-body {
  317. padding: 20px 40px 0 0;
  318. }
  319. }
  320. }
  321. .layui-layer-dialog {
  322. .layui-layer-content {
  323. .layui-layer-ico {
  324. top: 50% !important;
  325. margin-top: -15px !important
  326. }
  327. }
  328. }
  329. .laydate-footer-btns {
  330. span {
  331. line-height: 24px !important
  332. }
  333. }
  334. .layui-tags {
  335. display: flex;
  336. flex-wrap: wrap;
  337. vertical-align: middle;
  338. .layui-tag {
  339. color: #FFF;
  340. height: 38px;
  341. margin: 3px 4px 3px 0;
  342. padding: 0 4px 0 10px;
  343. display: inline-block;
  344. font-size: 14px;
  345. line-height: 38px;
  346. border-radius: 2px;
  347. white-space: nowrap;
  348. background: #1E9FFF !important;
  349. user-select: none;
  350. -ms-user-select: none;
  351. -moz-user-select: none;
  352. -webkit-user-select: none;
  353. .layui-icon {
  354. font-size: 14px;
  355. font-weight: 700;
  356. margin-left: 5px;
  357. &:hover {
  358. cursor: pointer;
  359. color: #FF5722;
  360. }
  361. }
  362. &-input {
  363. width: 100px;
  364. resize: none;
  365. margin: 3px 8px 3px 0;
  366. overflow: hidden;
  367. white-space: nowrap;
  368. }
  369. }
  370. }