console.layui.less 7.4 KB

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