backend.less 13 KB

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