backend.less 27 KB

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