backend.less 27 KB

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