backend.less 27 KB

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