frontend.less 9.6 KB

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