index.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. }
  5. html, body {
  6. height: 100%;
  7. background-color: #EEE;
  8. }
  9. body {
  10. height: 100vh;
  11. background-color: #EEE;
  12. background-image: url(admin-loading.gif);
  13. background-repeat: no-repeat;
  14. background-position: 50% 50%;
  15. }
  16. .app {
  17. height: 100%;
  18. font-size: 16px;
  19. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  20. }
  21. .app {
  22. background-color: #EEE;
  23. }
  24. /* 变量 */
  25. body {
  26. --nav-left-width: 200px;
  27. --nav-left-width-fold: 64px;
  28. --nav-right-1-height: 50px;
  29. --nav-right-2-height: 35px;
  30. }
  31. .nav-left, .nav-right {
  32. position: fixed;
  33. top: 0;
  34. height: 100%;
  35. }
  36. /* 左边 */
  37. .nav-left {
  38. width: var(--nav-left-width);
  39. left: 0px;
  40. z-index: 200;
  41. overflow: hidden;
  42. }
  43. .nav-left-top {
  44. width: 100%;
  45. box-sizing: border-box;
  46. height: 85px;
  47. line-height: 85px; /* z-index: 100; */
  48. overflow: hidden;
  49. }
  50. .nav-left-bottom {
  51. width: 100%;
  52. box-sizing: border-box;
  53. height: calc(100% - 85px);
  54. overflow: hidden;
  55. }
  56. /* 右边 */
  57. .nav-right {
  58. width: calc(100% - var(--nav-left-width));
  59. right: 0px;
  60. z-index: 100;
  61. }
  62. .nav-right-1 {
  63. height: var(--nav-right-1-height);
  64. line-height: var(--nav-right-1-height);
  65. z-index: 200;
  66. position: relative;
  67. border-bottom: 1px #F1F1F1 solid;
  68. box-sizing: border-box;
  69. overflow: hidden;
  70. }
  71. .nav-right-2 {
  72. height: var(--nav-right-2-height);
  73. line-height: var(--nav-right-2-height);
  74. z-index: 200;
  75. position: relative;
  76. box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  77. }
  78. .nav-right-3 {
  79. width: 100%;
  80. height: calc(100vh - var(--nav-right-1-height) - var(--nav-right-2-height));
  81. position: relative;
  82. overflow: hidden;
  83. }
  84. /* .fas{transition: all 0s;} */
  85. /* 所有带动画的元素 */
  86. .admin-logo, .nav-left, .nav-left-top, .nav-left-bottom, .nav-right /* , .nav-right-2 * */
  87. {
  88. transition: all 0.2s;
  89. }
  90. /* 菜单折叠 */
  91. .app-fold {
  92. --nav-left-width: 64px;
  93. }
  94. /* 菜单折叠时 部分元素隐藏 */
  95. .app-fold .admin-title, .app-fold .menu-name, .app-fold-right .el-submenu__icon-arrow {
  96. display: none;
  97. }
  98. .app-fold .admin-logo {
  99. margin-left: 12px !important;
  100. }
  101. /* .nav-right-3 包裹了太多 View,不能让它参与动画,因为实在太TM卡了 */
  102. .nav-right-3 {
  103. width: calc(100% - var(--nav-left-width));
  104. position: fixed;
  105. transition: none;
  106. }
  107. .app-fold-right .nav-right-3 {
  108. width: calc(100% - 64px);
  109. left: 64px;
  110. }
  111. /* -------------- 其它 --------------- */
  112. /* 折叠时悬浮菜单样式,防止透明 */
  113. .el-menu--vertical .el-menu--popup {
  114. background-color: #FFF !important;
  115. color: red !important;
  116. }
  117. /* 最高层级 */
  118. .z-index-max {
  119. z-index: 2147483647;
  120. }
  121. /* 遮罩样式 */
  122. .shade-fox {
  123. position: absolute;
  124. z-index: 1000000;
  125. width: 100%;
  126. height: 100%;
  127. background-color: rgba(0, 0, 0, 0.5);
  128. color: #FFF;
  129. top: 0px;
  130. }
  131. .shade-fox {
  132. display: flex;
  133. justify-content: center;
  134. align-items: center
  135. }
  136. .shade-text {
  137. }
  138. /* 去除掉便签的大边框 */
  139. .layer-note-class .layui-layer-input {
  140. outline: 0;
  141. box-shadow: none !important;
  142. padding: 0.8em !important;
  143. font-family: 'Times New Roman', Times, serif;
  144. }
  145. .layer-note-class .layui-layer-input {
  146. border: 0px #ddd solid;
  147. border-bottom: 1px #ddd solid;
  148. }