frontend-func.less 11 KB

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