backend.less 22 KB

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