backend.less 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  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. #firstnav {
  400. height: 50px;
  401. border-bottom: 1px solid transparent;
  402. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  403. position: relative;
  404. .sidebar-toggle {
  405. position: absolute;
  406. width: 45px;
  407. text-align: center;
  408. height: 50px;
  409. line-height: 50px;
  410. padding: 0;
  411. }
  412. .nav-addtabs {
  413. position: absolute;
  414. left: 45px;
  415. z-index: 98;
  416. }
  417. .navbar-custom-menu {
  418. position: absolute;
  419. top: 0;
  420. right: 0;
  421. z-index: 99;
  422. background: transparent;
  423. }
  424. }
  425. /*次栏菜单栏*/
  426. #secondnav {
  427. display: none;
  428. height: 44px;
  429. position: absolute;
  430. top: 50px;
  431. left: 0;
  432. background: #fff;
  433. width: 100%;
  434. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  435. padding: 5px 10px;
  436. -webkit-user-select: none;
  437. -moz-user-select: none;
  438. user-select: none;
  439. .nav-addtabs {
  440. height: 100%;
  441. &.disable-top-badge {
  442. > li > a > .pull-right-container {
  443. display: none;
  444. }
  445. }
  446. border: none;
  447. > li {
  448. border: 1px solid #eee;
  449. border-radius: 3px;
  450. padding: 0 15px;
  451. height: 30px;
  452. line-height: 30px;
  453. margin: 2px 5px 2px 0;
  454. background: #fff;
  455. > a {
  456. display: block;
  457. color: #495060 !important;
  458. height: 100%;
  459. padding: 0;
  460. line-height: 28px;
  461. font-size: 12px;
  462. vertical-align: middle;
  463. opacity: 1;
  464. overflow: hidden;
  465. background: none;
  466. border: none;
  467. }
  468. &.active {
  469. border-color: #bdbebd;
  470. background-color: #f7f7f7;
  471. }
  472. .close-tab {
  473. font-size: 10px;
  474. position: absolute;
  475. right: 0px;
  476. top: 50%;
  477. margin-top: -8px;
  478. z-index: 100;
  479. cursor: pointer;
  480. color: #eee;
  481. &:before {
  482. content: "\e626";
  483. font-family: iconfont;
  484. font-style: normal;
  485. font-weight: normal;
  486. text-decoration: inherit;
  487. font-size: 18px;
  488. }
  489. }
  490. &:hover, &:focus {
  491. border-color: #bdbebd;
  492. }
  493. }
  494. ul li {
  495. position: relative;
  496. }
  497. li:hover > .close-tab {
  498. display: block;
  499. border-color: #222e32;
  500. color: #222e32
  501. }
  502. }
  503. }
  504. .multiplenav {
  505. .content-wrapper, .right-side {
  506. padding-top: 50px;
  507. }
  508. #firstnav .nav-addtabs {
  509. padding-right: 450px;
  510. }
  511. }
  512. .multipletab {
  513. #secondnav {
  514. display: block;
  515. }
  516. &.multiplenav {
  517. .content-wrapper, .right-side {
  518. padding-top: 94px;
  519. }
  520. }
  521. }
  522. .main-sidebar .sidebar-form {
  523. overflow: visible;
  524. .menuresult {
  525. z-index: 999;
  526. position: absolute;
  527. top: 34px;
  528. left: -1px;
  529. width: 100%;
  530. max-height: 250px;
  531. overflow: auto;
  532. margin: 0;
  533. border-top: none;
  534. border-top-left-radius: 0;
  535. border-top-right-radius: 0;
  536. a {
  537. border-top: 1px solid #eee;
  538. display: block;
  539. background-color: #fff;
  540. border-bottom: 1px solid #eee;
  541. margin-bottom: -1px;
  542. display: block;
  543. padding: 10px 15px;
  544. color: #222d32;
  545. &:hover {
  546. background: #eee;
  547. }
  548. }
  549. }
  550. }
  551. .input-group .sp_result_area {
  552. width: 100%;
  553. }
  554. .sidebar-menu {
  555. &.show-submenu {
  556. .treeview-menu {
  557. display: block;
  558. }
  559. }
  560. > li .badge {
  561. margin-top: 0;
  562. }
  563. .treeview-menu > li > a {
  564. font-size: inherit;
  565. }
  566. }
  567. .sidebar-collapse {
  568. .user-panel > .image img {
  569. width: 25px;
  570. height: 25px;
  571. }
  572. }
  573. @media (min-width: 768px) {
  574. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  575. top: 41px;
  576. }
  577. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
  578. top: 7px !important;
  579. height: 17px;
  580. }
  581. }
  582. .fieldlist dd {
  583. display: block;
  584. margin: 5px 0;
  585. input {
  586. display: inline-block;
  587. width: 300px;
  588. }
  589. input:first-child {
  590. width: 110px;
  591. }
  592. ins {
  593. width: 110px;
  594. display: inline-block;
  595. text-decoration: none;
  596. font-weight: bold;
  597. }
  598. }
  599. /* 弹窗中的表单 */
  600. .form-layer {
  601. height: 100%;
  602. min-height: 150px;
  603. min-width: 300px;
  604. .form-body {
  605. width: 100%;
  606. overflow: auto;
  607. top: 0;
  608. position: absolute;
  609. z-index: 10;
  610. bottom: 50px;
  611. padding: 15px;
  612. }
  613. .form-footer {
  614. height: 50px;
  615. line-height: 50px;
  616. background-color: #ecf0f1;
  617. width: 100%;
  618. position: absolute;
  619. z-index: 200;
  620. bottom: 0;
  621. margin: 0;
  622. }
  623. .form-footer .form-group {
  624. margin-left: 0;
  625. margin-right: 0;
  626. }
  627. }
  628. #treeview {
  629. .jstree-container-ul .jstree-node {
  630. display: block;
  631. clear: both;
  632. }
  633. .jstree-leaf:not(:first-child) {
  634. float: left;
  635. background: none;
  636. margin-left: 0;
  637. min-width: 80px;
  638. clear: none;
  639. }
  640. .jstree-leaf {
  641. float: left;
  642. margin-left: 0;
  643. padding-left: 24px;
  644. min-width: 80px;
  645. clear: none;
  646. color: #777;
  647. }
  648. .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon {
  649. display: none;
  650. }
  651. .jstree-last {
  652. background-image: url("../img/32px.png");
  653. background-position: -292px -4px;
  654. background-repeat: repeat-y;
  655. }
  656. .jstree-children {
  657. .clearfix();
  658. }
  659. .jstree-themeicon {
  660. display: none;
  661. }
  662. }
  663. /*去除bootstrap-table的边框*/
  664. .fixed-table-container {
  665. border: none !important;
  666. tbody .selected td {
  667. background-color: rgba(216, 224, 230, .5);
  668. }
  669. .bs-checkbox {
  670. min-width: 36px;
  671. }
  672. }
  673. /*修复nice-validator新版下的一处BUG*/
  674. .nice-validator {
  675. input, select, textarea, [contenteditable] {
  676. vertical-align: top;
  677. display: inline-block;
  678. *display: inline;
  679. *zoom: 1;
  680. }
  681. }
  682. /*修复nice-validator和summernote的编辑框冲突*/
  683. .nice-validator .note-editor .note-editing-area .note-editable {
  684. display: inherit;
  685. }
  686. /*预览区域*/
  687. .plupload-preview, .faupload-preview {
  688. padding: 0 10px;
  689. margin-bottom: 0;
  690. li {
  691. margin-top: 15px;
  692. }
  693. .thumbnail {
  694. margin-bottom: 10px;
  695. }
  696. a {
  697. display: block;
  698. &:first-child {
  699. height: 90px;
  700. }
  701. img {
  702. height: 80px;
  703. object-fit: cover;
  704. }
  705. }
  706. }
  707. .pjax-loader-bar .progress {
  708. position: fixed;
  709. top: 0;
  710. left: 0;
  711. height: 2px;
  712. background: #77b6ff;
  713. box-shadow: 0 0 10px rgba(119, 182, 255, 0.7);
  714. -webkit-transition: width 0.4s ease;
  715. transition: width 0.4s ease;
  716. }
  717. .dropdown-menu.text-left {
  718. a, li {
  719. text-align: left !important;
  720. }
  721. }
  722. .bootstrap-table .fixed-table-toolbar .dropdown-menu {
  723. overflow: auto;
  724. }
  725. .bootstrap-table .fa-toggle-on.fa-2x {
  726. font-size: 1.86em;
  727. }
  728. .bootstrap-table .form-commonsearch .form-group {
  729. margin-left: 0;
  730. margin-right: 0;
  731. white-space: nowrap;
  732. }
  733. .toolbar {
  734. margin-top: 10px;
  735. margin-bottom: 10px;
  736. }
  737. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
  738. line-height: inherit;
  739. }
  740. .fixed-table-toolbar .toolbar {
  741. margin-top: 0;
  742. margin-bottom: 0;
  743. }
  744. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  745. vertical-align: middle;
  746. }
  747. .bootstrap-table td.bs-checkbox {
  748. vertical-align: middle;
  749. }
  750. table.table-nowrap {
  751. tbody > tr > td, thead > tr > th {
  752. white-space: nowrap;
  753. }
  754. }
  755. .fixed-table-container thead th .sortable {
  756. padding-right: 0;
  757. }
  758. .dropdown-submenu {
  759. position: relative;
  760. > .dropdown-menu {
  761. overflow: auto;
  762. top: 0;
  763. left: 100%;
  764. margin-top: -6px;
  765. margin-left: -1px;
  766. .border-radius(0 6px 6px 6px);
  767. }
  768. &:hover {
  769. > .dropdown-menu {
  770. display: block;
  771. }
  772. > a:after {
  773. border-left-color: #fff;
  774. }
  775. }
  776. > a:after {
  777. display: block;
  778. content: " ";
  779. float: right;
  780. width: 0;
  781. height: 0;
  782. border-color: transparent;
  783. border-style: solid;
  784. border-width: 5px 0 5px 5px;
  785. border-left-color: #ccc;
  786. margin-top: 5px;
  787. margin-right: -10px;
  788. }
  789. &.pull-left {
  790. float: none;
  791. > .dropdown-menu {
  792. left: -100%;
  793. margin-left: 10px;
  794. .border-radius(6px 0 6px 6px);
  795. }
  796. }
  797. }
  798. /*重写toast的几个背景色*/
  799. .toast-primary {
  800. background-color: #48c9b0 !important;
  801. }
  802. .toast-success {
  803. background-color: #18bc9c !important;
  804. }
  805. .toast-error {
  806. background-color: #e74c3c !important;
  807. }
  808. .toast-info {
  809. background-color: #5dade2 !important;
  810. }
  811. .toast-warning {
  812. background-color: #f1c40f !important;
  813. }
  814. .toast-inverse {
  815. background-color: #34495e !important;
  816. }
  817. .toast-default {
  818. background-color: #bdc3c7 !important;
  819. }
  820. #toast-container {
  821. > div, > div:hover {
  822. .box-shadow(0 0 3px #eee);
  823. }
  824. }
  825. .layui-layer-fast {
  826. .layui-layer-title {
  827. background: #2c3e50 !important;
  828. color: #fff !important;
  829. border-bottom: none;
  830. //只有当包含layui-layer-title标题时才显示按钮
  831. ~ .layui-layer-setwin {
  832. top: 0px;
  833. height: 42px;
  834. > a {
  835. height: 42px;
  836. line-height: 42px;
  837. display: inline-block;
  838. }
  839. }
  840. }
  841. &.layui-layer-border {
  842. border: none !important;
  843. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3) !important;
  844. }
  845. &.layui-layer-iframe {
  846. //overflow:hidden!important;
  847. overflow: visible;
  848. }
  849. .layui-layer-moves {
  850. .box-sizing(content-box);
  851. }
  852. /*自定义底部灰色操作区*/
  853. .layui-layer-btn {
  854. text-align: center !important;
  855. padding: 10px !important;
  856. background: #ecf0f1;
  857. overflow: hidden;
  858. a {
  859. background-color: #95a5a6;
  860. border-color: #95a5a6;
  861. color: #fff !important;
  862. height: 31px;
  863. margin-top: 0;
  864. border: 1px solid transparent;
  865. }
  866. .layui-layer-btn0 {
  867. background-color: #18bc9c;
  868. border-color: #18bc9c;
  869. }
  870. }
  871. .layui-layer-footer {
  872. padding: 8px 20px;
  873. background-color: #ecf0f1;
  874. height: auto;
  875. text-align: inherit !important;
  876. }
  877. .layui-layer-setwin {
  878. > a {
  879. background: none !important;
  880. cite {
  881. display: none;
  882. }
  883. &:after {
  884. content: "\e625";
  885. font-family: iconfont;
  886. font-style: normal;
  887. font-weight: normal;
  888. text-decoration: inherit;
  889. position: absolute;
  890. font-size: 18px;
  891. color: #fff;
  892. margin: 0;
  893. z-index: 1;
  894. }
  895. &:hover {
  896. text-decoration: none !important;
  897. background: none !important;
  898. }
  899. &:focus {
  900. text-decoration: none !important;
  901. }
  902. }
  903. .layui-layer-min {
  904. display: none;
  905. &:after {
  906. content: "\e625";
  907. }
  908. }
  909. .layui-layer-max {
  910. display: none;
  911. &:after {
  912. content: "\e623";
  913. }
  914. }
  915. .layui-layer-maxmin {
  916. display: none;
  917. &:after {
  918. content: "\e624";
  919. }
  920. }
  921. .layui-layer-close1 {
  922. &:after {
  923. content: "\e626";
  924. }
  925. }
  926. //样式二关闭按钮
  927. .layui-layer-close2, .layui-layer-close2:hover {
  928. background: url('../libs/fastadmin-layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  929. top: -30px;
  930. right: -30px;
  931. &:after {
  932. display: none;
  933. }
  934. }
  935. }
  936. }
  937. .layui-layer-content {
  938. clear: both;
  939. }
  940. .layui-layer-fast-msg {
  941. min-width: 100px;
  942. }
  943. .layui-layer-fast-tab {
  944. .layui-layer-title {
  945. .layui-this {
  946. color: #333;
  947. }
  948. }
  949. .layui-layer-content {
  950. .layui-layer-tabmain {
  951. margin: 0;
  952. padding: 0;
  953. }
  954. }
  955. }
  956. .input-group > .msg-box.n-right {
  957. position: absolute;
  958. }
  959. @media (min-width: 564px) {
  960. body.is-dialog .daterangepicker {
  961. min-width: 130px;
  962. }
  963. body.is-dialog .daterangepicker .ranges ul {
  964. width: 130px;
  965. }
  966. }
  967. /*手机版样式*/
  968. @media (max-width: @screen-phone) {
  969. #firstnav {
  970. .nav-addtabs {
  971. //display: none;
  972. }
  973. .navbar-custom-menu {
  974. ul li a {
  975. padding-left: 10px;
  976. padding-right: 10px;
  977. }
  978. }
  979. .navbar-nav > .user-menu .user-image {
  980. margin-top: -3px;
  981. }
  982. }
  983. .fixed-table-toolbar {
  984. .columns-right.btn-group {
  985. display: none;
  986. }
  987. }
  988. .fixed .content-wrapper, .fixed .right-side {
  989. padding-top: 50px;
  990. }
  991. .multiplenav {
  992. .fixed .content-wrapper, .fixed .right-side {
  993. padding-top: 94px;
  994. }
  995. .content-wrapper, .right-side {
  996. padding-top: 94px;
  997. }
  998. }
  999. .main-sidebar, .left-side {
  1000. padding-top: 144px;
  1001. }
  1002. }
  1003. /*平板样式*/
  1004. @media (max-width: @screen-xs-max) {
  1005. body .wrapper .main-header .logo {
  1006. background: none;
  1007. color: #fff;
  1008. border-bottom: 0 solid transparent;
  1009. position: absolute;
  1010. top: 0;
  1011. z-index: 1200;
  1012. width: 130px;
  1013. left: 50%;
  1014. margin-left: -65px;
  1015. }
  1016. body .sidebar .mobilenav a.btn-app {
  1017. color: #444;
  1018. width: 100px;
  1019. height: 70px;
  1020. font-size: 13px;
  1021. i.fa {
  1022. font-size: 24px;
  1023. }
  1024. span {
  1025. margin-top: 5px;
  1026. display: block;
  1027. }
  1028. &.active {
  1029. color: #222d32;
  1030. }
  1031. }
  1032. body .wrapper .main-header .navbar .dropdown-menu li {
  1033. > a {
  1034. color: #333;
  1035. &:hover {
  1036. background: #eee;
  1037. }
  1038. }
  1039. &.active > a {
  1040. color: #fff;
  1041. &:hover {
  1042. background: #222d32
  1043. }
  1044. }
  1045. }
  1046. .main-sidebar, .left-side {
  1047. padding-top: 50px;
  1048. }
  1049. .n-bootstrap {
  1050. .n-right {
  1051. margin-top: 0;
  1052. top: -20px;
  1053. position: absolute;
  1054. left: 0;
  1055. text-align: right;
  1056. width: 100%;
  1057. .msg-wrap {
  1058. position: relative;
  1059. }
  1060. }
  1061. .col-xs-12 > .n-right {
  1062. .msg-wrap {
  1063. margin-right: 15px;
  1064. }
  1065. }
  1066. }
  1067. }
  1068. /*修复radio和checkbox样式对齐*/
  1069. .radio, .checkbox {
  1070. > label {
  1071. margin-right: 10px;
  1072. > input {
  1073. margin: 2px 0 0;
  1074. }
  1075. }
  1076. }
  1077. .wipecache li a {
  1078. color: #444444 !important;
  1079. }
  1080. /*修正开关关闭下的颜色值*/
  1081. .btn-switcher {
  1082. &.disabled {
  1083. opacity: .6;
  1084. cursor: not-allowed;
  1085. }
  1086. .text-gray {
  1087. color: #d2d6de !important;
  1088. }
  1089. }
  1090. .jumpto input {
  1091. height: 31px;
  1092. width: 50px;
  1093. margin-left: 5px;
  1094. margin-right: 5px;
  1095. text-align: center;
  1096. display: inline-block;
  1097. }
  1098. .fixed-columns, .fixed-columns-right {
  1099. position: absolute;
  1100. top: 0;
  1101. height: 100%;
  1102. background-color: #fff;
  1103. box-sizing: border-box;
  1104. z-index: 1;
  1105. box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
  1106. }
  1107. .fixed-columns {
  1108. left: 0;
  1109. .fixed-table-body {
  1110. overflow: hidden !important
  1111. }
  1112. }
  1113. .fixed-columns-right {
  1114. right: 0;
  1115. box-shadow: -1px 0 8px rgba(0, 0, 0, .08);
  1116. .fixed-table-body {
  1117. overflow-x: hidden !important
  1118. }
  1119. }
  1120. .fix-sticky {
  1121. position: fixed;
  1122. z-index: 100;
  1123. thead {
  1124. background: #fff;
  1125. th, th:first-child {
  1126. border-left: 0;
  1127. border-right: 0;
  1128. border-bottom: 1px solid #eee;
  1129. border-radius: 0;
  1130. }
  1131. }
  1132. }
  1133. .sidebar-menu li.treeview-open > a > .fa-angle-left, .sidebar-menu li.treeview-open > a > .pull-right-container > .fa-angle-left {
  1134. -webkit-transform: rotate(-90deg);
  1135. -ms-transform: rotate(-90deg);
  1136. -o-transform: rotate(-90deg);
  1137. transform: rotate(-90deg);
  1138. }