backend.less 26 KB

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