backend.less 15 KB

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