backend.less 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458
  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. display: block;
  598. background-color: #fff;
  599. border-top: 1px solid transparent;
  600. border-bottom: 1px solid #eee;
  601. padding: 10px 15px;
  602. color: #222d32;
  603. &:hover {
  604. background: #eee;
  605. }
  606. &:first-child {
  607. border-top: 1px solid #eee;
  608. }
  609. }
  610. }
  611. }
  612. .input-group .sp_result_area {
  613. width: 100%;
  614. }
  615. .sidebar-menu {
  616. &.show-submenu {
  617. .treeview-menu {
  618. display: block;
  619. }
  620. }
  621. > li .badge {
  622. margin-top: 0;
  623. }
  624. .treeview-menu > li > a {
  625. font-size: inherit;
  626. }
  627. }
  628. .sidebar-collapse {
  629. .user-panel > .image img {
  630. width: 25px;
  631. height: 25px;
  632. }
  633. }
  634. @media (min-width: 768px) {
  635. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  636. top: 42px;
  637. }
  638. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
  639. top: 7px !important;
  640. height: 17px;
  641. }
  642. }
  643. .fieldlist dd {
  644. display: block;
  645. margin: 5px 0;
  646. input {
  647. display: inline-block;
  648. width: 300px;
  649. }
  650. input:first-child {
  651. width: 110px;
  652. }
  653. ins {
  654. width: 110px;
  655. display: inline-block;
  656. text-decoration: none;
  657. font-weight: bold;
  658. }
  659. }
  660. /* 弹窗中的表单 */
  661. .form-layer {
  662. height: 100%;
  663. min-height: 150px;
  664. min-width: 300px;
  665. .form-body {
  666. width: 100%;
  667. overflow: auto;
  668. top: 0;
  669. position: absolute;
  670. z-index: 10;
  671. bottom: 50px;
  672. padding: 15px;
  673. }
  674. .form-footer {
  675. height: 50px;
  676. line-height: 50px;
  677. background-color: #ecf0f1;
  678. width: 100%;
  679. position: absolute;
  680. z-index: 200;
  681. bottom: 0;
  682. margin: 0;
  683. }
  684. .form-footer .form-group {
  685. margin-left: 0;
  686. margin-right: 0;
  687. }
  688. }
  689. #treeview {
  690. .jstree-container-ul .jstree-node {
  691. display: block;
  692. clear: both;
  693. }
  694. .jstree-leaf:not(:first-child) {
  695. float: left;
  696. background: none;
  697. margin-left: 0;
  698. min-width: 80px;
  699. clear: none;
  700. }
  701. .jstree-leaf {
  702. float: left;
  703. margin-left: 0;
  704. padding-left: 24px;
  705. min-width: 80px;
  706. clear: none;
  707. color: #777;
  708. }
  709. .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon {
  710. display: none;
  711. }
  712. .jstree-last {
  713. background-image: url("../img/32px.png");
  714. background-position: -292px -4px;
  715. background-repeat: repeat-y;
  716. }
  717. .jstree-children {
  718. .clearfix();
  719. }
  720. .jstree-themeicon {
  721. display: none;
  722. }
  723. }
  724. /*去除bootstrap-table的边框*/
  725. .fixed-table-container {
  726. border: none !important;
  727. tbody .selected td {
  728. background-color: rgba(216, 224, 230, .5);
  729. }
  730. .bs-checkbox {
  731. min-width: 36px;
  732. }
  733. }
  734. /*修复nice-validator新版下的一处BUG*/
  735. .nice-validator {
  736. input, select, textarea, [contenteditable] {
  737. vertical-align: top;
  738. display: inline-block;
  739. *display: inline;
  740. *zoom: 1;
  741. }
  742. }
  743. /*修复nice-validator和summernote的编辑框冲突*/
  744. .nice-validator .note-editor .note-editing-area .note-editable {
  745. display: inherit;
  746. }
  747. /*预览区域*/
  748. .plupload-preview, .faupload-preview {
  749. padding: 0 10px;
  750. margin-bottom: 0;
  751. li {
  752. margin-top: 15px;
  753. }
  754. .thumbnail {
  755. margin-bottom: 10px;
  756. }
  757. a {
  758. display: block;
  759. &:first-child {
  760. height: 90px;
  761. }
  762. img {
  763. height: 80px;
  764. object-fit: cover;
  765. }
  766. }
  767. }
  768. .pjax-loader-bar .progress {
  769. position: fixed;
  770. top: 0;
  771. left: 0;
  772. height: 2px;
  773. background: #77b6ff;
  774. box-shadow: 0 0 10px rgba(119, 182, 255, 0.7);
  775. -webkit-transition: width 0.4s ease;
  776. transition: width 0.4s ease;
  777. }
  778. .dropdown-menu.text-left {
  779. a, li {
  780. text-align: left !important;
  781. }
  782. }
  783. .bootstrap-table .fixed-table-toolbar .dropdown-menu {
  784. overflow: auto;
  785. }
  786. .bootstrap-table .fa-toggle-on.fa-2x {
  787. font-size: 1.86em;
  788. }
  789. .bootstrap-table .form-commonsearch .form-group {
  790. margin-left: 0;
  791. margin-right: 0;
  792. white-space: nowrap;
  793. }
  794. .toolbar {
  795. margin-top: 10px;
  796. margin-bottom: 10px;
  797. }
  798. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
  799. line-height: inherit;
  800. }
  801. .fixed-table-toolbar .toolbar {
  802. margin-top: 0;
  803. margin-bottom: 0;
  804. }
  805. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  806. vertical-align: middle;
  807. }
  808. .bootstrap-table td.bs-checkbox {
  809. vertical-align: middle;
  810. }
  811. table.table-nowrap {
  812. tbody > tr > td, thead > tr > th {
  813. white-space: nowrap;
  814. }
  815. }
  816. .fixed-table-container thead th .sortable {
  817. padding-right: 0;
  818. }
  819. .dropdown-submenu {
  820. position: relative;
  821. > .dropdown-menu {
  822. overflow: auto;
  823. top: 0;
  824. left: 100%;
  825. margin-top: -6px;
  826. margin-left: -1px;
  827. .border-radius(0 6px 6px 6px);
  828. }
  829. &:hover {
  830. > .dropdown-menu {
  831. display: block;
  832. }
  833. > a:after {
  834. border-left-color: #fff;
  835. }
  836. }
  837. > a:after {
  838. display: block;
  839. content: " ";
  840. float: right;
  841. width: 0;
  842. height: 0;
  843. border-color: transparent;
  844. border-style: solid;
  845. border-width: 5px 0 5px 5px;
  846. border-left-color: #ccc;
  847. margin-top: 5px;
  848. margin-right: -10px;
  849. }
  850. &.pull-left {
  851. float: none;
  852. > .dropdown-menu {
  853. left: -100%;
  854. margin-left: 10px;
  855. .border-radius(6px 0 6px 6px);
  856. }
  857. }
  858. }
  859. /*重写toast的几个背景色*/
  860. .toast-primary {
  861. background-color: #48c9b0 !important;
  862. }
  863. .toast-success {
  864. background-color: #18bc9c !important;
  865. }
  866. .toast-error {
  867. background-color: #e74c3c !important;
  868. }
  869. .toast-info {
  870. background-color: #5dade2 !important;
  871. }
  872. .toast-warning {
  873. background-color: #f1c40f !important;
  874. }
  875. .toast-inverse {
  876. background-color: #34495e !important;
  877. }
  878. .toast-default {
  879. background-color: #bdc3c7 !important;
  880. }
  881. #toast-container {
  882. > div, > div:hover {
  883. .box-shadow(0 0 3px #eee);
  884. }
  885. }
  886. .layui-layer-fast {
  887. .layui-layer-title {
  888. background: #2c3e50 !important;
  889. color: #fff !important;
  890. border-bottom: none;
  891. //只有当包含layui-layer-title标题时才显示按钮
  892. ~ .layui-layer-setwin {
  893. top: 0px;
  894. height: 42px;
  895. > a {
  896. height: 42px;
  897. line-height: 42px;
  898. display: inline-block;
  899. }
  900. }
  901. }
  902. &.layui-layer-border {
  903. border: none !important;
  904. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3) !important;
  905. }
  906. &.layui-layer-iframe {
  907. //overflow:hidden!important;
  908. overflow: visible;
  909. }
  910. .layui-layer-moves {
  911. .box-sizing(content-box);
  912. }
  913. /*自定义底部灰色操作区*/
  914. .layui-layer-btn {
  915. text-align: center !important;
  916. padding: 10px !important;
  917. background: #ecf0f1;
  918. overflow: hidden;
  919. a {
  920. background-color: #95a5a6;
  921. border-color: #95a5a6;
  922. color: #fff !important;
  923. height: 31px;
  924. margin-top: 0;
  925. border: 1px solid transparent;
  926. }
  927. .layui-layer-btn0 {
  928. background-color: #18bc9c;
  929. border-color: #18bc9c;
  930. }
  931. }
  932. .layui-layer-footer {
  933. padding: 8px 20px;
  934. background-color: #ecf0f1;
  935. height: auto;
  936. text-align: inherit !important;
  937. }
  938. .layui-layer-setwin {
  939. > a {
  940. background: none !important;
  941. cite {
  942. display: none;
  943. }
  944. &:after {
  945. content: "\e625";
  946. font-family: iconfont;
  947. font-style: normal;
  948. font-weight: normal;
  949. text-decoration: inherit;
  950. position: absolute;
  951. font-size: 18px;
  952. color: #fff;
  953. margin: 0;
  954. z-index: 1;
  955. }
  956. &:hover {
  957. text-decoration: none !important;
  958. background: none !important;
  959. }
  960. &:focus {
  961. text-decoration: none !important;
  962. }
  963. }
  964. .layui-layer-min {
  965. display: none;
  966. &:after {
  967. content: "\e625";
  968. }
  969. }
  970. .layui-layer-max {
  971. display: none;
  972. &:after {
  973. content: "\e623";
  974. }
  975. }
  976. .layui-layer-maxmin {
  977. display: none;
  978. &:after {
  979. content: "\e624";
  980. }
  981. }
  982. .layui-layer-close1 {
  983. &:after {
  984. content: "\e626";
  985. }
  986. }
  987. //样式二关闭按钮
  988. .layui-layer-close2, .layui-layer-close2:hover {
  989. background: url('../libs/fastadmin-layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  990. top: -30px;
  991. right: -30px;
  992. &:after {
  993. display: none;
  994. }
  995. }
  996. }
  997. }
  998. .layui-layer-content {
  999. clear: both;
  1000. }
  1001. .layui-layer-fast-msg {
  1002. min-width: 100px;
  1003. }
  1004. .layui-layer-fast-tab {
  1005. .layui-layer-title {
  1006. .layui-this {
  1007. color: #333;
  1008. }
  1009. }
  1010. .layui-layer-content {
  1011. .layui-layer-tabmain {
  1012. margin: 0;
  1013. padding: 0;
  1014. }
  1015. }
  1016. }
  1017. .input-group > .msg-box.n-right {
  1018. position: absolute;
  1019. }
  1020. @media (min-width: 564px) {
  1021. body.is-dialog .daterangepicker {
  1022. min-width: 130px;
  1023. }
  1024. body.is-dialog .daterangepicker .ranges ul {
  1025. width: 130px;
  1026. }
  1027. }
  1028. /*手机版样式*/
  1029. @media (max-width: @screen-phone) {
  1030. #firstnav {
  1031. .nav-addtabs {
  1032. //display: none;
  1033. }
  1034. .navbar-custom-menu {
  1035. ul li a {
  1036. padding-left: 10px;
  1037. padding-right: 10px;
  1038. }
  1039. }
  1040. .navbar-nav > .user-menu .user-image {
  1041. margin-top: -3px;
  1042. }
  1043. }
  1044. .fixed-table-toolbar {
  1045. > .bs-bars {
  1046. float: none !important;
  1047. }
  1048. .toolbar {
  1049. a.btn-refresh, a.btn-del, a.btn-add, a.btn-edit, a.btn-import, a.btn-more, a.btn-recyclebin, .btn-mini-xs {
  1050. font-size: 0;
  1051. .fa {
  1052. font-size: initial;
  1053. }
  1054. }
  1055. }
  1056. .search {
  1057. max-width: 110px;
  1058. float: left !important;
  1059. }
  1060. }
  1061. .fixed .content-wrapper, .fixed .right-side {
  1062. padding-top: 50px;
  1063. }
  1064. .main-sidebar, .left-side {
  1065. padding-top: 144px;
  1066. }
  1067. }
  1068. /*平板样式*/
  1069. @media (max-width: @screen-xs-max) {
  1070. .wrapper .main-header .logo {
  1071. border-bottom: 0 solid transparent;
  1072. position: absolute;
  1073. top: 0;
  1074. z-index: 1200;
  1075. width: 130px;
  1076. left: 50%;
  1077. margin-left: -65px;
  1078. }
  1079. .sidebar .mobilenav a.btn-app {
  1080. color: #444;
  1081. width: 100px;
  1082. height: 70px;
  1083. font-size: 13px;
  1084. border: none;
  1085. background: #fff;
  1086. i.fa {
  1087. font-size: 24px;
  1088. display: inline-block;
  1089. }
  1090. span {
  1091. margin-top: 5px;
  1092. display: block;
  1093. }
  1094. &.active {
  1095. color: #222d32;
  1096. }
  1097. }
  1098. .wrapper .main-header .navbar .dropdown-menu li {
  1099. > a {
  1100. color: #333;
  1101. &:hover {
  1102. background: #eee;
  1103. }
  1104. }
  1105. &.active > a {
  1106. color: #fff;
  1107. &:hover {
  1108. background: #222d32
  1109. }
  1110. }
  1111. }
  1112. .main-sidebar, .left-side {
  1113. padding-top: 50px;
  1114. }
  1115. .multipletab.multiplenav {
  1116. .main-sidebar {
  1117. padding-top: 95px;
  1118. }
  1119. }
  1120. .n-bootstrap {
  1121. .n-right {
  1122. margin-top: 0;
  1123. top: -20px;
  1124. position: absolute;
  1125. left: 0;
  1126. text-align: right;
  1127. width: 100%;
  1128. .msg-wrap {
  1129. position: relative;
  1130. }
  1131. }
  1132. .col-xs-12 > .n-right {
  1133. .msg-wrap {
  1134. margin-right: 15px;
  1135. }
  1136. }
  1137. }
  1138. }
  1139. /*修复radio和checkbox样式对齐*/
  1140. .radio, .checkbox {
  1141. > label {
  1142. margin-right: 10px;
  1143. > input {
  1144. margin: 2px 0 0;
  1145. }
  1146. }
  1147. }
  1148. .wipecache li a {
  1149. color: #444444 !important;
  1150. }
  1151. /*修正开关关闭下的颜色值*/
  1152. .btn-switcher {
  1153. &.disabled {
  1154. opacity: .6;
  1155. cursor: not-allowed;
  1156. }
  1157. .text-gray {
  1158. color: #d2d6de !important;
  1159. }
  1160. }
  1161. .jumpto input {
  1162. height: 31px;
  1163. width: 50px;
  1164. margin-left: 5px;
  1165. margin-right: 5px;
  1166. text-align: center;
  1167. display: inline-block;
  1168. }
  1169. .fixed-columns, .fixed-columns-right {
  1170. position: absolute;
  1171. top: 0;
  1172. height: 100%;
  1173. min-height: 41px;
  1174. background-color: #fff;
  1175. box-sizing: border-box;
  1176. z-index: 2;
  1177. box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
  1178. .fixed-table-body {
  1179. min-height: 41px;
  1180. overflow-x: hidden !important
  1181. }
  1182. }
  1183. .fixed-columns {
  1184. left: 0;
  1185. }
  1186. .fixed-columns-right {
  1187. right: 0;
  1188. box-shadow: -1px 0 8px rgba(0, 0, 0, .08);
  1189. }
  1190. .fix-sticky {
  1191. position: fixed;
  1192. z-index: 100;
  1193. thead {
  1194. background: #fff;
  1195. th, th:first-child {
  1196. border-left: 0;
  1197. border-right: 0;
  1198. border-bottom: 1px solid #eee;
  1199. border-radius: 0;
  1200. }
  1201. }
  1202. }
  1203. .sidebar-menu li.treeview-open > a > .fa-angle-left, .sidebar-menu li.treeview-open > a > .pull-right-container > .fa-angle-left {
  1204. -webkit-transform: rotate(-90deg);
  1205. -ms-transform: rotate(-90deg);
  1206. -o-transform: rotate(-90deg);
  1207. transform: rotate(-90deg);
  1208. }