backend-func.less 11 KB

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