backend-func.less 11 KB

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