backend.less 32 KB

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