frontend.less 9.4 KB

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