frontend.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. @import (reference) "bootstrap-less/mixins.less";
  2. @import (reference) "bootstrap-less/variables.less";
  3. @import "lesshat.less";
  4. @import url("../css/bootstrap.css");
  5. @import url("../css/fastadmin.css");
  6. @import url("../css/iconfont.css");
  7. @import url("../libs/font-awesome/css/font-awesome.min.css");
  8. @import url("../libs/toastr/toastr.min.css");
  9. @import url("../libs/fastadmin-layer/dist/theme/default/layer.css");
  10. @import url("../libs/bootstrap-table/dist/bootstrap-table.min.css");
  11. @import url("../libs/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css");
  12. @import url("../libs/bootstrap-daterangepicker/daterangepicker.css");
  13. @import url("../libs/nice-validator/dist/jquery.validator.css");
  14. @import url("../libs/bootstrap-select/dist/css/bootstrap-select.min.css");
  15. @import url("../libs/fastadmin-selectpage/selectpage.css");
  16. @import url("../libs/bootstrap-slider/slider.css");
  17. .clearfix() {
  18. &:before,
  19. &:after {
  20. content: " ";
  21. display: table;
  22. }
  23. &:after {
  24. clear: both;
  25. }
  26. }
  27. html,
  28. body {
  29. height: 100%;
  30. }
  31. body {
  32. padding-top: 50px;
  33. font-size:13px;
  34. background:#f4f6f8;
  35. }
  36. .dropdown:hover .dropdown-menu {
  37. display: block;
  38. margin-top: 0;
  39. }
  40. .navbar {
  41. border:none;
  42. }
  43. .navbar-nav {
  44. > li > a {
  45. font-size:14px;
  46. }
  47. ul.dropdown-menu > li > a {
  48. padding: 5px 20px;
  49. font-size: 13px;
  50. }
  51. }
  52. .toast-top-center{
  53. top:50px;
  54. }
  55. #toast-container > div{
  56. .box-shadow(none);
  57. }
  58. /*修复nice-validator和summernote的编辑框冲突*/
  59. .nice-validator .note-editor .note-editing-area .note-editable{
  60. display:inherit;
  61. }
  62. /*预览区域*/
  63. .plupload-preview,.faupload-preview {
  64. padding:0 10px;
  65. margin-bottom:0;
  66. li {
  67. margin-top:10px;
  68. }
  69. .thumbnail {
  70. margin-bottom:10px;
  71. }
  72. a{
  73. display:block;
  74. &:first-child{
  75. height:90px;
  76. }
  77. img{
  78. height:80px;
  79. object-fit: cover;
  80. }
  81. }
  82. }
  83. .layui-layer-content {
  84. clear: both;
  85. }
  86. .layui-layer-fast-msg {
  87. min-width: 100px;
  88. border-radius: 2px;
  89. background-color: rgba(0,0,0,.6);
  90. color: #fff;
  91. .layui-layer-content {
  92. padding: 12px 25px;
  93. text-align: center;
  94. }
  95. }
  96. .input-group > .msg-box.n-right {
  97. position: absolute;
  98. }
  99. .bootstrap-select .status {
  100. background: #f0f0f0;
  101. clear: both;
  102. color: #999;
  103. font-size: 12px;
  104. font-weight: 500;
  105. line-height: 1;
  106. margin-bottom: -5px;
  107. padding: 10px 20px;
  108. }
  109. select.bs-select-hidden, select.selectpicker {
  110. display: inherit !important;
  111. max-height: 31px;
  112. overflow: hidden;
  113. &[multiple] {
  114. height: 31px;
  115. //visibility: hidden;
  116. padding: 0;
  117. background: #f4f4f4;
  118. option {
  119. color: #f4f4f4;
  120. .opacity(0);
  121. }
  122. @media not all and (min-resolution: .001dpcm) {
  123. @supports (-webkit-appearance:none) {
  124. visibility: hidden;
  125. }
  126. }
  127. }
  128. }
  129. input.selectpage {
  130. color: transparent;
  131. pointer-events: none;
  132. }
  133. .sp_container {
  134. input.selectpage {
  135. color: inherit;
  136. pointer-events: inherit;
  137. padding-left: 12px;
  138. padding-right: 12px;
  139. }
  140. .sp_element_box {
  141. input.selectpage {
  142. padding-left: 0;
  143. padding-right: 0;
  144. }
  145. li:first-child {
  146. input.selectpage {
  147. padding-left: 9px;
  148. padding-right: 9px;
  149. }
  150. }
  151. }
  152. }
  153. /*修复radio和checkbox样式对齐*/
  154. .radio, .checkbox {
  155. > label {
  156. margin-right: 10px;
  157. > input {
  158. margin: 2px 0 0;
  159. }
  160. }
  161. }
  162. #header-navbar li.dropdown ul.dropdown-menu {
  163. min-width:94px;
  164. }
  165. form.form-horizontal .control-label {
  166. font-weight: normal;
  167. }
  168. .panel-default {
  169. padding: 0 15px;
  170. border: none;
  171. .box-shadow(none);
  172. > .panel-heading {
  173. position: relative;
  174. font-size: 16px;
  175. padding: 15px 0;
  176. background: #fff;
  177. border-bottom: 1px solid #f5f5f5;
  178. }
  179. h2.page-header {
  180. margin-top:0;
  181. height:50px;
  182. line-height:31px;
  183. font-size:18px;
  184. padding:10px 0;
  185. border-bottom: 1px solid #f5f5f5;
  186. }
  187. > .panel-heading {
  188. .panel-title {
  189. color: #313131;
  190. > i {
  191. display: none;
  192. }
  193. }
  194. .more {
  195. position: absolute;
  196. top: 13px;
  197. right: 0;
  198. display: block;
  199. color: #919191;
  200. .transition(all 0.3s ease);
  201. }
  202. .more:hover {
  203. color: #616161;
  204. .transition(all 0.3s ease);
  205. }
  206. .panel-bar {
  207. position: absolute;
  208. top: 7px;
  209. right: 0;
  210. display: block;
  211. }
  212. }
  213. }
  214. @media (max-width: 767px) {
  215. .panel-default {
  216. padding: 0 10px;
  217. > .panel-heading {
  218. padding: 10px 0;
  219. .more {
  220. top: 8px;
  221. }
  222. }
  223. }
  224. > .panel-body {
  225. position: relative;
  226. padding: 15px 0;
  227. }
  228. > .panel-footer {
  229. padding: 15px 0;
  230. background: none;
  231. }
  232. }
  233. .panel-gray {
  234. .box-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  235. > .panel-heading {
  236. background-color: #f5f5f5;
  237. color: #919191;
  238. }
  239. > .panel-body {
  240. color: #919191;
  241. background: #fff;
  242. border-bottom-left-radius: 4px;
  243. border-bottom-right-radius: 4px;
  244. }
  245. }
  246. .panel-page {
  247. padding: 45px 50px 50px;
  248. min-height: 500px;
  249. .panel-heading {
  250. background: transparent;
  251. border-bottom: none;
  252. margin: 0 0 30px 0;
  253. padding: 0;
  254. h2 {
  255. font-size: 25px;
  256. margin-top: 0;
  257. }
  258. }
  259. }
  260. @media (max-width: 767px) {
  261. .panel-page {
  262. padding: 15px;
  263. min-height: 300px;
  264. }
  265. }
  266. .nav-pills > li {
  267. margin-right: 5px;
  268. > a {
  269. padding: 10px 15px;
  270. color: #616161;
  271. .transition(all 0.3s ease);
  272. &:hover {
  273. .transition(all 0.3s ease);
  274. background-color: #f5f5f5;
  275. }
  276. }
  277. &.active > a {
  278. border:none;
  279. color: #fff;
  280. background: #46c37b;
  281. .transition(all 0.3s ease);
  282. border-radius: 3px;
  283. }
  284. }
  285. .nav-pills.nav-pills-sm > li > a {
  286. font-size: 12px;
  287. line-height: 1.5;
  288. padding: 4px 13px;
  289. }
  290. .fieldlist dd {
  291. display: block;
  292. margin: 5px 0;
  293. input {
  294. display: inline-block;
  295. width: 300px;
  296. }
  297. input:first-child {
  298. width: 110px;
  299. }
  300. ins {
  301. width: 110px;
  302. display: inline-block;
  303. text-decoration: none;
  304. font-weight: bold;
  305. }
  306. }
  307. /* 弹窗中的表单 */
  308. .form-layer {
  309. height:100%;min-height:150px;min-width:300px;
  310. .form-body {
  311. width:100%;
  312. overflow:auto;
  313. top:0;
  314. position:absolute;
  315. z-index:10;
  316. bottom:50px;
  317. padding:15px;
  318. }
  319. .form-footer {
  320. height:50px;
  321. line-height:50px;
  322. background-color: #ecf0f1;
  323. width:100%;
  324. position:absolute;
  325. z-index:200;
  326. bottom:0;
  327. margin:0;
  328. }
  329. .form-footer .form-group{
  330. margin-left:0;
  331. margin-right:0;
  332. }
  333. }
  334. footer.footer{
  335. width:100%;color: #aaa;background: #555;margin-top:25px;
  336. .copyright{
  337. line-height: 50px;text-align: center;background: #393939;margin:0;
  338. a{
  339. color: #aaa;
  340. &:hover{color: #fff;}
  341. }
  342. }
  343. }
  344. .rotate{
  345. .transition-duration(0.8s);
  346. .transition-property(transform);
  347. overflow:hidden;
  348. &:hover{
  349. .transform(rotate(360deg));
  350. }
  351. }
  352. .user-section {
  353. background: #fff;
  354. padding: 15px;
  355. margin-bottom: 20px;
  356. .border-radius(4px);
  357. }
  358. .login-section {
  359. margin: 50px auto;
  360. width: 460px;
  361. .border-radius(0);
  362. &.login-section-weixin {
  363. min-height: 315px;
  364. }
  365. .logon-tab {
  366. margin: -15px -15px 0 -15px;
  367. > a {
  368. display: block;
  369. padding: 20px;
  370. float: left;
  371. width: 50%;
  372. font-size: 16px;
  373. text-align: center;
  374. color: #616161;
  375. background-color: #ececec;
  376. .transition(all 0.3s ease);
  377. &:hover {
  378. background-color: #fafafa;
  379. .transition(all 0.3s ease);
  380. }
  381. &.active {
  382. background-color: #fff;
  383. .transition(all 0.3s ease);
  384. }
  385. }
  386. }
  387. .login-main {
  388. padding: 40px 45px 20px 45px;
  389. }
  390. .control-label {
  391. font-size:13px;
  392. }
  393. .n-bootstrap {
  394. .form-group {
  395. position:relative;
  396. }
  397. .input-group {
  398. position: inherit;
  399. }
  400. .n-right {
  401. margin-top:0;
  402. top:0;
  403. position:absolute;
  404. left:0;
  405. text-align:right;
  406. width:100%;
  407. .msg-wrap {
  408. position:relative;
  409. }
  410. }
  411. }
  412. }
  413. main.content {
  414. width:100%;
  415. overflow:auto;
  416. padding:15px;
  417. padding-top:20px;
  418. min-height:calc(~ '100vh - 125px');
  419. }
  420. .sidenav {
  421. padding: 20px 0 10px 0;
  422. margin-bottom: 20px;
  423. background-color: #fff;
  424. .list-group{
  425. &:last-child {
  426. margin-bottom: 0;
  427. }
  428. .list-group-heading {
  429. list-style-type: none;
  430. color: #919191;
  431. margin-bottom: 10px;
  432. margin-left: 35px;
  433. font-size:14px;
  434. }
  435. .list-group-item {
  436. .border-radius(0);
  437. border: none;
  438. padding: 0;
  439. border-left: 2px solid transparent;
  440. &:last-child,&:first-child {
  441. .border-radius(0);
  442. }
  443. &:hover {
  444. border-left: 2px solid rgba(245, 245, 245, 0.38);
  445. background-color: rgba(245, 245, 245, 0.38);
  446. }
  447. > a {
  448. display: block;
  449. color: #616161;
  450. padding: 10px 15px 10px 35px;
  451. }
  452. &.active {
  453. border-left: 2px solid #46c37b;
  454. background-color: rgba(245, 245, 245, 0.38);
  455. > a {
  456. color: #46c37b;
  457. }
  458. }
  459. }
  460. }
  461. }
  462. .nav li{
  463. .avatar-text,.avatar-img {
  464. height:30px;
  465. width:30px;
  466. line-height:30px;
  467. font-size:14px;
  468. }
  469. .avatar-img{
  470. font-size:0;
  471. img{
  472. border-radius:30px;
  473. width:30px;height:30px;
  474. }
  475. }
  476. }
  477. .avatar-text,.avatar-img {
  478. display: inline-block;
  479. box-sizing: content-box;
  480. color: #fff;
  481. text-align: center;
  482. vertical-align: top;
  483. background-color: #e8ecf3;
  484. font-weight: normal;
  485. width: 48px;
  486. height: 48px;
  487. border-radius: 48px;
  488. font-size: 24px;
  489. line-height: 48px;
  490. }
  491. .avatar-img {
  492. font-size:0;
  493. img{
  494. border-radius:48px;
  495. width:48px;height:48px;
  496. }
  497. }
  498. @media (max-width: 767px) {
  499. main.content {
  500. position:inherit;
  501. padding:15px 0;
  502. }
  503. .login-section {
  504. width: 100%;
  505. margin: 20px auto;
  506. .login-main {
  507. padding: 20px 0 0 0;
  508. }
  509. }
  510. footer.footer {
  511. position:inherit;
  512. .copyright{padding:10px;line-height:30px;}
  513. }
  514. }
  515. .pager {
  516. .pagination {
  517. margin: 0;
  518. }
  519. li {
  520. margin: 0 .4em;
  521. display: inline-block;
  522. &:first-child, &:last-child {
  523. > a, > span {
  524. padding: .5em 1.2em;
  525. }
  526. }
  527. }
  528. }
  529. .pager li > a, .pager li > span {
  530. background: none;
  531. border: 1px solid #e6e6e6;
  532. border-radius: 0.25em;
  533. padding: .5em .93em;
  534. font-size: 14px;
  535. }
  536. .jumpto input {
  537. height: 31px;
  538. width: 50px;
  539. margin-left: 5px;
  540. margin-right: 5px;
  541. text-align: center;
  542. display: inline-block;
  543. }