backend.less 31 KB

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