backend.less 17 KB

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