frontend.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  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. /*修复radio和checkbox样式对齐*/
  100. .radio, .checkbox {
  101. > label {
  102. margin-right: 10px;
  103. > input {
  104. margin: 2px 0 0;
  105. }
  106. }
  107. }
  108. #header-navbar li.dropdown ul.dropdown-menu {
  109. min-width:94px;
  110. }
  111. form.form-horizontal .control-label {
  112. font-weight: normal;
  113. }
  114. .panel-default {
  115. padding: 0 15px;
  116. border: none;
  117. .box-shadow(none);
  118. > .panel-heading {
  119. position: relative;
  120. font-size: 16px;
  121. padding: 15px 0;
  122. background: #fff;
  123. border-bottom: 1px solid #f5f5f5;
  124. }
  125. h2.page-header {
  126. margin-top:0;
  127. height:50px;
  128. line-height:31px;
  129. font-size:18px;
  130. padding:10px 0;
  131. border-bottom: 1px solid #f5f5f5;
  132. }
  133. > .panel-heading {
  134. .panel-title {
  135. color: #313131;
  136. > i {
  137. display: none;
  138. }
  139. }
  140. .more {
  141. position: absolute;
  142. top: 13px;
  143. right: 0;
  144. display: block;
  145. color: #919191;
  146. .transition(all 0.3s ease);
  147. }
  148. .more:hover {
  149. color: #616161;
  150. .transition(all 0.3s ease);
  151. }
  152. .panel-bar {
  153. position: absolute;
  154. top: 7px;
  155. right: 0;
  156. display: block;
  157. }
  158. }
  159. }
  160. @media (max-width: 767px) {
  161. .panel-default {
  162. padding: 0 10px;
  163. > .panel-heading {
  164. padding: 10px 0;
  165. .more {
  166. top: 8px;
  167. }
  168. }
  169. }
  170. > .panel-body {
  171. position: relative;
  172. padding: 15px 0;
  173. }
  174. > .panel-footer {
  175. padding: 15px 0;
  176. background: none;
  177. }
  178. }
  179. .panel-gray {
  180. .box-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  181. > .panel-heading {
  182. background-color: #f5f5f5;
  183. color: #919191;
  184. }
  185. > .panel-body {
  186. color: #919191;
  187. background: #fff;
  188. border-bottom-left-radius: 4px;
  189. border-bottom-right-radius: 4px;
  190. }
  191. }
  192. .panel-page {
  193. padding: 45px 50px 50px;
  194. min-height: 500px;
  195. .panel-heading {
  196. background: transparent;
  197. border-bottom: none;
  198. margin: 0 0 30px 0;
  199. padding: 0;
  200. h2 {
  201. font-size: 25px;
  202. margin-top: 0;
  203. }
  204. }
  205. }
  206. @media (max-width: 767px) {
  207. .panel-page {
  208. padding: 15px;
  209. min-height: 300px;
  210. }
  211. }
  212. .nav-pills > li {
  213. margin-right: 5px;
  214. > a {
  215. padding: 10px 15px;
  216. color: #616161;
  217. .transition(all 0.3s ease);
  218. &:hover {
  219. .transition(all 0.3s ease);
  220. background-color: #f5f5f5;
  221. }
  222. }
  223. &.active > a {
  224. border:none;
  225. color: #fff;
  226. background: #46c37b;
  227. .transition(all 0.3s ease);
  228. border-radius: 3px;
  229. }
  230. }
  231. .nav-pills.nav-pills-sm > li > a {
  232. font-size: 12px;
  233. line-height: 1.5;
  234. padding: 4px 13px;
  235. }
  236. .fieldlist dd {
  237. display: block;
  238. margin: 5px 0;
  239. input {
  240. display: inline-block;
  241. width: 300px;
  242. }
  243. input:first-child {
  244. width: 110px;
  245. }
  246. ins {
  247. width: 110px;
  248. display: inline-block;
  249. text-decoration: none;
  250. font-weight: bold;
  251. }
  252. }
  253. /* 弹窗中的表单 */
  254. .form-layer {
  255. height:100%;min-height:150px;min-width:300px;
  256. .form-body {
  257. width:100%;
  258. overflow:auto;
  259. top:0;
  260. position:absolute;
  261. z-index:10;
  262. bottom:50px;
  263. padding:15px;
  264. }
  265. .form-footer {
  266. height:50px;
  267. line-height:50px;
  268. background-color: #ecf0f1;
  269. width:100%;
  270. position:absolute;
  271. z-index:200;
  272. bottom:0;
  273. margin:0;
  274. }
  275. .form-footer .form-group{
  276. margin-left:0;
  277. margin-right:0;
  278. }
  279. }
  280. footer.footer{
  281. width:100%;color: #aaa;background: #555;margin-top:25px;
  282. .copyright{
  283. line-height: 50px;text-align: center;background: #393939;margin:0;
  284. a{
  285. color: #aaa;
  286. &:hover{color: #fff;}
  287. }
  288. }
  289. }
  290. .rotate{
  291. .transition-duration(0.8s);
  292. .transition-property(transform);
  293. overflow:hidden;
  294. &:hover{
  295. .transform(rotate(360deg));
  296. }
  297. }
  298. .user-section {
  299. background: #fff;
  300. padding: 15px;
  301. margin-bottom: 20px;
  302. .border-radius(4px);
  303. }
  304. .login-section {
  305. margin: 50px auto;
  306. width: 460px;
  307. .border-radius(0);
  308. &.login-section-weixin {
  309. min-height: 315px;
  310. }
  311. .logon-tab {
  312. margin: -15px -15px 0 -15px;
  313. > a {
  314. display: block;
  315. padding: 20px;
  316. float: left;
  317. width: 50%;
  318. font-size: 16px;
  319. text-align: center;
  320. color: #616161;
  321. background-color: #ececec;
  322. .transition(all 0.3s ease);
  323. &:hover {
  324. background-color: #fafafa;
  325. .transition(all 0.3s ease);
  326. }
  327. &.active {
  328. background-color: #fff;
  329. .transition(all 0.3s ease);
  330. }
  331. }
  332. }
  333. .login-main {
  334. padding: 40px 45px 20px 45px;
  335. }
  336. .control-label {
  337. font-size:13px;
  338. }
  339. .n-bootstrap {
  340. .form-group {
  341. position:relative;
  342. }
  343. .input-group {
  344. position: inherit;
  345. }
  346. .n-right {
  347. margin-top:0;
  348. top:0;
  349. position:absolute;
  350. left:0;
  351. text-align:right;
  352. width:100%;
  353. .msg-wrap {
  354. position:relative;
  355. }
  356. }
  357. }
  358. }
  359. main.content {
  360. width:100%;
  361. overflow:auto;
  362. padding:15px;
  363. padding-top:20px;
  364. min-height:calc(~ '100vh - 125px');
  365. }
  366. .sidenav {
  367. padding: 20px 0 10px 0;
  368. margin-bottom: 20px;
  369. background-color: #fff;
  370. .list-group{
  371. &:last-child {
  372. margin-bottom: 0;
  373. }
  374. .list-group-heading {
  375. list-style-type: none;
  376. color: #919191;
  377. margin-bottom: 10px;
  378. margin-left: 35px;
  379. font-size:14px;
  380. }
  381. .list-group-item {
  382. .border-radius(0);
  383. border: none;
  384. padding: 0;
  385. border-left: 2px solid transparent;
  386. &:last-child,&:first-child {
  387. .border-radius(0);
  388. }
  389. &:hover {
  390. border-left: 2px solid rgba(245, 245, 245, 0.38);
  391. background-color: rgba(245, 245, 245, 0.38);
  392. }
  393. > a {
  394. display: block;
  395. color: #616161;
  396. padding: 10px 15px 10px 35px;
  397. }
  398. &.active {
  399. border-left: 2px solid #46c37b;
  400. background-color: rgba(245, 245, 245, 0.38);
  401. > a {
  402. color: #46c37b;
  403. }
  404. }
  405. }
  406. }
  407. }
  408. .nav li{
  409. .avatar-text,.avatar-img {
  410. height:30px;
  411. width:30px;
  412. line-height:30px;
  413. font-size:14px;
  414. }
  415. .avatar-img{
  416. font-size:0;
  417. img{
  418. border-radius:30px;
  419. width:30px;height:30px;
  420. }
  421. }
  422. }
  423. .avatar-text,.avatar-img {
  424. display: inline-block;
  425. box-sizing: content-box;
  426. color: #fff;
  427. text-align: center;
  428. vertical-align: top;
  429. background-color: #e8ecf3;
  430. font-weight: normal;
  431. width: 48px;
  432. height: 48px;
  433. border-radius: 48px;
  434. font-size: 24px;
  435. line-height: 48px;
  436. }
  437. .avatar-img {
  438. font-size:0;
  439. img{
  440. border-radius:48px;
  441. width:48px;height:48px;
  442. }
  443. }
  444. @media (max-width: 767px) {
  445. main.content {
  446. position:inherit;
  447. padding:15px 0;
  448. }
  449. .login-section {
  450. width: 100%;
  451. margin: 20px auto;
  452. .login-main {
  453. padding: 20px 0 0 0;
  454. }
  455. }
  456. footer.footer {
  457. position:inherit;
  458. .copyright{padding:10px;line-height:30px;}
  459. }
  460. }
  461. .pager {
  462. .pagination {
  463. margin: 0;
  464. }
  465. li {
  466. margin: 0 .4em;
  467. display: inline-block;
  468. &:first-child, &:last-child {
  469. > a, > span {
  470. padding: .5em 1.2em;
  471. }
  472. }
  473. }
  474. }
  475. .pager li > a, .pager li > span {
  476. background: none;
  477. border: 1px solid #e6e6e6;
  478. border-radius: 0.25em;
  479. padding: .5em .93em;
  480. font-size: 14px;
  481. }
  482. .jumpto input {
  483. height: 31px;
  484. width: 50px;
  485. margin-left: 5px;
  486. margin-right: 5px;
  487. text-align: center;
  488. display: inline-block;
  489. }