backend.less 14 KB

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