backend.less 25 KB

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