backend.less 15 KB

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