backend.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  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. #treeview {
  430. .jstree-container-ul .jstree-node{
  431. display:block;clear:both;
  432. }
  433. .jstree-leaf:not(:first-child) {
  434. float:left;
  435. background:none;
  436. margin-left:0;
  437. width:80px;
  438. clear:none;
  439. }
  440. .jstree-leaf {
  441. float:left;
  442. margin-left:0;padding-left:24px;
  443. width:80px;
  444. clear:none;
  445. color:#777;
  446. }
  447. .jstree-leaf > .jstree-icon,.jstree-leaf .jstree-themeicon{
  448. display:none;
  449. }
  450. .jstree-last{
  451. background-image: url("../img/32px.png");
  452. background-position: -292px -4px;
  453. background-repeat: repeat-y;
  454. }
  455. .jstree-children {
  456. .clearfix();
  457. }
  458. .jstree-themeicon {
  459. display: none;
  460. }
  461. }
  462. /*去除bootstrap-table的边框*/
  463. .fixed-table-container {
  464. border:none!important;
  465. }
  466. /*修复nice-validator新版下的一处BUG*/
  467. .nice-validator {
  468. input, select, textarea, [contenteditable]{
  469. display: inline-block;
  470. *display: inline;
  471. *zoom: 1;
  472. }
  473. }
  474. /*修复nice-validator和summernote的编辑框冲突*/
  475. .nice-validator .note-editor .note-editing-area .note-editable{
  476. display:inherit;
  477. }
  478. /*预览区域*/
  479. .plupload-preview {
  480. padding:0 10px;
  481. margin-bottom:0;
  482. li {
  483. margin-top:15px;
  484. }
  485. .thumbnail {
  486. margin-bottom:10px;
  487. }
  488. a{
  489. display:block;
  490. &:first-child{
  491. height:90px;
  492. }
  493. img{
  494. height:80px;
  495. object-fit: cover;
  496. }
  497. }
  498. }
  499. .pjax-loader-bar .progress {
  500. position: fixed;
  501. top: 0;
  502. left: 0;
  503. height: 2px;
  504. background: #77b6ff;
  505. box-shadow: 0 0 10px rgba(119,182,255,0.7);
  506. -webkit-transition: width 0.4s ease;
  507. transition: width 0.4s ease;
  508. }
  509. .dropdown-menu.text-left {
  510. a,li{
  511. text-align: left!important;
  512. }
  513. }
  514. .bootstrap-table .fixed-table-toolbar .dropdown-menu{
  515. overflow:auto;
  516. }
  517. .toolbar{
  518. margin-top:10px;
  519. margin-bottom:10px;
  520. }
  521. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search{
  522. line-height:inherit;
  523. }
  524. .fixed-table-toolbar .toolbar{
  525. margin-top:0;
  526. margin-bottom:0;
  527. }
  528. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  529. vertical-align: middle;
  530. }
  531. .bootstrap-table td.bs-checkbox {
  532. vertical-align: middle;
  533. }
  534. .dropdown-submenu {
  535. position: relative;
  536. >.dropdown-menu {
  537. overflow:auto;
  538. top: 0;
  539. left: 100%;
  540. margin-top: -6px;
  541. margin-left: -1px;
  542. .border-radius(0 6px 6px 6px);
  543. }
  544. &:hover {
  545. >.dropdown-menu {
  546. display: block;
  547. }
  548. >a:after {
  549. border-left-color: #fff;
  550. }
  551. }
  552. >a:after {
  553. display: block;
  554. content: " ";
  555. float: right;
  556. width: 0;
  557. height: 0;
  558. border-color: transparent;
  559. border-style: solid;
  560. border-width: 5px 0 5px 5px;
  561. border-left-color: #ccc;
  562. margin-top: 5px;
  563. margin-right: -10px;
  564. }
  565. &.pull-left {
  566. float: none;
  567. >.dropdown-menu {
  568. left: -100%;
  569. margin-left: 10px;
  570. .border-radius(6px 0 6px 6px);
  571. }
  572. }
  573. }
  574. /*重写toast的几个背景色*/
  575. .toast-primary {
  576. background-color: #48c9b0!important;
  577. }
  578. .toast-success {
  579. background-color: #18bc9c!important;
  580. }
  581. .toast-error {
  582. background-color: #e74c3c!important;
  583. }
  584. .toast-info {
  585. background-color: #5dade2!important;
  586. }
  587. .toast-warning {
  588. background-color: #f1c40f!important;
  589. }
  590. .toast-inverse {
  591. background-color: #34495e!important;
  592. }
  593. .toast-default {
  594. background-color: #bdc3c7!important;
  595. }
  596. #toast-container{
  597. >div, >div:hover{
  598. .box-shadow(0 0 3px #eee);
  599. }
  600. }
  601. .layui-layer-fast {
  602. .layui-layer-title {
  603. background:#2c3e50!important;
  604. color:#fff!important;
  605. border-bottom:none;
  606. //只有当包含layui-layer-title标题时才显示按钮
  607. ~.layui-layer-setwin{
  608. top: 0px;
  609. height:42px;
  610. > a{
  611. height:42px;
  612. line-height:42px;
  613. display:inline-block;
  614. }
  615. }
  616. }
  617. &.layui-layer-border {
  618. border:none!important;
  619. box-shadow: 1px 1px 50px rgba(0,0,0,.3)!important;
  620. }
  621. &.layui-layer-iframe {
  622. //overflow:hidden!important;
  623. overflow:visible;
  624. }
  625. .layui-layer-moves{
  626. .box-sizing(content-box);
  627. }
  628. /*自定义底部灰色操作区*/
  629. .layui-layer-btn {
  630. text-align: center!important;
  631. padding: 10px!important;
  632. background: #ecf0f1;
  633. overflow:hidden;
  634. a {
  635. background-color: #95a5a6;
  636. border-color: #95a5a6;
  637. color:#fff!important;
  638. height:31px;
  639. margin-top:0;
  640. border: 1px solid transparent;
  641. }
  642. .layui-layer-btn0{
  643. background-color: #18bc9c;
  644. border-color: #18bc9c;
  645. }
  646. }
  647. .layui-layer-footer {
  648. padding:8px 20px;
  649. background-color:#ecf0f1;
  650. height:auto;
  651. text-align:inherit!important;
  652. }
  653. .layui-layer-setwin {
  654. > a {
  655. background:none!important;
  656. cite {
  657. display:none;
  658. }
  659. &:after {
  660. content: "\e625";
  661. font-family: iconfont;
  662. font-style: normal;
  663. font-weight: normal;
  664. text-decoration: inherit;
  665. position: absolute;
  666. font-size: 18px;
  667. color: #fff;
  668. margin: 0;
  669. z-index: 1;
  670. }
  671. &:hover {
  672. text-decoration: none!important;
  673. background:none!important;
  674. }
  675. &:focus {
  676. text-decoration: none!important;
  677. }
  678. }
  679. .layui-layer-min{
  680. display:none;
  681. &:after {
  682. content: "\e625";
  683. }
  684. }
  685. .layui-layer-max{
  686. display:none;
  687. &:after {
  688. content: "\e623";
  689. }
  690. }
  691. .layui-layer-maxmin{
  692. display:none;
  693. &:after {
  694. content: "\e624";
  695. }
  696. }
  697. .layui-layer-close1{
  698. &:after {
  699. content: "\e626";
  700. }
  701. }
  702. //样式二关闭按钮
  703. .layui-layer-close2,.layui-layer-close2:hover{
  704. background:url('../libs/layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  705. top:-30px;
  706. right:-30px;
  707. &:after {
  708. display:none;
  709. }
  710. }
  711. }
  712. }
  713. .layui-layer-content {
  714. clear: both;
  715. }
  716. .layui-layer-fast-msg {
  717. min-width: 100px;
  718. border-radius: 2px;
  719. background-color: rgba(0,0,0,.6);
  720. color: #fff;
  721. .layui-layer-content {
  722. padding: 12px 25px;
  723. text-align: center;
  724. }
  725. }
  726. .n-bootstrap {
  727. .input-group > .n-right {
  728. position:absolute;
  729. }
  730. }
  731. @media (min-width: 564px){
  732. body.is-dialog .daterangepicker {
  733. min-width: 130px;
  734. }
  735. body.is-dialog .daterangepicker .ranges ul {
  736. width: 130px;
  737. }
  738. }
  739. /*手机版样式*/
  740. @media (max-width: @screen-phone) {
  741. .nav-addtabs {
  742. display:none;
  743. }
  744. .fixed-table-toolbar {
  745. .columns-right.btn-group{
  746. display:none;
  747. }
  748. }
  749. .fixed .content-wrapper, .fixed .right-side {
  750. padding-top: 50px;
  751. }
  752. }
  753. /*平板样式*/
  754. @media (max-width: @screen-tablet) {
  755. .n-bootstrap {
  756. .n-right {
  757. margin-top:0;
  758. top:-20px;
  759. position:absolute;
  760. left:0;
  761. text-align:right;
  762. width:100%;
  763. .msg-wrap {
  764. position:relative;
  765. }
  766. }
  767. .col-xs-12 > .n-right {
  768. .msg-wrap {
  769. margin-right:15px;
  770. }
  771. }
  772. }
  773. }
  774. /*修复radio和checkbox样式对齐*/
  775. .radio, .checkbox {
  776. > label {
  777. margin-right: 10px;
  778. > input {
  779. margin: 2px 0 0;
  780. }
  781. }
  782. }