backend.less 13 KB

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