backend.less 26 KB

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