frontend.less 11 KB

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