backend.less 14 KB

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