backend-func.less 11 KB

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