backend.less 21 KB

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