menu.css 4.6 KB

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