backend.less 28 KB

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