backend.less 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625
  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. }