backend.less 16 KB

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