backend.less 21 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258
  1. @import (reference) "bootstrap-less/mixins.less";
  2. @import (reference) "bootstrap-less/variables.less";
  3. @import (reference) "fastadmin/mixins.less";
  4. @import (reference) "fastadmin/variables.less";
  5. @import "lesshat.less";
  6. @import url("../css/bootstrap.css");
  7. @import url("../css/fastadmin.css");
  8. @import url("../css/skins/skin-green.css");
  9. @import url("../css/iconfont.css");
  10. @import url("../libs/font-awesome/css/font-awesome.min.css");
  11. @import url("../libs/toastr/toastr.min.css");
  12. @import url("../libs/fastadmin-layer/dist/theme/default/layer.css");
  13. @import url("../libs/bootstrap-table/dist/bootstrap-table.min.css");
  14. @import url("../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css");
  15. @import url("../libs/bootstrap-daterangepicker/daterangepicker.css");
  16. @import url("../libs/nice-validator/dist/jquery.validator.css");
  17. @import url("../libs/bootstrap-select/dist/css/bootstrap-select.min.css");
  18. @import url("../libs/fastadmin-selectpage/selectpage.css");
  19. @import url("../libs/bootstrap-slider/slider.css");
  20. @main-bg: #f1f4f6;
  21. @panel-intro-bg: darken(@main-bg, 3%);
  22. @panel-nav-bg: #fff;
  23. html,
  24. body {
  25. height: 100%;
  26. }
  27. body {
  28. background: #f1f4f6;
  29. font-size: 13px;
  30. }
  31. body.is-dialog {
  32. background: #fff;
  33. }
  34. .selection {
  35. position: absolute;
  36. border: 1px solid #8B9;
  37. background-color: #BEC;
  38. }
  39. .main-header {
  40. .logo, .navbar {
  41. .transition(none);
  42. }
  43. .navbar {
  44. position: relative;
  45. }
  46. }
  47. .bootstrap-dialog .modal-dialog {
  48. /*width: 70%;*/
  49. max-width: 885px;
  50. }
  51. /*iOS兼容*/
  52. html.ios-fix, html.ios-fix body {
  53. height: 100%;
  54. overflow: auto;
  55. -webkit-overflow-scrolling: touch;
  56. }
  57. .wrapper {
  58. height: 100%;
  59. }
  60. #header {
  61. background: #fff;
  62. //box-shadow: 0 2px 2px rgba(0,0,0,.05),0 1px 0 rgba(0,0,0,.05);
  63. }
  64. .content-wrapper {
  65. position: relative;
  66. height: 100%;
  67. }
  68. .control-relative {
  69. position: relative;
  70. }
  71. .tab-addtabs {
  72. //overflow: hidden;
  73. .tab-pane {
  74. height: 100%;
  75. width: 100%;
  76. }
  77. }
  78. .row-between {
  79. .col-xs-6 + .col-xs-6:before {
  80. content: "-";
  81. position: absolute;
  82. left: -2%;
  83. top: 6px;
  84. }
  85. }
  86. @media only screen and (min-width: 481px) {
  87. .row-flex {
  88. display: flex;
  89. flex-wrap: wrap;
  90. }
  91. .row-flex > [class*='col-'] {
  92. display: flex;
  93. flex-direction: column;
  94. }
  95. .row-flex.row:after,
  96. .row-flex.row:before {
  97. display: flex;
  98. }
  99. }
  100. @media (max-width: 991px) {
  101. .main-header .navbar-custom-menu a {
  102. &.btn-danger {
  103. color: #fff;
  104. background-color: @brand-danger;
  105. }
  106. &.btn-primary {
  107. color: #fff;
  108. background-color: @brand-primary;
  109. }
  110. }
  111. }
  112. .common-search-table {
  113. min-height: 20px;
  114. padding: 15px;
  115. margin-bottom: 15px;
  116. background-color: #f5f5f5;
  117. }
  118. /* 固定的底部按钮 */
  119. .fixed-footer {
  120. position: fixed;
  121. bottom: 0;
  122. background-color: #ecf0f1;
  123. width: 100%;
  124. margin-bottom: 0;
  125. padding: 10px;
  126. }
  127. table.table-template {
  128. overflow: hidden;
  129. }
  130. .sp_container .msg-box {
  131. position: absolute;
  132. right: 0;
  133. top: 0;
  134. }
  135. .toast-top-right-index {
  136. top: 62px;
  137. right: 12px;
  138. }
  139. .bootstrap-select .status {
  140. background: #f0f0f0;
  141. clear: both;
  142. color: #999;
  143. font-size: 12px;
  144. font-weight: 500;
  145. line-height: 1;
  146. margin-bottom: -5px;
  147. padding: 10px 20px;
  148. }
  149. .img-center {
  150. margin: 0 auto;
  151. display: inline;
  152. float: none;
  153. }
  154. /*
  155. * RIBBON
  156. */
  157. #ribbon {
  158. overflow: hidden;
  159. padding: 15px 15px 0 15px;
  160. position: relative;
  161. a {
  162. color: #777 !important;
  163. text-decoration: none !important;
  164. }
  165. .breadcrumb {
  166. display: inline-block;
  167. margin: 0;
  168. padding: 0;
  169. background: none;
  170. vertical-align: top;
  171. }
  172. .breadcrumb > .active,
  173. .breadcrumb li {
  174. color: #aaa;
  175. }
  176. .shortcut {
  177. a {
  178. margin-left: 10px;
  179. }
  180. }
  181. }
  182. .is-dialog {
  183. #main {
  184. background: #fff;
  185. }
  186. .layer-footer {
  187. display: none;
  188. }
  189. }
  190. form.form-horizontal .control-label {
  191. font-weight: normal;
  192. }
  193. .user-panel > .image img {
  194. width: 45px;
  195. height: 45px;
  196. }
  197. /*panel扩展描述样式*/
  198. .panel-intro {
  199. margin-bottom: 0;
  200. border: none;
  201. > .panel-heading {
  202. padding: 15px;
  203. padding-bottom: 0;
  204. background: @panel-intro-bg;
  205. border-color: @panel-intro-bg;
  206. position: relative;
  207. .panel-lead {
  208. margin-bottom: 15px;
  209. em {
  210. display: block;
  211. font-weight: bold;
  212. font-style: normal;
  213. }
  214. }
  215. .panel-title {
  216. height: 25px;
  217. font-weight: normal;
  218. white-space: nowrap;
  219. overflow: hidden;
  220. text-overflow: ellipsis;
  221. }
  222. .panel-control {
  223. height: 42px;
  224. position: absolute;
  225. top: 8px;
  226. right: 8px;
  227. .fa {
  228. font-size: 14px;
  229. }
  230. }
  231. .nav-tabs {
  232. border-bottom: 0;
  233. margin-bottom: 0;
  234. }
  235. .nav-tabs > li > a {
  236. margin-right: 4px;
  237. color: #95a5a6;
  238. background-color: darken(@panel-intro-bg, 5%);
  239. border: 1px solid @panel-intro-bg;
  240. border-bottom-color: transparent;
  241. }
  242. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
  243. border: 1px solid @panel-intro-bg;
  244. color: #7b8a8b;
  245. background-color: darken(@panel-intro-bg, 10%);
  246. }
  247. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  248. color: #7b8a8b;
  249. background-color: #ffffff;
  250. border-bottom-color: transparent;
  251. cursor: default;
  252. }
  253. }
  254. }
  255. /*单表格*/
  256. .panel-tabs {
  257. .panel-heading {
  258. padding: 12px 15px 12px 15px;
  259. .panel-lead {
  260. margin-bottom: 0px;
  261. }
  262. .panel-title {
  263. }
  264. }
  265. }
  266. /*选项卡*/
  267. .panel-nav {
  268. .panel-heading {
  269. padding: 0px;
  270. padding-bottom: 0;
  271. background: @main-bg;
  272. border-color: @main-bg;
  273. }
  274. .nav-tabs > li > a {
  275. padding: 12px 15px;
  276. background-color: @panel-intro-bg;
  277. border: 1px solid @main-bg;
  278. }
  279. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
  280. border: 1px solid @panel-intro-bg;
  281. background-color: @panel-intro-bg;
  282. }
  283. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  284. border-color: @main-bg;
  285. border-bottom-color: transparent;
  286. }
  287. }
  288. /*顶栏addtabs*/
  289. .nav-addtabs {
  290. height: 100%;
  291. &.disable-top-badge {
  292. > li > a > .pull-right-container {
  293. display: none;
  294. }
  295. }
  296. border: none;
  297. > li {
  298. margin: 0;
  299. > a {
  300. height: 50px;
  301. line-height: 50px;
  302. padding: 0 15px;
  303. border-radius: 0;
  304. border: none;
  305. border-right: 1px solid rgba(0, 0, 0, 0.05);
  306. margin: 0;
  307. color: #95a5a6;
  308. &:hover, &:focus {
  309. border: none;
  310. color: #2c3e50;
  311. border-right: 1px solid rgba(0, 0, 0, 0.05);
  312. }
  313. }
  314. &.active > a {
  315. height: 50px;
  316. line-height: 50px;
  317. padding: 0 15px;
  318. border-radius: 0;
  319. border: none;
  320. border-right: 1px solid rgba(0, 0, 0, 0.05);
  321. background: #f1f4f6;
  322. color: #2c3e50;
  323. overflow: hidden;
  324. &:hover, &:focus {
  325. border: none;
  326. color: #2c3e50;
  327. background: #f1f4f6;
  328. border-right: 1px solid rgba(0, 0, 0, 0.05);
  329. }
  330. }
  331. .close-tab {
  332. font-size: 10px;
  333. position: absolute;
  334. right: 0px;
  335. top: 50%;
  336. margin-top: -8px;
  337. z-index: 100;
  338. cursor: pointer;
  339. color: #eee;
  340. &:before {
  341. content: "\e626";
  342. font-family: iconfont;
  343. font-style: normal;
  344. font-weight: normal;
  345. text-decoration: inherit;
  346. font-size: 18px;
  347. }
  348. display: none;
  349. }
  350. }
  351. .open > a {
  352. &:hover, &:focus {
  353. border-right: 1px solid rgba(0, 0, 0, 0.05);
  354. }
  355. }
  356. ul li {
  357. position: relative;
  358. }
  359. li:hover > .close-tab {
  360. display: block;
  361. }
  362. }
  363. .multiplenav {
  364. .content-wrapper, .right-side {
  365. padding-top: 94px;
  366. }
  367. #firstnav .nav-addtabs {
  368. padding-right: 450px;
  369. }
  370. }
  371. #firstnav {
  372. height: 50px;
  373. border-bottom: 1px solid transparent;
  374. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  375. position: relative;
  376. .sidebar-toggle {
  377. position: absolute;
  378. width: 45px;
  379. text-align: center;
  380. height: 50px;
  381. line-height: 50px;
  382. padding: 0;
  383. }
  384. .nav-addtabs {
  385. position: absolute;
  386. left: 45px;
  387. z-index: 98;
  388. }
  389. .navbar-custom-menu {
  390. position: absolute;
  391. top: 0;
  392. right: 0;
  393. z-index: 99;
  394. background: transparent;
  395. }
  396. }
  397. /*次栏菜单栏*/
  398. #secondnav {
  399. height: 44px;
  400. position: absolute;
  401. top: 50px;
  402. left: 0;
  403. background: #fff;
  404. width: 100%;
  405. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  406. padding: 5px 10px;
  407. -webkit-user-select: none;
  408. -moz-user-select: none;
  409. user-select: none;
  410. .nav-addtabs {
  411. height: 100%;
  412. &.disable-top-badge {
  413. > li > a > .pull-right-container {
  414. display: none;
  415. }
  416. }
  417. border: none;
  418. > li {
  419. border: 1px solid #eee;
  420. border-radius: 3px;
  421. padding: 0 15px;
  422. height: 30px;
  423. line-height: 30px;
  424. margin: 2px 5px 2px 0;
  425. background: #fff;
  426. > a {
  427. display: block;
  428. color: #495060 !important;
  429. height: 100%;
  430. padding: 0;
  431. line-height: 28px;
  432. font-size: 12px;
  433. vertical-align: middle;
  434. opacity: 1;
  435. overflow: hidden;
  436. background: none;
  437. border: none;
  438. }
  439. &.active {
  440. border-color: #bdbebd;
  441. background-color: #f7f7f7;
  442. }
  443. .close-tab {
  444. font-size: 10px;
  445. position: absolute;
  446. right: 0px;
  447. top: 50%;
  448. margin-top: -8px;
  449. z-index: 100;
  450. cursor: pointer;
  451. color: #eee;
  452. &:before {
  453. content: "\e626";
  454. font-family: iconfont;
  455. font-style: normal;
  456. font-weight: normal;
  457. text-decoration: inherit;
  458. font-size: 18px;
  459. }
  460. }
  461. &:hover, &:focus {
  462. border-color: #bdbebd;
  463. }
  464. }
  465. ul li {
  466. position: relative;
  467. }
  468. li:hover > .close-tab {
  469. display: block;
  470. border-color: #222e32;
  471. color: #222e32
  472. }
  473. }
  474. }
  475. .main-sidebar .sidebar-form {
  476. overflow: visible;
  477. .menuresult {
  478. z-index: 999;
  479. position: absolute;
  480. top: 34px;
  481. left: -1px;
  482. width: 100%;
  483. max-height: 250px;
  484. overflow: auto;
  485. margin: 0;
  486. border-top: none;
  487. border-top-left-radius: 0;
  488. border-top-right-radius: 0;
  489. a {
  490. border-top: 1px solid #eee;
  491. display: block;
  492. background-color: #fff;
  493. border-bottom: 1px solid #eee;
  494. margin-bottom: -1px;
  495. display: block;
  496. padding: 10px 15px;
  497. color: #222d32;
  498. &:hover {
  499. background: #eee;
  500. }
  501. }
  502. }
  503. }
  504. .input-group .sp_result_area {
  505. width: 100%;
  506. }
  507. .sidebar-menu {
  508. &.show-submenu {
  509. .treeview-menu {
  510. display: block;
  511. }
  512. }
  513. > li .badge {
  514. margin-top: 0;
  515. }
  516. .treeview-menu > li > a {
  517. font-size: inherit;
  518. }
  519. }
  520. .sidebar-collapse {
  521. .user-panel > .image img {
  522. width: 25px;
  523. height: 25px;
  524. }
  525. }
  526. @media (min-width: 768px) {
  527. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  528. top: 41px;
  529. }
  530. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
  531. top: 7px !important;
  532. height: 17px;
  533. }
  534. }
  535. .fieldlist dd {
  536. display: block;
  537. margin: 5px 0;
  538. input {
  539. display: inline-block;
  540. width: 300px;
  541. }
  542. input:first-child {
  543. width: 110px;
  544. }
  545. ins {
  546. width: 110px;
  547. display: inline-block;
  548. text-decoration: none;
  549. font-weight: bold;
  550. }
  551. }
  552. /* 弹窗中的表单 */
  553. .form-layer {
  554. height: 100%;
  555. min-height: 150px;
  556. min-width: 300px;
  557. .form-body {
  558. width: 100%;
  559. overflow: auto;
  560. top: 0;
  561. position: absolute;
  562. z-index: 10;
  563. bottom: 50px;
  564. padding: 15px;
  565. }
  566. .form-footer {
  567. height: 50px;
  568. line-height: 50px;
  569. background-color: #ecf0f1;
  570. width: 100%;
  571. position: absolute;
  572. z-index: 200;
  573. bottom: 0;
  574. margin: 0;
  575. }
  576. .form-footer .form-group {
  577. margin-left: 0;
  578. margin-right: 0;
  579. }
  580. }
  581. #treeview {
  582. .jstree-container-ul .jstree-node {
  583. display: block;
  584. clear: both;
  585. }
  586. .jstree-leaf:not(:first-child) {
  587. float: left;
  588. background: none;
  589. margin-left: 0;
  590. min-width: 80px;
  591. clear: none;
  592. }
  593. .jstree-leaf {
  594. float: left;
  595. margin-left: 0;
  596. padding-left: 24px;
  597. min-width: 80px;
  598. clear: none;
  599. color: #777;
  600. }
  601. .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon {
  602. display: none;
  603. }
  604. .jstree-last {
  605. background-image: url("../img/32px.png");
  606. background-position: -292px -4px;
  607. background-repeat: repeat-y;
  608. }
  609. .jstree-children {
  610. .clearfix();
  611. }
  612. .jstree-themeicon {
  613. display: none;
  614. }
  615. }
  616. /*去除bootstrap-table的边框*/
  617. .fixed-table-container {
  618. border: none !important;
  619. }
  620. /*修复nice-validator新版下的一处BUG*/
  621. .nice-validator {
  622. input, select, textarea, [contenteditable] {
  623. display: inline-block;
  624. *display: inline;
  625. *zoom: 1;
  626. }
  627. }
  628. /*修复nice-validator和summernote的编辑框冲突*/
  629. .nice-validator .note-editor .note-editing-area .note-editable {
  630. display: inherit;
  631. }
  632. /*预览区域*/
  633. .plupload-preview {
  634. padding: 0 10px;
  635. margin-bottom: 0;
  636. li {
  637. margin-top: 15px;
  638. }
  639. .thumbnail {
  640. margin-bottom: 10px;
  641. }
  642. a {
  643. display: block;
  644. &:first-child {
  645. height: 90px;
  646. }
  647. img {
  648. height: 80px;
  649. object-fit: cover;
  650. }
  651. }
  652. }
  653. .pjax-loader-bar .progress {
  654. position: fixed;
  655. top: 0;
  656. left: 0;
  657. height: 2px;
  658. background: #77b6ff;
  659. box-shadow: 0 0 10px rgba(119, 182, 255, 0.7);
  660. -webkit-transition: width 0.4s ease;
  661. transition: width 0.4s ease;
  662. }
  663. .dropdown-menu.text-left {
  664. a, li {
  665. text-align: left !important;
  666. }
  667. }
  668. .bootstrap-table .fixed-table-toolbar .dropdown-menu {
  669. overflow: auto;
  670. }
  671. .bootstrap-table .fa-toggle-on.fa-2x {
  672. font-size: 1.86em;
  673. }
  674. .bootstrap-table .form-commonsearch .form-group {
  675. margin-left: 0;
  676. margin-right: 0;
  677. white-space: nowrap;
  678. }
  679. .toolbar {
  680. margin-top: 10px;
  681. margin-bottom: 10px;
  682. }
  683. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
  684. line-height: inherit;
  685. }
  686. .fixed-table-toolbar .toolbar {
  687. margin-top: 0;
  688. margin-bottom: 0;
  689. }
  690. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  691. vertical-align: middle;
  692. }
  693. .bootstrap-table td.bs-checkbox {
  694. vertical-align: middle;
  695. }
  696. table.table-nowrap {
  697. tbody > tr > td, thead > tr > th {
  698. white-space: nowrap;
  699. }
  700. }
  701. .fixed-table-container thead th .sortable {
  702. padding-right: 0;
  703. }
  704. .dropdown-submenu {
  705. position: relative;
  706. > .dropdown-menu {
  707. overflow: auto;
  708. top: 0;
  709. left: 100%;
  710. margin-top: -6px;
  711. margin-left: -1px;
  712. .border-radius(0 6px 6px 6px);
  713. }
  714. &:hover {
  715. > .dropdown-menu {
  716. display: block;
  717. }
  718. > a:after {
  719. border-left-color: #fff;
  720. }
  721. }
  722. > a:after {
  723. display: block;
  724. content: " ";
  725. float: right;
  726. width: 0;
  727. height: 0;
  728. border-color: transparent;
  729. border-style: solid;
  730. border-width: 5px 0 5px 5px;
  731. border-left-color: #ccc;
  732. margin-top: 5px;
  733. margin-right: -10px;
  734. }
  735. &.pull-left {
  736. float: none;
  737. > .dropdown-menu {
  738. left: -100%;
  739. margin-left: 10px;
  740. .border-radius(6px 0 6px 6px);
  741. }
  742. }
  743. }
  744. /*重写toast的几个背景色*/
  745. .toast-primary {
  746. background-color: #48c9b0 !important;
  747. }
  748. .toast-success {
  749. background-color: #18bc9c !important;
  750. }
  751. .toast-error {
  752. background-color: #e74c3c !important;
  753. }
  754. .toast-info {
  755. background-color: #5dade2 !important;
  756. }
  757. .toast-warning {
  758. background-color: #f1c40f !important;
  759. }
  760. .toast-inverse {
  761. background-color: #34495e !important;
  762. }
  763. .toast-default {
  764. background-color: #bdc3c7 !important;
  765. }
  766. #toast-container {
  767. > div, > div:hover {
  768. .box-shadow(0 0 3px #eee);
  769. }
  770. }
  771. .layui-layer-fast {
  772. .layui-layer-title {
  773. background: #2c3e50 !important;
  774. color: #fff !important;
  775. border-bottom: none;
  776. //只有当包含layui-layer-title标题时才显示按钮
  777. ~ .layui-layer-setwin {
  778. top: 0px;
  779. height: 42px;
  780. > a {
  781. height: 42px;
  782. line-height: 42px;
  783. display: inline-block;
  784. }
  785. }
  786. }
  787. &.layui-layer-border {
  788. border: none !important;
  789. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3) !important;
  790. }
  791. &.layui-layer-iframe {
  792. //overflow:hidden!important;
  793. overflow: visible;
  794. }
  795. .layui-layer-moves {
  796. .box-sizing(content-box);
  797. }
  798. /*自定义底部灰色操作区*/
  799. .layui-layer-btn {
  800. text-align: center !important;
  801. padding: 10px !important;
  802. background: #ecf0f1;
  803. overflow: hidden;
  804. a {
  805. background-color: #95a5a6;
  806. border-color: #95a5a6;
  807. color: #fff !important;
  808. height: 31px;
  809. margin-top: 0;
  810. border: 1px solid transparent;
  811. }
  812. .layui-layer-btn0 {
  813. background-color: #18bc9c;
  814. border-color: #18bc9c;
  815. }
  816. }
  817. .layui-layer-footer {
  818. padding: 8px 20px;
  819. background-color: #ecf0f1;
  820. height: auto;
  821. text-align: inherit !important;
  822. }
  823. .layui-layer-setwin {
  824. > a {
  825. background: none !important;
  826. cite {
  827. display: none;
  828. }
  829. &:after {
  830. content: "\e625";
  831. font-family: iconfont;
  832. font-style: normal;
  833. font-weight: normal;
  834. text-decoration: inherit;
  835. position: absolute;
  836. font-size: 18px;
  837. color: #fff;
  838. margin: 0;
  839. z-index: 1;
  840. }
  841. &:hover {
  842. text-decoration: none !important;
  843. background: none !important;
  844. }
  845. &:focus {
  846. text-decoration: none !important;
  847. }
  848. }
  849. .layui-layer-min {
  850. display: none;
  851. &:after {
  852. content: "\e625";
  853. }
  854. }
  855. .layui-layer-max {
  856. display: none;
  857. &:after {
  858. content: "\e623";
  859. }
  860. }
  861. .layui-layer-maxmin {
  862. display: none;
  863. &:after {
  864. content: "\e624";
  865. }
  866. }
  867. .layui-layer-close1 {
  868. &:after {
  869. content: "\e626";
  870. }
  871. }
  872. //样式二关闭按钮
  873. .layui-layer-close2, .layui-layer-close2:hover {
  874. background: url('../libs/fastadmin-layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  875. top: -30px;
  876. right: -30px;
  877. &:after {
  878. display: none;
  879. }
  880. }
  881. }
  882. }
  883. .layui-layer-content {
  884. clear: both;
  885. }
  886. .layui-layer-fast-msg {
  887. min-width: 100px;
  888. }
  889. .layui-layer-fast-tab {
  890. .layui-layer-title {
  891. .layui-this {
  892. color: #333;
  893. }
  894. }
  895. .layui-layer-content {
  896. .layui-layer-tabmain {
  897. margin: 0;
  898. padding: 0;
  899. }
  900. }
  901. }
  902. .n-bootstrap {
  903. .input-group > .n-right {
  904. position: absolute;
  905. }
  906. }
  907. @media (min-width: 564px) {
  908. body.is-dialog .daterangepicker {
  909. min-width: 130px;
  910. }
  911. body.is-dialog .daterangepicker .ranges ul {
  912. width: 130px;
  913. }
  914. }
  915. /*手机版样式*/
  916. @media (max-width: @screen-phone) {
  917. #firstnav {
  918. .nav-addtabs {
  919. //display: none;
  920. }
  921. .navbar-custom-menu {
  922. ul li a {
  923. padding-left: 10px;
  924. padding-right: 10px;
  925. }
  926. }
  927. .navbar-nav > .user-menu .user-image {
  928. margin-top: -3px;
  929. }
  930. }
  931. .fixed-table-toolbar {
  932. .columns-right.btn-group {
  933. display: none;
  934. }
  935. }
  936. .fixed .content-wrapper, .fixed .right-side {
  937. padding-top: 50px;
  938. }
  939. .multiplenav {
  940. .fixed .content-wrapper, .fixed .right-side {
  941. padding-top: 94px;
  942. }
  943. .content-wrapper, .right-side {
  944. padding-top: 94px;
  945. }
  946. }
  947. .main-sidebar, .left-side {
  948. padding-top: 144px;
  949. }
  950. }
  951. /*平板样式*/
  952. @media (max-width: @screen-xs-max) {
  953. body .wrapper .main-header .logo {
  954. background: none;
  955. color: #fff;
  956. border-bottom: 0 solid transparent;
  957. position: absolute;
  958. top: 0;
  959. z-index: 1200;
  960. width: 130px;
  961. left: 50%;
  962. margin-left: -65px;
  963. }
  964. body .sidebar .mobilenav a.btn-app {
  965. color: #444;
  966. width: 100px;
  967. height: 70px;
  968. font-size: 13px;
  969. i.fa {
  970. font-size: 24px;
  971. }
  972. span {
  973. margin-top: 5px;
  974. display: block;
  975. }
  976. &.active {
  977. color: #222d32;
  978. }
  979. }
  980. body .wrapper .main-header .navbar .dropdown-menu li {
  981. > a {
  982. color: #333;
  983. &:hover {
  984. background: #eee;
  985. }
  986. }
  987. &.active > a {
  988. color: #fff;
  989. &:hover {
  990. background: #222d32
  991. }
  992. }
  993. }
  994. .main-sidebar, .left-side {
  995. padding-top: 50px;
  996. }
  997. .n-bootstrap {
  998. .n-right {
  999. margin-top: 0;
  1000. top: -20px;
  1001. position: absolute;
  1002. left: 0;
  1003. text-align: right;
  1004. width: 100%;
  1005. .msg-wrap {
  1006. position: relative;
  1007. }
  1008. }
  1009. .col-xs-12 > .n-right {
  1010. .msg-wrap {
  1011. margin-right: 15px;
  1012. }
  1013. }
  1014. }
  1015. }
  1016. /*修复radio和checkbox样式对齐*/
  1017. .radio, .checkbox {
  1018. > label {
  1019. margin-right: 10px;
  1020. > input {
  1021. margin: 2px 0 0;
  1022. }
  1023. }
  1024. }
  1025. .wipecache li a {
  1026. color: #444444 !important;
  1027. }
  1028. /*修正开关关闭下的颜色值*/
  1029. .btn-switcher {
  1030. &.disabled {
  1031. opacity: .6;
  1032. cursor: not-allowed;
  1033. }
  1034. .text-gray {
  1035. color: #d2d6de !important;
  1036. }
  1037. }
  1038. .jumpto input {
  1039. height: 31px;
  1040. width: 50px;
  1041. margin-left: 5px;
  1042. margin-right: 5px;
  1043. text-align: center;
  1044. display: inline-block;
  1045. }