backend.less 17 KB

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