backend.less 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717
  1. @import (reference) "bootstrap-less/mixins.less";
  2. @import (reference) "bootstrap-less/variables.less";
  3. @import (reference) "fastadmin/mixins.less";
  4. @import (reference) "fastadmin/variables.less";
  5. @import "lesshat.less";
  6. @import url("../css/bootstrap.css");
  7. @import url("../css/fastadmin.css");
  8. @import url("../css/skins/skin-black-blue.css");
  9. @import url("../css/iconfont.css");
  10. @import url("../libs/font-awesome/css/font-awesome.min.css");
  11. @import url("../libs/toastr/toastr.min.css");
  12. @import url("../libs/fastadmin-layer/dist/theme/default/layer.css");
  13. @import url("../libs/bootstrap-table/dist/bootstrap-table.min.css");
  14. @import url("../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css");
  15. @import url("../libs/bootstrap-daterangepicker/daterangepicker.css");
  16. @import url("../libs/nice-validator/dist/jquery.validator.css");
  17. @import url("../libs/bootstrap-select/dist/css/bootstrap-select.min.css");
  18. @import url("../libs/fastadmin-selectpage/selectpage.css");
  19. @import url("../libs/bootstrap-slider/slider.css");
  20. @import "tinycss.less";
  21. @main-bg: #f1f4f6;
  22. @panel-intro-bg: darken(@main-bg, 3%);
  23. @panel-nav-bg: #fff;
  24. @input-min-height: 33px;
  25. html,
  26. body {
  27. height: 100%;
  28. }
  29. body {
  30. background: #f1f4f6;
  31. font-size: 14px;
  32. line-height: 1.5715;
  33. }
  34. body.is-dialog {
  35. background: #fff;
  36. }
  37. .dropdown-menu {
  38. > li > a {
  39. padding: 5px 12px;
  40. }
  41. }
  42. .selection {
  43. position: absolute;
  44. border: 1px solid #8B9;
  45. background-color: #BEC;
  46. }
  47. .main-header {
  48. .navbar {
  49. position: relative;
  50. .dropdown-menu {
  51. font-size: 14px;
  52. > li > a {
  53. padding: 8px 15px;
  54. }
  55. }
  56. }
  57. }
  58. .bootstrap-dialog .modal-dialog {
  59. /*width: 70%;*/
  60. max-width: 885px;
  61. }
  62. /*iOS兼容*/
  63. html.ios-fix, html.ios-fix body {
  64. height: 100%;
  65. //overflow: auto;
  66. overflow-x: hidden;
  67. -webkit-overflow-scrolling: touch;
  68. .wrapper, .tab-pane {
  69. //overflow: auto;
  70. -webkit-overflow-scrolling: touch;
  71. }
  72. }
  73. .wrapper {
  74. height: 100%;
  75. }
  76. #header {
  77. //box-shadow: 0 2px 2px rgba(0,0,0,.05),0 1px 0 rgba(0,0,0,.05);
  78. }
  79. .content-wrapper {
  80. position: relative;
  81. height: 100%;
  82. }
  83. .control-relative {
  84. position: relative;
  85. }
  86. .tab-addtabs {
  87. //overflow: hidden;
  88. .tab-pane {
  89. height: 100%;
  90. width: 100%;
  91. }
  92. }
  93. .row-between {
  94. .col-xs-6 + .col-xs-6:before {
  95. content: "-";
  96. position: absolute;
  97. left: -2%;
  98. top: 6px;
  99. }
  100. }
  101. @media only screen and (min-width: 481px) {
  102. .row-flex {
  103. display: flex;
  104. flex-wrap: wrap;
  105. }
  106. .row-flex > [class*='col-'] {
  107. display: flex;
  108. flex-direction: column;
  109. }
  110. .row-flex.row:after,
  111. .row-flex.row:before {
  112. display: flex;
  113. }
  114. }
  115. @media (max-width: 991px) {
  116. .main-header .navbar-custom-menu a {
  117. &.btn-danger {
  118. color: #fff;
  119. background-color: @brand-danger;
  120. }
  121. &.btn-primary {
  122. color: #fff;
  123. background-color: @brand-primary;
  124. }
  125. }
  126. }
  127. .common-search-table {
  128. min-height: 20px;
  129. padding: 15px;
  130. margin-bottom: 15px;
  131. background-color: #f5f5f5;
  132. }
  133. /* 固定的底部按钮 */
  134. .fixed-footer {
  135. position: fixed;
  136. bottom: 0;
  137. background-color: #ecf0f1;
  138. width: 100%;
  139. margin-bottom: 0;
  140. padding: 10px;
  141. }
  142. table.table-template {
  143. overflow: hidden;
  144. }
  145. .sp_container {
  146. .msg-box {
  147. position: absolute;
  148. right: 0;
  149. top: 0;
  150. }
  151. .sp_element_box {
  152. overflow: unset;
  153. > li.input_box {
  154. position: unset;
  155. }
  156. .msg-box {
  157. right: -24px;
  158. }
  159. }
  160. }
  161. @media (max-width: 767px) {
  162. .sp_container .sp_element_box .msg-box {
  163. left: inherit;
  164. }
  165. .card-views .card-view {
  166. padding: 5px 0;
  167. }
  168. }
  169. .toast-top-right-index {
  170. top: 62px;
  171. right: 12px;
  172. }
  173. .bootstrap-select {
  174. .msg-box {
  175. position: absolute;
  176. right: 0;
  177. top: 0;
  178. }
  179. .status {
  180. background: #f0f0f0;
  181. clear: both;
  182. color: #999;
  183. font-size: 13px;
  184. font-weight: 500;
  185. line-height: 1;
  186. margin-bottom: -5px;
  187. padding: 10px 20px;
  188. }
  189. .bs-placeholder {
  190. min-height: @input-min-height;
  191. }
  192. min-height: @input-min-height;
  193. }
  194. select.bs-select-hidden, select.selectpicker {
  195. display: inherit !important;
  196. max-height: @input-min-height;
  197. overflow: hidden;
  198. &[multiple] {
  199. height: @input-min-height;
  200. //visibility: hidden;
  201. padding: 0;
  202. background: #f4f4f4;
  203. option {
  204. color: #f4f4f4;
  205. .opacity(0);
  206. }
  207. @media not all and (min-resolution: .001dpcm) {
  208. @supports (-webkit-appearance:none) {
  209. visibility: hidden;
  210. }
  211. }
  212. }
  213. }
  214. input.selectpage {
  215. color: transparent;
  216. pointer-events: none;
  217. }
  218. .sp_container {
  219. input.selectpage {
  220. color: inherit;
  221. pointer-events: inherit;
  222. padding-left: 12px;
  223. padding-right: 12px;
  224. }
  225. .sp_element_box {
  226. input.selectpage {
  227. padding-left: 0;
  228. padding-right: 0;
  229. }
  230. li:first-child {
  231. input.selectpage {
  232. padding-left: 9px;
  233. padding-right: 9px;
  234. }
  235. }
  236. }
  237. min-height: @input-min-height;
  238. }
  239. .img-center {
  240. margin: 0 auto;
  241. display: inline;
  242. float: none;
  243. }
  244. /*
  245. * RIBBON
  246. */
  247. #ribbon {
  248. overflow: hidden;
  249. padding: 15px 15px 0 15px;
  250. position: relative;
  251. a {
  252. color: #777 !important;
  253. text-decoration: none !important;
  254. }
  255. .breadcrumb {
  256. display: inline-block;
  257. margin: 0;
  258. padding: 0;
  259. background: none;
  260. vertical-align: top;
  261. }
  262. .breadcrumb > .active,
  263. .breadcrumb li {
  264. color: #aaa;
  265. }
  266. .shortcut {
  267. a {
  268. margin-left: 10px;
  269. }
  270. }
  271. }
  272. .is-dialog {
  273. #main {
  274. background: #fff;
  275. }
  276. .layer-footer {
  277. display: none;
  278. }
  279. }
  280. form.form-horizontal .control-label {
  281. font-weight: normal;
  282. }
  283. .user-panel > .image {
  284. width: 45px;
  285. height: 45px;
  286. overflow: hidden;
  287. border-radius: 50%;
  288. cursor: default;
  289. pointer-events: none;
  290. img {
  291. display: block;
  292. width: 45px;
  293. height: 45px;
  294. max-width: 45px;
  295. object-fit: cover;
  296. object-position: center;
  297. }
  298. }
  299. .user-panel > .info {
  300. cursor: default;
  301. pointer-events: none;
  302. }
  303. /*panel扩展描述样式*/
  304. .panel-intro {
  305. margin-bottom: 0;
  306. border: none;
  307. > .panel-heading {
  308. padding: 15px;
  309. padding-bottom: 0;
  310. background: @panel-intro-bg;
  311. border-color: @panel-intro-bg;
  312. position: relative;
  313. .panel-lead {
  314. margin-bottom: 15px;
  315. em {
  316. display: block;
  317. font-weight: bold;
  318. font-style: normal;
  319. }
  320. }
  321. .panel-title {
  322. height: 25px;
  323. font-weight: normal;
  324. white-space: nowrap;
  325. overflow: hidden;
  326. text-overflow: ellipsis;
  327. }
  328. .panel-control {
  329. height: 42px;
  330. position: absolute;
  331. top: 8px;
  332. right: 8px;
  333. .fa {
  334. font-size: 14px;
  335. }
  336. }
  337. .nav-tabs {
  338. border-bottom: 0;
  339. margin-bottom: 0;
  340. }
  341. .nav-tabs > li > a {
  342. margin-right: 4px;
  343. color: #95a5a6;
  344. background-color: darken(@panel-intro-bg, 5%);
  345. border: 1px solid @panel-intro-bg;
  346. border-bottom-color: transparent;
  347. }
  348. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
  349. border: 1px solid @panel-intro-bg;
  350. color: #7b8a8b;
  351. background-color: darken(@panel-intro-bg, 10%);
  352. }
  353. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  354. color: #7b8a8b;
  355. background-color: #ffffff;
  356. border-bottom-color: transparent;
  357. cursor: default;
  358. }
  359. @media (max-width: @screen-tablet) {
  360. .nav-tabs {
  361. white-space: nowrap;
  362. overflow-x: auto;
  363. overflow-y: hidden;
  364. margin-bottom: -1px;
  365. > li {
  366. display: inline-block;
  367. float: none;
  368. }
  369. }
  370. }
  371. }
  372. }
  373. /*单表格*/
  374. .panel-tabs {
  375. .panel-heading {
  376. padding: 12px 15px 12px 15px;
  377. .panel-lead {
  378. margin-bottom: 0px;
  379. }
  380. .panel-title {
  381. }
  382. }
  383. }
  384. /*选项卡*/
  385. .panel-nav {
  386. .panel-heading {
  387. padding: 0px;
  388. padding-bottom: 0;
  389. background: @main-bg;
  390. border-color: @main-bg;
  391. }
  392. .nav-tabs > li > a {
  393. padding: 12px 15px;
  394. background-color: @panel-intro-bg;
  395. border: 1px solid @main-bg;
  396. }
  397. .nav-tabs > li > a:hover, .nav-tabs > li > a:focus {
  398. border: 1px solid @panel-intro-bg;
  399. background-color: @panel-intro-bg;
  400. }
  401. .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  402. border-color: @main-bg;
  403. border-bottom-color: transparent;
  404. }
  405. }
  406. /*顶栏addtabs*/
  407. .nav-addtabs {
  408. height: 100%;
  409. //overflow-y: hidden;
  410. &.disable-top-badge {
  411. > li > a > .pull-right-container {
  412. display: none;
  413. }
  414. }
  415. border: none;
  416. > li {
  417. margin: 0;
  418. > a {
  419. height: 50px;
  420. line-height: 50px;
  421. padding: 0 15px;
  422. border-radius: 0;
  423. border: none;
  424. border-right: 1px solid rgba(0, 0, 0, 0.05);
  425. margin: 0;
  426. color: #95a5a6;
  427. &:hover, &:focus {
  428. border: none;
  429. color: #2c3e50;
  430. border-right: 1px solid rgba(0, 0, 0, 0.02);
  431. }
  432. }
  433. &.active > a {
  434. height: 50px;
  435. line-height: 50px;
  436. padding: 0 15px;
  437. border-radius: 0;
  438. border: none;
  439. border-right: 1px solid rgba(0, 0, 0, 0.02);
  440. background: #f1f4f6;
  441. color: #2c3e50;
  442. overflow: hidden;
  443. &:hover, &:focus {
  444. border: none;
  445. color: #2c3e50;
  446. background: #f1f4f6;
  447. border-right: 1px solid rgba(0, 0, 0, 0.02);
  448. }
  449. }
  450. .close-tab {
  451. font-size: 10px;
  452. position: absolute;
  453. right: 0px;
  454. top: 50%;
  455. margin-top: -8px;
  456. z-index: 100;
  457. cursor: pointer;
  458. color: #eee;
  459. &:before {
  460. content: "\e626";
  461. font-family: iconfont;
  462. font-style: normal;
  463. font-weight: normal;
  464. text-decoration: inherit;
  465. font-size: 18px;
  466. }
  467. display: none;
  468. }
  469. }
  470. .open > a {
  471. &:hover, &:focus {
  472. border-right: 1px solid rgba(0, 0, 0, 0.05);
  473. }
  474. }
  475. ul li {
  476. position: relative;
  477. }
  478. li:hover > .close-tab {
  479. display: block;
  480. }
  481. }
  482. #firstnav {
  483. height: 50px;
  484. border-bottom: 1px solid transparent;
  485. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  486. position: relative;
  487. .sidebar-toggle {
  488. position: absolute;
  489. width: 45px;
  490. text-align: center;
  491. height: 50px;
  492. line-height: 50px;
  493. padding: 0;
  494. }
  495. .nav-addtabs {
  496. position: absolute;
  497. left: 45px;
  498. z-index: 98;
  499. }
  500. .navbar-custom-menu {
  501. position: absolute;
  502. top: 0;
  503. right: 0;
  504. z-index: 99;
  505. background: transparent;
  506. }
  507. }
  508. /*次栏菜单栏*/
  509. #secondnav {
  510. display: none;
  511. height: 44px;
  512. position: absolute;
  513. top: 50px;
  514. left: 0;
  515. background: #fff;
  516. width: 100%;
  517. box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  518. padding: 5px 10px;
  519. -webkit-user-select: none;
  520. -moz-user-select: none;
  521. user-select: none;
  522. .nav-addtabs {
  523. height: 100%;
  524. &.disable-top-badge {
  525. > li > a > .pull-right-container {
  526. display: none;
  527. }
  528. }
  529. border: none;
  530. > li {
  531. border: 1px solid #eee;
  532. border-radius: 3px;
  533. padding: 0 15px;
  534. height: 30px;
  535. line-height: 30px;
  536. margin: 2px 5px 2px 0;
  537. background: #fff;
  538. > a {
  539. display: block;
  540. color: #495060 !important;
  541. height: 100%;
  542. padding: 0;
  543. line-height: 28px;
  544. font-size: 13px;
  545. vertical-align: middle;
  546. opacity: 1;
  547. overflow: hidden;
  548. background: none;
  549. border: none;
  550. }
  551. &.active {
  552. border-color: #bdbebd;
  553. background-color: #f7f7f7;
  554. }
  555. .close-tab {
  556. font-size: 10px;
  557. position: absolute;
  558. right: 0px;
  559. top: 50%;
  560. margin-top: -8px;
  561. z-index: 100;
  562. cursor: pointer;
  563. color: #eee;
  564. &:before {
  565. content: "\e626";
  566. font-family: iconfont;
  567. font-style: normal;
  568. font-weight: normal;
  569. text-decoration: inherit;
  570. font-size: 18px;
  571. }
  572. }
  573. &:hover, &:focus {
  574. border-color: #bdbebd;
  575. }
  576. }
  577. ul li {
  578. position: relative;
  579. }
  580. li:hover > .close-tab {
  581. display: block;
  582. border-color: #222e32;
  583. color: #222e32
  584. }
  585. }
  586. }
  587. .multiplenav {
  588. .content-wrapper, .right-side, .main-sidebar {
  589. padding-top: 50px;
  590. }
  591. #firstnav .nav-addtabs {
  592. padding-right: 450px;
  593. }
  594. }
  595. @media (max-width: 767px) {
  596. .multipletab {
  597. &.multiplenav {
  598. .content-wrapper, .right-side {
  599. padding-top: 94px;
  600. }
  601. }
  602. }
  603. }
  604. .multipletab {
  605. #secondnav {
  606. display: block;
  607. }
  608. &.multiplenav {
  609. .content-wrapper, .right-side {
  610. padding-top: 94px;
  611. }
  612. #firstnav .nav-tabs {
  613. overflow: hidden;
  614. }
  615. }
  616. }
  617. .main-sidebar .sidebar-form {
  618. overflow: visible;
  619. .menuresult {
  620. z-index: 999;
  621. position: absolute;
  622. top: 34px;
  623. left: -1px;
  624. width: 100%;
  625. max-height: 250px;
  626. overflow: auto;
  627. margin: 0;
  628. border-top: none;
  629. border-top-left-radius: 0;
  630. border-top-right-radius: 0;
  631. a {
  632. display: block;
  633. background-color: #fff;
  634. border-top: 1px solid transparent;
  635. border-bottom: 1px solid #eee;
  636. padding: 10px 15px;
  637. color: #222d32;
  638. &:hover {
  639. background: #eee;
  640. }
  641. &:first-child {
  642. border-top: 1px solid #eee;
  643. }
  644. }
  645. }
  646. }
  647. .input-group .sp_result_area {
  648. width: 100%;
  649. }
  650. .sidebar-menu {
  651. .treeview-open > .treeview-menu {
  652. display: block;
  653. }
  654. > li .badge {
  655. margin-top: 0;
  656. }
  657. }
  658. .sidebar-collapse {
  659. .user-panel > .image {
  660. width: 25px;
  661. height: 25px;
  662. img {
  663. width: 25px;
  664. height: 25px;
  665. max-width: 25px;
  666. }
  667. }
  668. }
  669. @media (min-width: 768px) {
  670. .sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
  671. top: 7px !important;
  672. right: 10px;
  673. height: 17px;
  674. }
  675. }
  676. .fieldlist dd {
  677. display: block;
  678. margin: 8px 0;
  679. input {
  680. display: inline-block;
  681. width: 300px;
  682. }
  683. input:first-child {
  684. width: 110px;
  685. }
  686. ins {
  687. width: 110px;
  688. display: inline-block;
  689. text-decoration: none;
  690. }
  691. }
  692. /* 弹窗中的表单 */
  693. .form-layer {
  694. height: 100%;
  695. min-height: 150px;
  696. min-width: 300px;
  697. .form-body {
  698. width: 100%;
  699. overflow: auto;
  700. top: 0;
  701. position: absolute;
  702. z-index: 10;
  703. bottom: 50px;
  704. padding: 15px;
  705. }
  706. .form-footer {
  707. height: 50px;
  708. line-height: 50px;
  709. background-color: #ecf0f1;
  710. width: 100%;
  711. position: absolute;
  712. z-index: 200;
  713. bottom: 0;
  714. margin: 0;
  715. }
  716. .form-footer .form-group {
  717. margin-left: 0;
  718. margin-right: 0;
  719. }
  720. }
  721. #treeview {
  722. .jstree-container-ul .jstree-node {
  723. display: block;
  724. clear: both;
  725. }
  726. .jstree-leaf:not(:first-child) {
  727. float: left;
  728. background: none;
  729. margin-left: 0;
  730. min-width: 80px;
  731. clear: none;
  732. }
  733. .jstree-leaf {
  734. float: left;
  735. margin-left: 0;
  736. padding-left: 24px;
  737. min-width: 80px;
  738. clear: none;
  739. color: #777;
  740. }
  741. .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon {
  742. display: none;
  743. }
  744. .jstree-last {
  745. background-image: url("../img/32px.png");
  746. background-position: -292px -4px;
  747. background-repeat: repeat-y;
  748. }
  749. .jstree-children {
  750. .clearfix();
  751. }
  752. .jstree-themeicon {
  753. display: none;
  754. }
  755. }
  756. /*去除bootstrap-table的边框*/
  757. .fixed-table-container {
  758. border: none !important;
  759. tbody .selected td {
  760. background-color: rgba(216, 224, 230, .5);
  761. }
  762. .bs-checkbox {
  763. min-width: 36px;
  764. }
  765. //拖拽时隐藏tooltip,避免出现错位
  766. tr[data-origpos] > td > .tooltip.in {
  767. display: none !important;
  768. }
  769. }
  770. /*修复nice-validator新版下的一处BUG*/
  771. .nice-validator {
  772. input, select, textarea, [contenteditable] {
  773. vertical-align: top;
  774. display: inline-block;
  775. *display: inline;
  776. *zoom: 1;
  777. }
  778. }
  779. /*修复nice-validator和summernote的编辑框冲突*/
  780. .nice-validator .note-editor .note-editing-area .note-editable {
  781. display: inherit;
  782. }
  783. /*预览区域*/
  784. .plupload-preview, .faupload-preview {
  785. padding: 0 10px;
  786. margin-bottom: 0;
  787. li {
  788. margin-top: 15px;
  789. }
  790. .thumbnail {
  791. margin-bottom: 10px;
  792. }
  793. a {
  794. display: block;
  795. &:first-child {
  796. height: 90px;
  797. }
  798. img {
  799. height: 80px;
  800. object-fit: cover;
  801. }
  802. }
  803. }
  804. .pjax-loader-bar .progress {
  805. position: fixed;
  806. top: 0;
  807. left: 0;
  808. height: 2px;
  809. background: #77b6ff;
  810. box-shadow: 0 0 10px rgba(119, 182, 255, 0.7);
  811. -webkit-transition: width 0.4s ease;
  812. transition: width 0.4s ease;
  813. }
  814. .dropdown-menu.text-left {
  815. a, li {
  816. text-align: left !important;
  817. }
  818. }
  819. .bootstrap-table .fixed-table-loading {
  820. padding: 10px 0;
  821. }
  822. .bootstrap-table .fixed-table-toolbar .dropdown-menu {
  823. overflow: inherit;
  824. }
  825. .bootstrap-table .fixed-table-toolbar .columns-right .dropdown-menu {
  826. overflow: auto;
  827. }
  828. .bootstrap-table .bs-bars .fixed-table-toolbar .dropdown-menu > li:hover > a {
  829. background-color: #e1e3e9;
  830. color: #333;
  831. }
  832. .bootstrap-table .fa-toggle-on.fa-2x {
  833. font-size: 1.86em;
  834. }
  835. .bootstrap-table .form-commonsearch .row > .form-group {
  836. margin-left: 0;
  837. margin-right: 0;
  838. > .control-label {
  839. white-space: nowrap;
  840. }
  841. }
  842. .bootstrap-table {
  843. .btn-commonsearch {
  844. position: relative;
  845. > span {
  846. position: absolute;
  847. top: -10px;
  848. right: -10px;
  849. }
  850. }
  851. }
  852. .bootstrap-table .table:not(.table-condensed) > tbody > tr > th,
  853. .bootstrap-table .table:not(.table-condensed) > tfoot > tr > th,
  854. .bootstrap-table .table:not(.table-condensed) > thead > tr > td,
  855. .bootstrap-table .table:not(.table-condensed) > tbody > tr > td,
  856. .bootstrap-table .table:not(.table-condensed) > tfoot > tr > td {
  857. padding: 10px 15px;
  858. height: 47px;
  859. }
  860. .fixed-table-container tbody td .th-inner, .fixed-table-container thead th .th-inner {
  861. padding: 10px 10px;
  862. }
  863. .toolbar {
  864. margin-top: 10px;
  865. margin-bottom: 10px;
  866. }
  867. .fixed-table-toolbar .bs-bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
  868. line-height: inherit;
  869. }
  870. .fixed-table-toolbar .toolbar {
  871. margin-top: 0;
  872. margin-bottom: 0;
  873. }
  874. .bootstrap-table table tbody tr:first-child td .bs-checkbox {
  875. vertical-align: middle;
  876. }
  877. .bootstrap-table td.bs-checkbox {
  878. vertical-align: middle;
  879. }
  880. table.table-nowrap {
  881. tbody > tr > td, thead > tr > th {
  882. white-space: nowrap;
  883. }
  884. }
  885. .fixed-table-container thead th .sortable {
  886. padding: 8px 15px;
  887. }
  888. .dropdown-submenu {
  889. position: relative;
  890. > .dropdown-menu {
  891. overflow: auto;
  892. top: 0;
  893. left: 100%;
  894. margin-top: -6px;
  895. margin-left: -1px;
  896. .border-radius(0 6px 6px 6px);
  897. }
  898. &:hover {
  899. > .dropdown-menu {
  900. display: block;
  901. }
  902. > a:after {
  903. border-left-color: #fff;
  904. }
  905. }
  906. > a:after {
  907. display: block;
  908. content: " ";
  909. float: right;
  910. width: 0;
  911. height: 0;
  912. border-color: transparent;
  913. border-style: solid;
  914. border-width: 5px 0 5px 5px;
  915. border-left-color: #ccc;
  916. margin-top: 5px;
  917. margin-right: -10px;
  918. }
  919. &.pull-left {
  920. float: none;
  921. > .dropdown-menu {
  922. left: -100%;
  923. margin-left: 10px;
  924. .border-radius(6px 0 6px 6px);
  925. }
  926. }
  927. }
  928. /*重写toast的几个背景色*/
  929. .toast-primary {
  930. background-color: #48c9b0 !important;
  931. }
  932. .toast-success {
  933. background-color: #18bc9c !important;
  934. }
  935. .toast-error {
  936. background-color: #e74c3c !important;
  937. }
  938. .toast-info {
  939. background-color: #5dade2 !important;
  940. }
  941. .toast-warning {
  942. background-color: #f1c40f !important;
  943. }
  944. .toast-inverse {
  945. background-color: #34495e !important;
  946. }
  947. .toast-default {
  948. background-color: #bdc3c7 !important;
  949. }
  950. #toast-container {
  951. > div, > div:hover {
  952. .box-shadow(0 0 3px #eee);
  953. }
  954. }
  955. .layui-layer-fast {
  956. .layui-layer-title {
  957. background: #2c3e50 !important;
  958. color: #fff !important;
  959. border-bottom: none;
  960. height: 45px;
  961. line-height: 45px;
  962. //只有当包含layui-layer-title标题时才显示按钮
  963. ~ .layui-layer-setwin {
  964. top: 0px;
  965. height: 45px;
  966. > a {
  967. height: 45px;
  968. line-height: 45px;
  969. display: inline-block;
  970. }
  971. }
  972. }
  973. &.layui-layer-border {
  974. border: none !important;
  975. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3) !important;
  976. }
  977. &.layui-layer-iframe {
  978. //overflow:hidden!important;
  979. overflow: visible;
  980. }
  981. .layui-layer-moves {
  982. .box-sizing(content-box);
  983. }
  984. /*自定义底部灰色操作区*/
  985. .layui-layer-btn {
  986. text-align: center !important;
  987. padding: 10px !important;
  988. background: #ecf0f1;
  989. overflow: hidden;
  990. a {
  991. background-color: #95a5a6;
  992. color: #fff !important;
  993. height: 32px;
  994. line-height: 32px;
  995. margin-top: 0;
  996. font-size: 13px;
  997. border: none;
  998. }
  999. .layui-layer-btn0 {
  1000. background-color: #18bc9c;
  1001. border-color: #18bc9c;
  1002. }
  1003. }
  1004. .layui-layer-footer {
  1005. padding: 8px 20px;
  1006. background-color: #ecf0f1;
  1007. height: auto;
  1008. min-height: 53px;
  1009. text-align: inherit !important;
  1010. }
  1011. .layui-layer-confirm {
  1012. position: absolute;
  1013. width: 100%;
  1014. height: 100%;
  1015. left: 0;
  1016. bottom: 0;
  1017. border: 1px solid transparent;
  1018. background: transparent;
  1019. color: transparent;
  1020. &:focus {
  1021. border: 1px solid #444c69;
  1022. .border-radius(2px);
  1023. }
  1024. &:focus-visible {
  1025. outline: 0;
  1026. }
  1027. }
  1028. .layui-layer-tab .layui-layer-title span.layui-this {
  1029. height: 46px;
  1030. }
  1031. .layui-layer-setwin {
  1032. > a {
  1033. background: none !important;
  1034. cite {
  1035. display: none;
  1036. }
  1037. &:after {
  1038. content: "\e625";
  1039. font-family: iconfont;
  1040. font-style: normal;
  1041. font-weight: normal;
  1042. text-decoration: inherit;
  1043. position: absolute;
  1044. font-size: 18px;
  1045. color: #fff;
  1046. margin: 0;
  1047. z-index: 1;
  1048. }
  1049. &:hover {
  1050. text-decoration: none !important;
  1051. background: none !important;
  1052. }
  1053. &:focus {
  1054. text-decoration: none !important;
  1055. }
  1056. }
  1057. .layui-layer-min {
  1058. display: none;
  1059. &:after {
  1060. content: "\e625";
  1061. }
  1062. }
  1063. .layui-layer-max {
  1064. display: none;
  1065. &:after {
  1066. content: "\e623";
  1067. }
  1068. }
  1069. .layui-layer-maxmin {
  1070. display: none;
  1071. &:after {
  1072. content: "\e624";
  1073. }
  1074. }
  1075. .layui-layer-close1 {
  1076. &:after {
  1077. content: "\e626";
  1078. }
  1079. }
  1080. //样式二关闭按钮
  1081. .layui-layer-close2, .layui-layer-close2:hover {
  1082. background: url('../libs/fastadmin-layer/dist/theme/default/icon.png') no-repeat -149px -31px !important;
  1083. top: -30px;
  1084. right: -30px;
  1085. &:after {
  1086. display: none;
  1087. }
  1088. }
  1089. }
  1090. }
  1091. .layui-layer-content {
  1092. clear: both;
  1093. }
  1094. .layui-layer-fast-msg {
  1095. min-width: 100px;
  1096. }
  1097. .layui-layer-fast-tab {
  1098. .layui-layer-title {
  1099. .layui-this {
  1100. color: #333;
  1101. }
  1102. }
  1103. .layui-layer-content {
  1104. .layui-layer-tabmain {
  1105. margin: 0;
  1106. padding: 0;
  1107. }
  1108. }
  1109. }
  1110. .input-group > .msg-box.n-right {
  1111. position: absolute;
  1112. }
  1113. @media (min-width: 564px) {
  1114. body.is-dialog .daterangepicker {
  1115. min-width: 130px;
  1116. }
  1117. body.is-dialog .daterangepicker .ranges ul {
  1118. width: 130px;
  1119. }
  1120. }
  1121. /*手机版样式*/
  1122. @media (max-width: @screen-phone) {
  1123. #firstnav {
  1124. .nav-addtabs {
  1125. //display: none;
  1126. }
  1127. .navbar-custom-menu {
  1128. ul li a {
  1129. padding-left: 10px;
  1130. padding-right: 10px;
  1131. }
  1132. }
  1133. .navbar-nav > .user-menu .user-image {
  1134. margin-top: -3px;
  1135. }
  1136. }
  1137. .fixed-table-toolbar {
  1138. > .bs-bars {
  1139. float: none !important;
  1140. }
  1141. .toolbar {
  1142. .btn {
  1143. min-height: @input-min-height;
  1144. }
  1145. a.btn-refresh, a.btn-del, a.btn-add, a.btn-edit, a.btn-import, a.btn-more, a.btn-recyclebin, .btn-mini-xs, .btn-multi {
  1146. font-size: 0;
  1147. .fa {
  1148. font-size: initial;
  1149. }
  1150. }
  1151. }
  1152. .search {
  1153. max-width: 110px;
  1154. float: left !important;
  1155. }
  1156. }
  1157. .fixed .content-wrapper, .fixed .right-side {
  1158. padding-top: 50px;
  1159. }
  1160. .main-sidebar, .left-side {
  1161. padding-top: 144px;
  1162. }
  1163. }
  1164. /*平板样式*/
  1165. @media (max-width: @screen-xs-max) {
  1166. .wrapper .main-header .logo {
  1167. border-bottom: 0 solid transparent;
  1168. position: absolute;
  1169. top: 0;
  1170. z-index: 1200;
  1171. width: 130px;
  1172. left: 50%;
  1173. margin-left: -65px;
  1174. }
  1175. .sidebar .mobilenav a.btn-app {
  1176. color: #444;
  1177. width: 100px;
  1178. height: 70px;
  1179. font-size: 13px;
  1180. border: none;
  1181. background: #fff;
  1182. i.fa {
  1183. font-size: 24px;
  1184. display: inline-block;
  1185. }
  1186. span {
  1187. margin-top: 5px;
  1188. display: block;
  1189. }
  1190. &.active {
  1191. color: #222d32;
  1192. }
  1193. }
  1194. .wrapper .main-header .navbar .dropdown-menu li {
  1195. > a {
  1196. color: #333;
  1197. &:hover {
  1198. background: #eee;
  1199. }
  1200. }
  1201. &.active > a {
  1202. color: #fff;
  1203. &:hover {
  1204. background: #222d32
  1205. }
  1206. }
  1207. }
  1208. .main-sidebar, .left-side {
  1209. padding-top: 50px;
  1210. }
  1211. .multipletab.multiplenav {
  1212. .main-sidebar {
  1213. padding-top: 95px;
  1214. }
  1215. }
  1216. .n-bootstrap {
  1217. .n-right {
  1218. margin-top: 0;
  1219. top: -20px;
  1220. position: absolute;
  1221. left: 0;
  1222. text-align: right;
  1223. width: 100%;
  1224. .msg-wrap {
  1225. position: relative;
  1226. }
  1227. }
  1228. .col-xs-12 > .n-right {
  1229. .msg-wrap {
  1230. margin-right: 15px;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. /*修复radio和checkbox样式对齐*/
  1236. .radio, .checkbox {
  1237. > label {
  1238. margin-right: 10px;
  1239. > input {
  1240. margin: 5px 0 0;
  1241. }
  1242. }
  1243. }
  1244. .wipecache li a {
  1245. color: #444444 !important;
  1246. }
  1247. /*修正开关关闭下的颜色值*/
  1248. .btn-switcher {
  1249. &.disabled {
  1250. opacity: .6;
  1251. cursor: not-allowed;
  1252. }
  1253. .text-gray {
  1254. color: #d2d6de !important;
  1255. }
  1256. }
  1257. .jumpto input {
  1258. width: 50px;
  1259. margin-left: 5px;
  1260. margin-right: 5px;
  1261. text-align: center;
  1262. display: inline-block;
  1263. }
  1264. .fixed-columns, .fixed-columns-right {
  1265. position: absolute;
  1266. top: 0;
  1267. height: 100%;
  1268. min-height: 41px;
  1269. background-color: #fff;
  1270. box-sizing: border-box;
  1271. z-index: 2;
  1272. box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
  1273. .fixed-table-body {
  1274. min-height: 41px;
  1275. overflow-x: hidden !important;
  1276. .btn-dragsort {
  1277. pointer-events: none;
  1278. cursor: not-allowed;
  1279. opacity: 0.65;
  1280. filter: alpha(opacity=65);
  1281. -webkit-box-shadow: none;
  1282. box-shadow: none;
  1283. }
  1284. }
  1285. }
  1286. .fixed-columns {
  1287. left: 0;
  1288. }
  1289. .fixed-columns-right {
  1290. right: 0;
  1291. box-shadow: -1px 0 8px rgba(0, 0, 0, .08);
  1292. }
  1293. .fix-sticky {
  1294. position: fixed;
  1295. z-index: 100;
  1296. thead {
  1297. background: #fff;
  1298. th, th:first-child {
  1299. border-left: 0;
  1300. border-right: 0;
  1301. border-bottom: 1px solid #eee;
  1302. border-radius: 0;
  1303. }
  1304. }
  1305. }
  1306. .sidebar-menu li.active > a > .fa-angle-left, .sidebar-menu li.active > a > .pull-right-container > .fa-angle-left {
  1307. .rotate(0deg);
  1308. }
  1309. .sidebar-menu li.treeview-open > a > .fa-angle-left, .sidebar-menu li.treeview-open > a > .pull-right-container > .fa-angle-left {
  1310. .rotate(-90deg);
  1311. }
  1312. .sidebar-menu > li {
  1313. //margin: 4px 0 4px 0;
  1314. }
  1315. .sidebar-menu .treeview-menu > li {
  1316. margin: 4px 0 4px 0;
  1317. }
  1318. .bootstrap-tagsinput {
  1319. background-color: #fff;
  1320. border: 1px solid #ccc;
  1321. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  1322. display: inline-block;
  1323. padding: 4px 6px;
  1324. //margin-bottom: 10px;
  1325. color: #555;
  1326. vertical-align: middle;
  1327. //border-radius: 4px;
  1328. //max-width: 100%;
  1329. width: 100%;
  1330. line-height: 23px;
  1331. cursor: text;
  1332. input {
  1333. border: none;
  1334. box-shadow: none;
  1335. outline: none;
  1336. background-color: transparent;
  1337. padding: 0;
  1338. margin: 0;
  1339. font-size: 13px;
  1340. //width: auto !important;
  1341. width: 80px;
  1342. max-width: inherit;
  1343. &:focus {
  1344. border: none;
  1345. box-shadow: none;
  1346. }
  1347. }
  1348. .tagsinput-text {
  1349. display: inline-block;
  1350. overflow: auto;
  1351. visibility: hidden;
  1352. height: 1px;
  1353. position: absolute;
  1354. bottom: -1px;
  1355. left: 0;
  1356. }
  1357. .tag {
  1358. margin-right: 2px;
  1359. color: white;
  1360. min-height: 23px;
  1361. [data-role="remove"] {
  1362. margin-left: 5px;
  1363. cursor: pointer;
  1364. &:after {
  1365. content: "x";
  1366. padding: 0px 2px;
  1367. }
  1368. &:hover {
  1369. background-color: rgba(255, 255, 255, .16);
  1370. }
  1371. }
  1372. }
  1373. }
  1374. .autocomplete-suggestions {
  1375. border-radius: 2px;
  1376. background: #FFF;
  1377. overflow: auto;
  1378. min-width: 200px;
  1379. .box-shadow(0px 20px 30px rgba(83, 88, 93, 0.05), 0px 0px 30px rgba(83, 88, 93, 0.1));
  1380. strong {
  1381. font-weight: normal;
  1382. color: red;
  1383. }
  1384. .autocomplete-suggestion {
  1385. padding: 5px 10px;
  1386. white-space: nowrap;
  1387. overflow: hidden;
  1388. }
  1389. .autocomplete-selected {
  1390. background: #F0F0F0;
  1391. }
  1392. .autocomplete-group {
  1393. padding: 5px 10px;
  1394. strong {
  1395. display: block;
  1396. border-bottom: 1px solid #ddd;
  1397. }
  1398. }
  1399. }
  1400. .autocontent {
  1401. position: relative;
  1402. .autocontent-caret {
  1403. position: absolute;
  1404. right: 0;
  1405. top: 0;
  1406. height: 100%;
  1407. line-height: 1;
  1408. background: #eee;
  1409. color: #ddd;
  1410. vertical-align: middle;
  1411. padding: 0 5px;
  1412. display: flex;
  1413. justify-content: center;
  1414. align-items: center;
  1415. cursor: pointer;
  1416. &:hover {
  1417. color: #ccc;
  1418. }
  1419. }
  1420. }