style.css 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /* my style */
  2. .layui-header {
  3. background: none;
  4. }
  5. .layui-layout-admin .my-header {
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. width: 100%;
  10. height: 60px;
  11. background: #393D49;
  12. z-index: 2;
  13. }
  14. .layui-layout-admin .my-header .my-header-logo {
  15. display: inline-block;
  16. width: auto;
  17. height: 30px;
  18. color: white;
  19. font-size: 18px;
  20. line-height: 30px;
  21. padding: 15px;
  22. vertical-align: top;
  23. }
  24. .layui-layout-admin .my-header img.my-header-logo {
  25. width: 150px;
  26. height: 40px;
  27. text-align: center;
  28. line-height: 40px;
  29. padding: 10px;
  30. border: none;
  31. }
  32. .my-header-btn {
  33. display: inline-block;
  34. width: auto;
  35. height: 100%;
  36. line-height: 60px;
  37. }
  38. .my-header-user-nav {
  39. float: right;
  40. }
  41. .my-header-user-nav img {
  42. width: 40px;
  43. height: 40px;
  44. text-align: center;
  45. line-height: 40px;
  46. border: none;
  47. border-radius: 5px;
  48. }
  49. .my-header-user-nav .layui-nav-item a.name {
  50. padding-left: 5px !important;
  51. }
  52. .my-header ul.layui-nav {
  53. display: inline-block;
  54. vertical-align: top;
  55. border-radius: 0;
  56. }
  57. .my-header ul.layui-nav li a {
  58. max-height: 60px;
  59. }
  60. .my-side {
  61. position: fixed;
  62. top: 60px;
  63. bottom: 0;
  64. width: 200px;
  65. z-index: 2;
  66. overflow-x: hidden;
  67. }
  68. .my-side .layui-nav {
  69. border-radius: 0;
  70. min-height: 100%;
  71. }
  72. .my-side ul.layui-nav li a i, .layui-nav .layui-nav-child a i, .layui-nav .layui-nav-item a i, .layui-tab-card > .layui-tab-title li span i {
  73. margin-right: 5px;
  74. }
  75. .my-side ul.layui-nav li dl dd a i {
  76. margin-left: 15px;
  77. }
  78. .my-body {
  79. position: fixed;
  80. top: 60px;
  81. bottom: 0;
  82. left: 200px;
  83. right: 0;
  84. z-index: 1;
  85. overflow: hidden;
  86. }
  87. .body {
  88. padding: 10px;
  89. }
  90. .my-body .layui-tab, .my-body .layui-tab .layui-tab-content {
  91. margin: 0;
  92. padding: 0;
  93. }
  94. .my-body .layui-tab .layui-tab-title li:first-child i {
  95. display: none;
  96. }
  97. .my-body .layui-tab, .my-body .layui-tab .layui-tab-content, .my-body .layui-tab .layui-tab-item {
  98. height: 100%;
  99. }
  100. .my-body iframe {
  101. width: 100%;
  102. height: 100%;
  103. border: none;
  104. outline: none;
  105. }
  106. .layui-layout-admin .my-footer {
  107. height: 40px;
  108. padding: 2px 0;
  109. }
  110. .layui-layout-admin .my-footer p {
  111. height: 20px;
  112. line-height: 20px;
  113. font-size: 12px;
  114. text-align: center;
  115. }
  116. .my-btn-box {
  117. height: 38px;
  118. margin-bottom: 10px;
  119. }
  120. .my-pay-box > div p {
  121. text-align: center;
  122. margin-bottom: 10px;
  123. }
  124. /* login */
  125. .login-body {
  126. background: url("../image/bg.png") repeat fixed;
  127. }
  128. .login-box {
  129. position: fixed;
  130. top: 0;
  131. bottom: 0;
  132. left: 0;
  133. right: 0;
  134. margin: auto;
  135. width: 320px;
  136. height: 241px;
  137. max-height: 300px;
  138. }
  139. .login-body .login-box h3 {
  140. color: #444;
  141. font-size: 22px;
  142. font-weight: 100;
  143. text-align: center;
  144. }
  145. .login-box .layui-input[type='number'] {
  146. display: inline-block;
  147. width: 50%;
  148. vertical-align: top;
  149. }
  150. .login-box img {
  151. display: inline-block;
  152. width: 46%;
  153. height: 38px;
  154. border: none;
  155. vertical-align: top;
  156. cursor: pointer;
  157. margin-left: 4%;
  158. }
  159. .login-box button.btn-reset {
  160. width: 95px;
  161. }
  162. .login-box button.btn-submit {
  163. width: 190px;
  164. }
  165. .login-main{
  166. position: fixed;
  167. top: 0;
  168. right: 0;
  169. bottom: 0;
  170. left: 0;
  171. width: 350px;
  172. margin: 0 auto;
  173. }
  174. .login-main header {
  175. margin-top: 150px;
  176. height: 35px;
  177. line-height: 35px;
  178. font-size: 30px;
  179. font-weight: 100;
  180. text-align: center;
  181. }
  182. .login-main header, .login-main form, .login-main form .layui-input-inline {
  183. margin-bottom: 15px;
  184. }
  185. .login-main form .layui-input-inline, .login-main form .layui-input-inline input, .login-main form .layui-input-inline button{
  186. width: 100%;
  187. }
  188. .login-main form .login-btn {
  189. margin-bottom: 5px;
  190. }
  191. /* demo */
  192. .site-demo-button div {
  193. margin: 20px 30px 10px;
  194. }
  195. .site-demo-button .layui-btn {
  196. margin: 0 7px 10px 0;
  197. }
  198. /* check */
  199. input[type='checkbox'] {
  200. vertical-align: middle;
  201. }
  202. .my-checkbox {
  203. -webkit-appearance: none;
  204. position: relative;
  205. width: 20px;
  206. height: 20px;
  207. background-color: #FFFFFF;
  208. border: solid 2px #28B779;
  209. border-radius: 2px;
  210. background-clip: padding-box;
  211. display: inline-block;
  212. cursor: pointer;
  213. }
  214. .my-checkbox:checked {
  215. background-color: #28B779;
  216. border: solid 0 #28B779;
  217. }
  218. .my-checkbox:checked:before {
  219. position: absolute;
  220. display: inline-block;
  221. right: 50%;
  222. bottom: 50%;
  223. -webkit-transform: translate(50%, 50%);
  224. -ms-transform: translate(50%, 50%);
  225. transform: translate(50%, 50%);
  226. font-family: "Microsoft Yahei";
  227. content: "√";
  228. color: #FFFFFF;
  229. font-size: 16px;
  230. font-weight: 600;
  231. }
  232. /* table */
  233. .dataTables_length, .dataTables_filter, .dataTables_info, .dataTables_paginate {
  234. margin-bottom: 10px;
  235. display: inline-block;
  236. }
  237. .dataTables_length, .dataTables_info {
  238. float: left;
  239. }
  240. .dataTables_filter, .dataTables_paginate {
  241. float: right;
  242. }
  243. .dataTables_length select, .dataTables_filter input[type=search] {
  244. width: 100px;
  245. height: 30px;
  246. border: 1px solid #ccc;
  247. padding: 0 5px;
  248. display: inline-block;
  249. }
  250. .dataTables_paginate span, .dataTables_paginate a.paginate_button {
  251. border-radius: 2px;
  252. cursor: pointer;
  253. }
  254. .dataTables_paginate a, .dataTables_paginate > span > span {
  255. box-sizing: border-box;
  256. display: inline-block;
  257. min-width: 2em;
  258. height: 30px;
  259. line-height: 28px;
  260. border: 1px solid transparent;
  261. padding: 0 0.5em;
  262. margin-left: 2px;
  263. text-align: center;
  264. text-decoration: none;
  265. cursor: pointer;
  266. }
  267. .dataTables_paginate span a.current, .dataTables_paginate a.paginate_button:hover {
  268. color: white;
  269. background: #009688;
  270. }
  271. .dataTables_length select {
  272. width: 60px;
  273. border-radius: 2px;
  274. }
  275. table.dataTable tbody tr.even {
  276. background: #f2f2f2;
  277. }
  278. table.dataTable tbody tr.selected {
  279. background: #eeeeee;
  280. }
  281. table.dataTable tr td:first-child, table.dataTable tr th:first-child {
  282. width: 20px;
  283. }
  284. table.dataTable thead .sorting_asc {
  285. background-image: url("../image/sort_asc.png");
  286. }
  287. table.dataTable thead .sorting_desc {
  288. background-image: url("../image/sort_desc.png");
  289. }
  290. table.dataTable thead .sorting {
  291. background-image: url("../image/sort_both.png");
  292. }
  293. table.dataTable thead .sorting, table.dataTable thead .sorting_desc, table.dataTable thead .sorting_asc {
  294. background-repeat: no-repeat;
  295. background-position: center right;
  296. }
  297. /* tips 404 */
  298. .my-page-box {
  299. font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif;
  300. text-align: center;
  301. padding: 20px;
  302. background-color: white;
  303. }
  304. .my-page-box i {
  305. font-size: 100px;
  306. }
  307. .my-page-box h2, .my-page-box h3, .my-page-box h4, .my-page-box h5 {
  308. font-size: 80px;
  309. }
  310. .my-page-box p.msg {
  311. color: #dce2ec;
  312. font-size: 20px;
  313. margin-top: 20px;
  314. }
  315. .my-page-box p.text {
  316. color: #666;
  317. font-size: 16px;
  318. margin-top: 20px;
  319. }
  320. .my-page-box .my-btn-box {
  321. margin-top: 20px;
  322. margin-bottom: 20px;
  323. }
  324. /* tree table */
  325. .my-tree-table-box .tree-table-tree-box {
  326. width: 20%;
  327. min-height: 200px;
  328. display: inline-block;
  329. vertical-align: top;
  330. overflow-y: auto;
  331. overflow-x: auto;
  332. }
  333. .my-tree-table-box .tree-table-table-box {
  334. display: inline-block;
  335. vertical-align: top;
  336. width: 79%;
  337. margin-left: 1%;
  338. }
  339. /* skin */
  340. html body .skin-1 .my-header .my-header-logo,
  341. html body .skin-1 .layui-nav .layui-nav-item a,
  342. html body .skin-1 .layui-nav .layui-nav-item a:hover {
  343. color: #555;
  344. }
  345. html body .skin-1,
  346. html body .skin-1 .my-header,
  347. html body .skin-1 .layui-nav,
  348. html body .skin-1 .layui-nav-child {
  349. background: white;
  350. }
  351. html body .skin-1 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this a{
  352. color: white;
  353. }
  354. html body .skin-1 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this,
  355. html body .skin-1 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this>a,
  356. html body .skin-1 .layui-nav-tree .layui-nav-item:hover>a,
  357. html body .skin-1 .layui-nav .layui-nav-item .layui-nav-child dd:hover>a {
  358. color: white;
  359. background: #999;
  360. }
  361. html body .skin-1 .layui-nav .layui-nav-itemed>a {
  362. background: #666 !important;
  363. }
  364. /* skin2 */
  365. html body .skin-2 .my-header .my-header-logo,
  366. html body .skin-2 .layui-nav .layui-nav-item a,
  367. html body .skin-2 .layui-nav .layui-nav-item a:hover {
  368. color: white;
  369. }
  370. html body .skin-2,
  371. html body .skin-2 .my-header,
  372. html body .skin-2 .layui-nav,
  373. html body .skin-2 .layui-nav-child {
  374. background: #01AAED;
  375. }
  376. html body .skin-2 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this a{
  377. color: white;
  378. }
  379. html body .skin-2 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this,
  380. html body .skin-2 .layui-nav .layui-nav-item .layui-nav-child dd.layui-this>a,
  381. html body .skin-2 .layui-nav-tree .layui-nav-item:hover>a,
  382. html body .skin-2 .layui-nav .layui-nav-item .layui-nav-child dd:hover>a {
  383. background: #00C0F7;
  384. }
  385. html body .skin-2 .layui-nav .layui-nav-itemed>a {
  386. background-color: #0187BB !important;
  387. }
  388. /* tools */
  389. .fl {
  390. float: left;
  391. }
  392. .fr {
  393. float: right;
  394. }
  395. .none {
  396. display: none;
  397. }
  398. .block {
  399. display: block;
  400. }
  401. /* layui 样式覆盖 */
  402. html body .layui-nav .layui-nav-bar {
  403. opacity: 0 !important;
  404. overflow: hidden !important;
  405. }
  406. .layui-nav .layui-this:after, .layui-nav-bar, .layui-nav-tree .layui-nav-itemed:after {
  407. background-color: transparent;
  408. }
  409. /* media */
  410. @media screen and (max-width: 1023px) {
  411. .my-header ul.layui-nav, .my-header-btn, .my-side, .layui-field-title, .my-btn-box .fr {
  412. display: none;
  413. }
  414. .layui-side-scroll {
  415. width: 170px;
  416. }
  417. body div.my-mobile {
  418. background: #393D49;
  419. }
  420. body div.my-mobile .layui-layer-content {
  421. overflow-x: hidden;
  422. }
  423. .my-header ul.my-header-user-nav {
  424. display: inline-block;
  425. padding-left: 0;
  426. padding-right: 10px;
  427. }
  428. .my-header ul.my-header-user-nav a {
  429. padding: 0 10px;
  430. }
  431. .my-header ul.my-header-user-nav:last-child a:first-child {
  432. padding-right: 20px;
  433. }
  434. .my-side, .layui-nav-tree, .my-btn-box input[type='text'] {
  435. width: 150px;
  436. }
  437. .my-body {
  438. left: 0;
  439. width: 100%;
  440. overflow-x: auto;
  441. }
  442. .my-body iframe {
  443. width: 100%;
  444. }
  445. select {
  446. background: white;
  447. }
  448. .layui-layout-admin .layui-footer {
  449. left: 0;
  450. }
  451. }
  452. @media screen and ( max-width: 450px) {
  453. .my-header ul.my-header-user-nav li a.pay {
  454. display: none;
  455. }
  456. }