backend.less 17 KB

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