frontend.less 9.0 KB

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