frontend.less 8.8 KB

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