backend.less 31 KB

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