backend.less 17 KB

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