backend.less 16 KB

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