frontend.less 10.0 KB

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