backend.less 21 KB

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