backend.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857
  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.min.css");
  7. @import url("../css/fastadmin.min.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/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/fastadmin-selectpage/selectpage.css");
  18. @main-bg: #f1f4f6;
  19. @panel-intro-bg: darken(@main-bg,3%);
  20. @panel-nav-bg: #fff;
  21. body {
  22. background:#f1f4f6;
  23. }
  24. body.is-dialog {
  25. background:#fff;
  26. }
  27. .selection {
  28. position: absolute;
  29. border: 1px solid #8B9;
  30. background-color: #BEC;
  31. }
  32. .main-header {
  33. .logo,.navbar {
  34. .transition(none);
  35. }
  36. .navbar{
  37. position:relative;
  38. .sidebar-toggle{
  39. position:absolute;
  40. width:45px;
  41. text-align: center;
  42. }
  43. #nav{
  44. position:absolute;
  45. left:45px;
  46. }
  47. .navbar-custom-menu {
  48. position:absolute;
  49. right:0;
  50. }
  51. }
  52. }
  53. .bootstrap-dialog .modal-dialog {
  54. /*width: 70%;*/
  55. max-width:885px;
  56. }
  57. /*iOS兼容*/
  58. html.ios-fix,html.ios-fix body {
  59. height: 100%;
  60. overflow: auto;
  61. -webkit-overflow-scrolling: touch;
  62. }
  63. .content {
  64. min-height:500px;
  65. }
  66. #header {
  67. background: #fff;
  68. box-shadow: 0 2px 2px rgba(0,0,0,.05),0 1px 0 rgba(0,0,0,.05);
  69. }
  70. .content-wrapper {
  71. position:relative;
  72. }
  73. .control-relative{
  74. position:relative;
  75. }
  76. .tab-addtabs {
  77. overflow: hidden;
  78. .tab-pane {
  79. height: 100%;
  80. width: 100%;
  81. }
  82. }
  83. .row-between{
  84. .col-xs-6 + .col-xs-6:before {
  85. content: "-";
  86. position: absolute;
  87. left: -2%;
  88. top: 6px;
  89. }
  90. }
  91. @media only screen and (min-width : 481px) {
  92. .row-flex {
  93. display: flex;
  94. flex-wrap: wrap;
  95. }
  96. .row-flex > [class*='col-'] {
  97. display: flex;
  98. flex-direction: column;
  99. }
  100. .row-flex.row:after,
  101. .row-flex.row:before {
  102. display: flex;
  103. }
  104. }
  105. @media (max-width: 991px){
  106. .main-header .navbar-custom-menu a{
  107. &.btn-danger {
  108. color:#fff;
  109. background-color: @brand-danger;
  110. }
  111. &.btn-primary {
  112. color:#fff;
  113. background-color: @brand-primary;
  114. }
  115. }
  116. }
  117. .common-search-table {
  118. min-height: 20px;
  119. padding: 15px;
  120. margin-bottom: 15px;
  121. background-color: #f5f5f5;
  122. }
  123. .searchit{
  124. border-bottom:1px dashed @link-color;
  125. }
  126. /* 固定的底部按钮 */
  127. .fixed-footer {
  128. position: fixed;
  129. bottom:0;
  130. background-color: #ecf0f1;
  131. width:100%;
  132. margin-bottom:0;
  133. padding:10px;
  134. }
  135. /* 包裹在layer外层 */
  136. .layer-footer {
  137. display:none;
  138. }
  139. table.table-template{
  140. overflow:hidden;
  141. }
  142. .sp_container .msg-box{
  143. position: absolute;
  144. right: 0;
  145. top: 0;
  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. .img-center {
  162. margin:0 auto;
  163. display: inline;
  164. float:none;
  165. }
  166. /*
  167. * RIBBON
  168. */
  169. #ribbon {
  170. overflow:hidden;
  171. padding: 15px 15px 0 15px;
  172. position: relative;
  173. a {
  174. color: #777 !important;
  175. text-decoration: none !important;
  176. }
  177. .breadcrumb {
  178. display: inline-block;
  179. margin: 0;
  180. padding: 0;
  181. background: none;
  182. vertical-align: top;
  183. }
  184. .breadcrumb > .active,
  185. .breadcrumb li {
  186. color: #aaa;
  187. }
  188. .shortcut {
  189. a{
  190. margin-left:10px;
  191. }
  192. }
  193. }
  194. .is-dialog {
  195. #main {
  196. background:#fff;
  197. }
  198. }
  199. form.form-horizontal .control-label {
  200. font-weight: normal;
  201. }
  202. .user-panel > .image img{
  203. width:45px;
  204. height:45px;
  205. }
  206. /*panel扩展描述样式*/
  207. .panel-intro {
  208. margin-bottom:0;
  209. border:none;
  210. > .panel-heading {
  211. padding:15px;
  212. padding-bottom:0;
  213. background:@panel-intro-bg;
  214. border-color:@panel-intro-bg;
  215. position:relative;
  216. .panel-lead {
  217. margin-bottom:15px;
  218. em {
  219. display: block;
  220. font-weight: bold;
  221. font-style:normal;
  222. }
  223. }
  224. .panel-title {
  225. height:25px;
  226. font-weight: normal;
  227. white-space: nowrap;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. }
  231. .panel-control {
  232. height: 42px;
  233. position:absolute;
  234. top:8px;
  235. right:8px;
  236. .fa {
  237. font-size:14px;
  238. }
  239. }
  240. .nav-tabs {
  241. border-bottom:0;
  242. margin-bottom:0;
  243. }
  244. .nav-tabs > li > a{
  245. margin-right:4px;
  246. color: #95a5a6;
  247. background-color: darken(@panel-intro-bg, 5%);
  248. border: 1px solid @panel-intro-bg;
  249. border-bottom-color: transparent;
  250. }
  251. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus{
  252. border: 1px solid @panel-intro-bg;
  253. color: #7b8a8b;
  254. background-color: darken(@panel-intro-bg, 10%);
  255. }
  256. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  257. color: #7b8a8b;
  258. background-color: #ffffff;
  259. border-bottom-color: transparent;
  260. cursor: default;
  261. }
  262. }
  263. }
  264. /*单表格*/
  265. .panel-tabs {
  266. .panel-heading {
  267. padding:12px 15px 12px 15px;
  268. .panel-lead {
  269. margin-bottom:0px;
  270. }
  271. .panel-title {
  272. }
  273. }
  274. }
  275. /*选项卡*/
  276. .panel-nav {
  277. .panel-heading {
  278. padding:0px;
  279. padding-bottom:0;
  280. background:@main-bg;
  281. border-color:@main-bg;
  282. }
  283. .nav-tabs > li > a{
  284. padding: 12px 15px;
  285. background-color: @panel-intro-bg;
  286. border: 1px solid @main-bg;
  287. }
  288. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus{
  289. border: 1px solid @panel-intro-bg;
  290. background-color: @panel-intro-bg;
  291. }
  292. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  293. border-color: @main-bg;
  294. border-bottom-color: transparent;
  295. }
  296. }
  297. /*顶栏addtabs*/
  298. .nav-addtabs{
  299. &.disable-top-badge {
  300. > li > a > .pull-right-container{
  301. display:none;
  302. }
  303. }
  304. border:none;
  305. > li{
  306. margin:0;
  307. > a{
  308. height:49px;
  309. line-height:49px;
  310. padding:0 15px;
  311. border-radius:0;
  312. border:none;
  313. border-right:1px solid rgba(0, 0, 0, 0.05);
  314. margin:0;
  315. color:#95a5a6;
  316. &:hover, &:focus{
  317. border:none;
  318. color:#2c3e50;
  319. border-right:1px solid rgba(0, 0, 0, 0.05);
  320. }
  321. i{
  322. margin-right:3px;
  323. }
  324. }
  325. &.active > a{
  326. height:49px;line-height:49px;
  327. padding:0 15px;
  328. border-radius:0;
  329. border:none;
  330. border-right:1px solid rgba(0, 0, 0, 0.05);
  331. background:#f1f4f6;
  332. color:#2c3e50;
  333. overflow:hidden;
  334. &:hover, &:focus{
  335. border:none;
  336. color:#2c3e50;
  337. border-right:1px solid rgba(0, 0, 0, 0.05);
  338. background:#f1f4f6;
  339. }
  340. }
  341. .close-tab {
  342. font-size: 10px;
  343. position:absolute;
  344. right: 5px;
  345. top: 50%;
  346. margin-top:-7px;
  347. z-index: 100;
  348. cursor: hand;
  349. cursor: pointer;
  350. color: #fff;
  351. display:none;
  352. }
  353. }
  354. .open > a{
  355. &:hover,&:focus{
  356. border-right:1px solid rgba(0, 0, 0, 0.05);
  357. }
  358. }
  359. ul li {
  360. position:relative;
  361. }
  362. li:hover > .close-tab {
  363. display:block;
  364. }
  365. }
  366. .main-sidebar .sidebar-form {
  367. overflow:visible;
  368. .menuresult {
  369. z-index:999;
  370. position: absolute;
  371. top:34px;
  372. left:-1px;
  373. width:100%;
  374. max-height:250px;
  375. overflow:auto;
  376. margin:0;
  377. border-top:none;
  378. border-top-left-radius:0;
  379. border-top-right-radius:0;
  380. a {
  381. border-top:1px solid #eee;
  382. display: block;
  383. background-color: #fff;
  384. border-bottom:1px solid #eee;
  385. margin-bottom:-1px;
  386. display:block;
  387. padding: 10px 15px;
  388. color:#222d32;
  389. &:hover{
  390. background:#eee;
  391. }
  392. }
  393. }
  394. }
  395. .input-group .sp_result_area {
  396. width:100%;
  397. }
  398. .sidebar-menu{
  399. &.show-submenu {
  400. .treeview-menu {
  401. display: block;
  402. }
  403. }
  404. > li .badge {
  405. margin-top:0;
  406. }
  407. }
  408. .sidebar-collapse {
  409. .user-panel > .image img{
  410. width:25px;
  411. height:25px;
  412. }
  413. }
  414. @media (min-width: 768px){
  415. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  416. top: 41px;
  417. }
  418. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
  419. top: 7px!important;
  420. height: 17px;
  421. }
  422. }
  423. .fieldlist dd {
  424. display:block;margin:5px 0;
  425. input{display: inline-block;width:300px;}
  426. input:first-child{width:110px;}
  427. ins{width:110px;display: inline-block;text-decoration:none;font-weight: bold;}
  428. }
  429. /* 弹窗中的表单 */
  430. .form-layer {
  431. height:100%;min-height:150px;min-width:300px;
  432. .form-body {
  433. width:100%;
  434. overflow:auto;
  435. top:0;
  436. position:absolute;
  437. z-index:10;
  438. bottom:50px;
  439. padding:15px;
  440. }
  441. .form-footer {
  442. height:50px;
  443. line-height:50px;
  444. background-color: #ecf0f1;
  445. width:100%;
  446. position:absolute;
  447. z-index:200;
  448. bottom:0;
  449. margin:0;
  450. }
  451. .form-footer .form-group{
  452. margin-left:0;
  453. margin-right:0;
  454. }
  455. }
  456. #treeview {
  457. .jstree-container-ul .jstree-node{
  458. display:block;clear:both;
  459. }
  460. .jstree-leaf:not(:first-child) {
  461. float:left;
  462. background:none;
  463. margin-left:0;
  464. width:80px;
  465. clear:none;
  466. }
  467. .jstree-leaf {
  468. float:left;
  469. margin-left:0;padding-left:24px;
  470. width:80px;
  471. clear:none;
  472. color:#777;
  473. }
  474. .jstree-leaf > .jstree-icon,.jstree-leaf .jstree-themeicon{
  475. display:none;
  476. }
  477. .jstree-last{
  478. background-image: url("../img/32px.png");
  479. background-position: -292px -4px;
  480. background-repeat: repeat-y;
  481. }
  482. .jstree-children {
  483. .clearfix();
  484. }
  485. .jstree-themeicon {
  486. display: none;
  487. }
  488. }
  489. /*去除bootstrap-table的边框*/
  490. .fixed-table-container {
  491. border:none!important;
  492. }
  493. /*修复nice-validator新版下的一处BUG*/
  494. .nice-validator {
  495. input, select, textarea, [contenteditable]{
  496. display: inline-block;
  497. *display: inline;
  498. *zoom: 1;
  499. }
  500. }
  501. /*修复nice-validator和summernote的编辑框冲突*/
  502. .nice-validator .note-editor .note-editing-area .note-editable{
  503. display:inherit;
  504. }
  505. /*预览区域*/
  506. .plupload-preview {
  507. padding:0 10px;
  508. margin-bottom:0;
  509. li {
  510. margin-top:15px;
  511. }
  512. .thumbnail {
  513. margin-bottom:10px;
  514. }
  515. a{
  516. display:block;
  517. &:first-child{
  518. height:90px;
  519. }
  520. img{
  521. height:80px;
  522. object-fit: cover;
  523. }
  524. }
  525. }
  526. .pjax-loader-bar .progress {
  527. position: fixed;
  528. top: 0;
  529. left: 0;
  530. height: 2px;
  531. background: #77b6ff;
  532. box-shadow: 0 0 10px rgba(119,182,255,0.7);
  533. -webkit-transition: width 0.4s ease;
  534. transition: width 0.4s ease;
  535. }
  536. .dropdown-menu.text-left {
  537. a,li{
  538. text-align: left!important;
  539. }
  540. }
  541. .bootstrap-table .fixed-table-toolbar .dropdown-menu{
  542. overflow:auto;
  543. }
  544. .toolbar{
  545. margin-top:10px;
  546. margin-bottom:10px;
  547. }
  548. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search{
  549. line-height:inherit;
  550. }
  551. .fixed-table-toolbar .toolbar{
  552. margin-top:0;
  553. margin-bottom:0;
  554. }
  555. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  556. vertical-align: middle;
  557. }
  558. .bootstrap-table td.bs-checkbox {
  559. vertical-align: middle;
  560. }
  561. .fixed-table-container thead th .sortable{
  562. padding-right:0;
  563. }
  564. .dropdown-submenu {
  565. position: relative;
  566. >.dropdown-menu {
  567. overflow:auto;
  568. top: 0;
  569. left: 100%;
  570. margin-top: -6px;
  571. margin-left: -1px;
  572. .border-radius(0 6px 6px 6px);
  573. }
  574. &:hover {
  575. >.dropdown-menu {
  576. display: block;
  577. }
  578. >a:after {
  579. border-left-color: #fff;
  580. }
  581. }
  582. >a:after {
  583. display: block;
  584. content: " ";
  585. float: right;
  586. width: 0;
  587. height: 0;
  588. border-color: transparent;
  589. border-style: solid;
  590. border-width: 5px 0 5px 5px;
  591. border-left-color: #ccc;
  592. margin-top: 5px;
  593. margin-right: -10px;
  594. }
  595. &.pull-left {
  596. float: none;
  597. >.dropdown-menu {
  598. left: -100%;
  599. margin-left: 10px;
  600. .border-radius(6px 0 6px 6px);
  601. }
  602. }
  603. }
  604. /*重写toast的几个背景色*/
  605. .toast-primary {
  606. background-color: #48c9b0!important;
  607. }
  608. .toast-success {
  609. background-color: #18bc9c!important;
  610. }
  611. .toast-error {
  612. background-color: #e74c3c!important;
  613. }
  614. .toast-info {
  615. background-color: #5dade2!important;
  616. }
  617. .toast-warning {
  618. background-color: #f1c40f!important;
  619. }
  620. .toast-inverse {
  621. background-color: #34495e!important;
  622. }
  623. .toast-default {
  624. background-color: #bdc3c7!important;
  625. }
  626. #toast-container{
  627. >div, >div:hover{
  628. .box-shadow(0 0 3px #eee);
  629. }
  630. }
  631. .layui-layer-fast {
  632. .layui-layer-title {
  633. background:#2c3e50!important;
  634. color:#fff!important;
  635. border-bottom:none;
  636. //只有当包含layui-layer-title标题时才显示按钮
  637. ~.layui-layer-setwin{
  638. top: 0px;
  639. height:42px;
  640. > a{
  641. height:42px;
  642. line-height:42px;
  643. display:inline-block;
  644. }
  645. }
  646. }
  647. &.layui-layer-border {
  648. border:none!important;
  649. box-shadow: 1px 1px 50px rgba(0,0,0,.3)!important;
  650. }
  651. &.layui-layer-iframe {
  652. //overflow:hidden!important;
  653. overflow:visible;
  654. }
  655. .layui-layer-moves{
  656. .box-sizing(content-box);
  657. }
  658. /*自定义底部灰色操作区*/
  659. .layui-layer-btn {
  660. text-align: center!important;
  661. padding: 10px!important;
  662. background: #ecf0f1;
  663. overflow:hidden;
  664. a {
  665. background-color: #95a5a6;
  666. border-color: #95a5a6;
  667. color:#fff!important;
  668. height:31px;
  669. margin-top:0;
  670. border: 1px solid transparent;
  671. }
  672. .layui-layer-btn0{
  673. background-color: #18bc9c;
  674. border-color: #18bc9c;
  675. }
  676. }
  677. .layui-layer-footer {
  678. padding:8px 20px;
  679. background-color:#ecf0f1;
  680. height:auto;
  681. text-align:inherit!important;
  682. }
  683. .layui-layer-setwin {
  684. > a {
  685. background:none!important;
  686. cite {
  687. display:none;
  688. }
  689. &:after {
  690. content: "\e625";
  691. font-family: iconfont;
  692. font-style: normal;
  693. font-weight: normal;
  694. text-decoration: inherit;
  695. position: absolute;
  696. font-size: 18px;
  697. color: #fff;
  698. margin: 0;
  699. z-index: 1;
  700. }
  701. &:hover {
  702. text-decoration: none!important;
  703. background:none!important;
  704. }
  705. &:focus {
  706. text-decoration: none!important;
  707. }
  708. }
  709. .layui-layer-min{
  710. display:none;
  711. &:after {
  712. content: "\e625";
  713. }
  714. }
  715. .layui-layer-max{
  716. display:none;
  717. &:after {
  718. content: "\e623";
  719. }
  720. }
  721. .layui-layer-maxmin{
  722. display:none;
  723. &:after {
  724. content: "\e624";
  725. }
  726. }
  727. .layui-layer-close1{
  728. &:after {
  729. content: "\e626";
  730. }
  731. }
  732. //样式二关闭按钮
  733. .layui-layer-close2,.layui-layer-close2:hover{
  734. background:url('../libs/layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  735. top:-30px;
  736. right:-30px;
  737. &:after {
  738. display:none;
  739. }
  740. }
  741. }
  742. }
  743. .layui-layer-content {
  744. clear: both;
  745. }
  746. .layui-layer-fast-msg {
  747. min-width: 100px;
  748. border-radius: 2px;
  749. background-color: rgba(0,0,0,.6);
  750. color: #fff;
  751. .layui-layer-content {
  752. padding: 12px 25px;
  753. text-align: center;
  754. }
  755. }
  756. .n-bootstrap {
  757. .input-group > .n-right {
  758. position:absolute;
  759. }
  760. }
  761. @media (min-width: 564px){
  762. body.is-dialog .daterangepicker {
  763. min-width: 130px;
  764. }
  765. body.is-dialog .daterangepicker .ranges ul {
  766. width: 130px;
  767. }
  768. }
  769. /*手机版样式*/
  770. @media (max-width: @screen-phone) {
  771. .nav-addtabs {
  772. display:none;
  773. }
  774. .fixed-table-toolbar {
  775. .columns-right.btn-group{
  776. display:none;
  777. }
  778. }
  779. .fixed .content-wrapper, .fixed .right-side {
  780. padding-top: 50px;
  781. }
  782. }
  783. /*平板样式*/
  784. @media (max-width: @screen-tablet) {
  785. .n-bootstrap {
  786. .n-right {
  787. margin-top:0;
  788. top:-20px;
  789. position:absolute;
  790. left:0;
  791. text-align:right;
  792. width:100%;
  793. .msg-wrap {
  794. position:relative;
  795. }
  796. }
  797. .col-xs-12 > .n-right {
  798. .msg-wrap {
  799. margin-right:15px;
  800. }
  801. }
  802. }
  803. }
  804. /*修复radio和checkbox样式对齐*/
  805. .radio, .checkbox {
  806. > label {
  807. margin-right: 10px;
  808. > input {
  809. margin: 2px 0 0;
  810. }
  811. }
  812. }
  813. .wipecache li a {
  814. color:#444444!important;
  815. }