backend-func.less 12 KB

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