admin.css 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. html,
  2. body,
  3. .layui-layout {
  4. height: 100%;
  5. }
  6. .pear-admin .layui-header,
  7. .pear-admin .layui-body,
  8. .pear-admin .layui-logo,
  9. .pear-admin .layui-side,
  10. .pear-admin .layui-header .layui-layout-left {
  11. transition: all .3s;
  12. }
  13. .pear-admin .layui-logo .title {
  14. font-size: 20px;
  15. }
  16. .pear-admin .layui-layout-right .layui-nav-child {
  17. border: 1px solid whitesmoke;
  18. border-radius: 4px;
  19. width: 150px;
  20. }
  21. .pear-admin .layui-header {
  22. left: 230px;
  23. width: calc(100% - 230px);
  24. background-color: white;
  25. border-bottom: 1px solid whitesmoke;
  26. }
  27. .pear-admin .layui-header .layui-nav-img {
  28. width: 30px;
  29. height: 30px;
  30. }
  31. .pear-admin .layui-layout-control {
  32. left: 140px;
  33. position: absolute;
  34. }
  35. .pear-admin .layui-layout-control .layui-nav{
  36. padding: 0px;
  37. }
  38. .pear-admin .layui-logo {
  39. width: 230px;
  40. height: 59px;
  41. line-height: 59px;
  42. position: relative;
  43. background-color: #28333E;
  44. border-bottom: 1px solid rgba(0,0,0,.12);
  45. }
  46. .pear-admin .layui-logo img {
  47. width: 34px;
  48. height: 34px;
  49. }
  50. .pear-admin .layui-logo .title {
  51. font-size: 21px;
  52. font-weight: 550;
  53. color: #5FB878;
  54. position: relative;
  55. top: 5px;
  56. margin-left: 5px;
  57. }
  58. .pear-admin .layui-logo .logo {
  59. display: none;
  60. }
  61. .pear-admin .layui-side {
  62. top: 0px;
  63. width: 230px;
  64. box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  65. z-index: 9999;
  66. }
  67. .pear-admin .layui-side-scroll::-webkit-scrollbar {
  68. width: 0px;
  69. height: 0px;
  70. }
  71. .pear-admin .layui-side-scroll {
  72. height: calc(100% - 60px) !important;
  73. background-color: #28333E;
  74. width: 247px;
  75. }
  76. .pear-admin .layui-header .layui-nav .layui-nav-item>a {
  77. color: black;
  78. font-size: 15px;
  79. }
  80. .pear-admin .layui-body {
  81. left: 230px;
  82. bottom: 0px;
  83. padding-bottom: 0px;
  84. }
  85. .pear-admin .layui-layout-left {
  86. left: 0px;
  87. }
  88. /** 隐 藏 布 局 样 式 */
  89. .pear-mini .layui-logo .title {
  90. display: none;
  91. }
  92. .pear-mini .layui-logo .logo {
  93. display: inline-block;
  94. }
  95. .pear-mini .layui-side {
  96. width: 60px;
  97. }
  98. .pear-mini .layui-header {
  99. left: 60px;
  100. width: calc(100% - 60px);
  101. }
  102. .pear-mini .layui-body {
  103. left: 60px;
  104. }
  105. .pear-mini .layui-logo {
  106. width: 60px;
  107. }
  108. .pear-mini .layui-nav-tree .layui-nav-item span {
  109. display: none;
  110. }
  111. .pear-mini .bottom-nav li {
  112. width: 100% !important;
  113. }
  114. .pear-mini .layui-side-scroll {
  115. height: calc(100% - 60px);
  116. }
  117. .pear-admin .layui-header .layui-nav .layui-nav-bar {
  118. top: 0px !important;
  119. height: 2px !important;
  120. background-color: #5FB878;
  121. }
  122. .pear-admin .layui-header .layui-nav .layui-this:after {
  123. display: none;
  124. }
  125. .pear-admin .layui-header .layui-nav-more {
  126. display: none;
  127. }
  128. .pear-collasped-pe {
  129. display: none;
  130. width: 50px;
  131. position: absolute;
  132. z-index: 400000;
  133. bottom: 30px;
  134. right: 30px;
  135. background-color: #5FB878 !important;
  136. height: 50px;
  137. line-height: 50px;
  138. text-align: center;
  139. border-radius: 50px;
  140. box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  141. }
  142. .pear-collasped-pe a {
  143. color: white !important;
  144. }
  145. @media screen and (min-width: 768px) {
  146. .layui-hide-sm {
  147. display: inline-block !important;
  148. }
  149. }
  150. @media screen and (min-width: 769px) {
  151. .layui-hide-sm {
  152. display: none !important;
  153. }
  154. }
  155. /** 新增兼容 */
  156. @media screen and (max-width:768px) {
  157. .collaspe {
  158. display: none !important;
  159. }
  160. .pear-collasped-pe {
  161. display: inline-block !important;
  162. }
  163. .layui-layout-control {
  164. left: 45px !important;
  165. }
  166. .layui-layout-left {
  167. padding-left: 10px;
  168. padding-right: 10px;
  169. }
  170. .pear-mini .bottom-nav {
  171. display: none;
  172. }
  173. .pear-mini .layui-side-scroll {
  174. height: calc(100% - 62px);
  175. }
  176. /** 隐 藏 布 局 样 式 */
  177. .pear-mini .layui-side {
  178. width: 0px;
  179. }
  180. .pear-mini .layui-header {
  181. left: 0px;
  182. width: 100%;
  183. }
  184. .pear-mini .layui-body {
  185. left: 0px;
  186. }
  187. .pear-mini .layui-logo {
  188. width: 0px;
  189. }
  190. .pear-admin .layui-body {
  191. left: 0px;
  192. }
  193. .pear-admin .layui-header {
  194. left: 0px;
  195. width: 100%;
  196. }
  197. .pear-admin .pear-cover {
  198. width: 100%;
  199. height: 100%;
  200. background-color: #1E1E1E;
  201. display: block;
  202. position: absolute;
  203. z-index: 1000;
  204. opacity: 0;
  205. margin-top: -60px;
  206. }
  207. .pear-mini .pear-cover {
  208. display: none;
  209. }
  210. }
  211. @-webkit-keyframes am-horizontal-roll_show {
  212. 0% {
  213. opacity: 1;
  214. -webkit-transform: translateX(2000px);
  215. transform: translateX(2000px)
  216. }
  217. 100% {
  218. opacity: 1;
  219. -webkit-transform: translateX(0);
  220. transform: translateX(0)
  221. }
  222. }
  223. @keyframes am-horizontal-roll_show {
  224. 0% {
  225. opacity: 1;
  226. -webkit-transform: translateX(800px);
  227. -ms-transform: translateX(800px);
  228. transform: translateX(800px)
  229. }
  230. 100% {
  231. opacity: 1;
  232. -webkit-transform: translateX(0);
  233. -ms-transform: translateX(0);
  234. transform: translateX(0)
  235. }
  236. }
  237. .layer-anim-right {
  238. -webkit-animation: am-horizontal-roll_show .6s ease-out;
  239. animation: am-horizontal-roll_show .6s ease-out;
  240. }
  241. /** 亮色侧边风格 */
  242. .light-theme .layui-logo {
  243. background-color: white !important;
  244. color: black !important;
  245. border-bottom: 1px whitesmoke solid;
  246. }
  247. .light-theme .layui-side-scroll {
  248. background-color: white !important;
  249. color: black !important;
  250. }
  251. .light-theme .layui-side {
  252. box-shadow: 2px 0 8px 0 rgba(29, 35, 41, .05) !important;
  253. }
  254. /** 主 题 选 择 界 面 样 式 */
  255. .pearone-color .color-title {
  256. padding: 15px 0 0px 20px;
  257. margin-bottom: 4px;
  258. }
  259. .pearone-color .color-content {
  260. padding: 15px 10px 0 20px;
  261. }
  262. .pearone-color .color-content ul {
  263. list-style: none;
  264. padding: 0px;
  265. }
  266. .pearone-color .color-content ul li {
  267. position: relative;
  268. display: inline-block;
  269. vertical-align: top;
  270. width: 70px;
  271. height: 50px;
  272. margin: 0 20px 20px 0;
  273. padding: 2px 2px 2px 2px;
  274. background-color: #f2f2f2;
  275. cursor: pointer;
  276. font-size: 12px;
  277. color: #666;
  278. }
  279. .pearone-color .color-content li.layui-this:after,
  280. .pearone-color .color-content li:hover:after {
  281. width: 100%;
  282. height: 100%;
  283. padding: 4px;
  284. top: -5px;
  285. left: -5px;
  286. border: #5FB878 2px solid;
  287. opacity: 1;
  288. border-radius: 4px;
  289. }
  290. .pearone-color .color-content li:after {
  291. content: '';
  292. position: absolute;
  293. z-index: 20;
  294. top: 50%;
  295. left: 50%;
  296. width: 1px;
  297. height: 0;
  298. border: 2px solid #F2F2F2;
  299. transition: all .3s;
  300. -webkit-transition: all .3s;
  301. opacity: 0;
  302. }
  303. .select-color {
  304. margin-bottom: 30px;
  305. }
  306. .select-color .select-color-title {
  307. padding: 15px 0 0px 20px;
  308. margin-bottom: 4px;
  309. }
  310. .select-color .select-color-content {
  311. padding: 20px 0 0px 0px;
  312. margin-bottom: 4px;
  313. }
  314. .select-color .select-color-content .select-color-item {
  315. background-color: gray;
  316. width: 30px;
  317. height: 30px;
  318. border-radius: 3px;
  319. float: left;
  320. margin-left: 20px;
  321. color: white;
  322. font-size: 18px;
  323. text-align: center;
  324. box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .15);
  325. line-height: 30px;
  326. }
  327. /** 友情链接 */
  328. .more-setting {
  329. margin-top: 45px;
  330. }
  331. .more-setting form {
  332. margin-top: 30px;
  333. }
  334. .more-setting-title {
  335. padding: 15px 0 0px 20px;
  336. margin-bottom: 4px;
  337. }
  338. .more-setting .layui-form-label {
  339. width: 60px;
  340. }
  341. .more-menu-list {
  342. width: 100%;
  343. margin-top: 80px;
  344. }
  345. .more-menu-item:first-child {
  346. border-top: 1px solid #e8e8e8;
  347. }
  348. .more-menu-item .layui-icon {
  349. font-size: 18px;
  350. padding-right: 10px;
  351. }
  352. .more-menu-item {
  353. color: #595959;
  354. height: 50px;
  355. line-height: 50px;
  356. font-size: 16px;
  357. padding: 0 25px;
  358. border-bottom: 1px solid #e8e8e8;
  359. font-style: normal;
  360. display: block;
  361. }
  362. .more-menu-item:hover {
  363. background-color: whitesmoke;
  364. }
  365. .more-menu-item:after {
  366. color: #8c8c8c;
  367. right: 16px;
  368. content: "\e602";
  369. position: absolute;
  370. font-family: layui-icon !important;
  371. }