frontend.less 9.9 KB

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