menu.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. .pear-nav-tree {
  2. width: 230px;
  3. border-radius: 0px;
  4. background-color: #001529;
  5. }
  6. .pear-nav-tree .layui-nav-item>a {
  7. height: 56px;
  8. line-height: 56px;
  9. padding-top: 0px;
  10. padding-bottom: 0px;
  11. }
  12. .pear-nav-tree .layui-nav-item dd a {
  13. height: 48px;
  14. line-height: 48px;
  15. }
  16. .pear-nav-tree .layui-nav-item>a .layui-nav-more {
  17. padding: 0px;
  18. }
  19. .pear-side-scroll::-webkit-scrollbar {
  20. width: 0px;
  21. height: 0px;
  22. }
  23. .pear-side-scroll{
  24. width: 230px;
  25. }
  26. .pear-nav-tree .layui-nav-child dd.layui-this,
  27. .layui-nav-tree .layui-nav-child dd.layui-this a,
  28. .layui-nav-tree .layui-this,
  29. .layui-nav-tree .layui-this>a,
  30. .layui-nav-tree .layui-this>a:hover {
  31. background-color: #5FB878;
  32. }
  33. .pear-nav-tree .toast {
  34. font-size: 14px;
  35. margin: 5px;
  36. margin-right: 8px;
  37. text-align: center;
  38. height: 40px;
  39. line-height: 40px;
  40. color: lightgray;
  41. }
  42. .pear-nav-tree .layui-nav-item a i {
  43. margin-right: 12px;
  44. }
  45. .pear-nav-tree .layui-nav-item a span {
  46. letter-spacing: 2px;
  47. font-size: 13.5px;
  48. }
  49. .pear-nav-tree .layui-nav-item a:hover {
  50. background-color: transparent;
  51. }
  52. .pear-nav-tree .layui-nav-more {
  53. margin-right: 5px;
  54. }
  55. .pear-nav-tree .layui-nav-bar {
  56. display: none;
  57. }
  58. .pear-nav-tree .layui-nav-item a .layui-badge-dot {
  59. float: right;
  60. right: 13px;
  61. }
  62. .pear-nav-tree .layui-nav-item a .layui-badge {
  63. float: right;
  64. right: 10px;
  65. }
  66. /** 实 现 菜 单 隐 藏 */
  67. .pear-nav-mini {
  68. overflow: hidden;
  69. }
  70. .pear-nav-mini .layui-nav-item a span {
  71. display: none;
  72. }
  73. .pear-nav-mini .layui-nav-child {
  74. display: none;
  75. }
  76. .pear-nav-mini .layui-nav-more {
  77. display: none !important;
  78. }
  79. .pear-nav-control.pc a {
  80. font-weight: 500;
  81. font-size: 14px;
  82. }
  83. .pear-nav-control.pc li{
  84. display: inline-block;
  85. }
  86. .pear-nav-control.pc .layui-nav-bar {
  87. top: 0px !important;
  88. }
  89. .pear-nav-control.pc .layui-this * {
  90. background-color: whitesmoke;
  91. }
  92. .pear-nav-control.pc *{
  93. color: darkslategray!important;
  94. }
  95. .pear-nav-control.pc .layui-nav-bar{
  96. display: none!important;
  97. }
  98. .pear-nav-control .layui-nav-child{
  99. border: 1px solid whitesmoke;
  100. border-radius: 6px;
  101. width: 150px;
  102. }
  103. /** 隐 藏 后 子 级 悬 浮 菜 单 */
  104. .pear-nav-tree .layui-nav-hover {
  105. position: fixed;
  106. min-width: 130px;
  107. padding: 4px;
  108. display: block !important;
  109. background: transparent !important;
  110. }
  111. .pear-nav-tree .layui-nav-hover:before {
  112. content: '';
  113. position: absolute;
  114. right: 4px;
  115. left: 4px;
  116. bottom: 0;
  117. top: 0;
  118. border-radius: 4px;
  119. overflow: hidden;
  120. background-color: #001529;
  121. display: block;
  122. box-shadow: 0px 0px 3px lightgray;
  123. }
  124. .pear-nav-tree .layui-nav-hover a span {
  125. display: inline-block !important;
  126. }
  127. .pear-nav-tree .layui-nav-hover a i {
  128. display: none;
  129. }
  130. .pear-nav-tree .layui-nav-child dd a span {
  131. margin-left: 26px !important;
  132. }
  133. .pear-nav-tree .layui-nav-child dd a i {
  134. display: none;
  135. }
  136. .pear-nav-tree .layui-nav-hover dd a span {
  137. margin-left: 0px !important;
  138. }
  139. .pear-nav-tree dl {
  140. padding-top: 0;
  141. padding-bottom: 0;
  142. }
  143. /** 亮 样 式*/
  144. .dark-theme .layui-nav-tree{
  145. background-color: #001529!important;
  146. }
  147. .light-theme{
  148. background-color: white!important;
  149. }
  150. .light-theme .pear-nav-tree,
  151. .light-theme .pear-nav-tree .layui-nav-hover:before,
  152. .light-theme .pear-nav-tree .layui-nav-child{
  153. background-color: white!important;
  154. }
  155. .light-theme .pear-nav-tree a,
  156. .light-theme .pear-nav-tree .layui-nav-more{
  157. color: dimgray!important;
  158. border-top-color: dimgray;
  159. }
  160. .light-theme .pear-nav-tree .layui-nav-itemed>a>.layui-nav-more{
  161. border-top-color: white!important;
  162. border-bottom-color: dimgray!important;
  163. }
  164. .light-theme .pear-nav-tree .layui-this a,
  165. .light-theme .pear-nav-tree .layui-this{
  166. color: white!important;
  167. background-color: #5FB878!important;
  168. }
  169. .light-theme .pear-nav-tree .layui-this a:hover{
  170. background-color: #5FB878!important;
  171. }
  172. .light-theme .pear-nav-tree .layui-nav-bar{
  173. display: none;
  174. }
  175. /** 下 拉 图 标 */
  176. .pear-nav-tree.arrow .layui-nav-more {
  177. font-family: layui-icon !important;
  178. font-size: 10px;
  179. font-style: normal;
  180. -webkit-font-smoothing: antialiased;
  181. -moz-osx-font-smoothing: grayscale;
  182. overflow: hidden;
  183. width: auto;
  184. height: auto;
  185. line-height: normal;
  186. border: none;
  187. top: 23px;
  188. margin-right: 2px !important;
  189. margin: 0;
  190. padding: 0;
  191. display: inline-block;
  192. transition: all .2s;
  193. -webkit-transition: all .2s;
  194. }
  195. .pear-nav-tree.arrow .layui-nav-child .layui-nav-more {
  196. top: 17px;
  197. }
  198. .pear-nav-tree.arrow .layui-nav-more:before {
  199. content: "\e61a";
  200. }
  201. .pear-nav-tree.arrow .layui-nav-itemed>a>.layui-nav-more {
  202. transform: rotate(180deg);
  203. -ms-transform: rotate(180deg);
  204. -moz-transform: rotate(180deg);
  205. -webkit-transform: rotate(180deg);
  206. -o-transform: rotate(180deg);
  207. width: 12px;
  208. text-align: center;
  209. }
  210. .pear-nav-tree.arrow .layui-nav-child.layui-nav-hover>dd>a>.layui-nav-more {
  211. display: inline-block !important;
  212. transform: rotate(270deg);
  213. -ms-transform: rotate(270deg);
  214. -moz-transform: rotate(270deg);
  215. -webkit-transform: rotate(270deg);
  216. -o-transform: rotate(270deg);
  217. width: 12px;
  218. text-align: center;
  219. background-color: transparent !important;
  220. }
  221. .pear-nav-tree.arrow .layui-nav-child.layui-nav-hover>a>.layui-nav-more:before,
  222. .pear-nav-tree.arrow .layui-nav-itemed>a>.layui-nav-more:before {
  223. content: '\e61a';
  224. display: inline-block;
  225. vertical-align: middle;
  226. }