Navigation.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. $nav-font-size: 16px;
  2. $nav-font-color: #9697AC;
  3. $nav-font-color-over: #fff;
  4. .x-navpanel {
  5. overflow: visible;
  6. .x-panel-bodyWrap {
  7. overflow: visible;
  8. .x-panel-body-nav {
  9. color: #404040;
  10. font-size: 13px;
  11. line-height: 17px;
  12. font-weight: 400;
  13. font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;
  14. background: #f6f6f6;
  15. overflow: visible;
  16. .x-autocontainer-outerCt {
  17. background-color: #484A69;
  18. .x-autocontainer-innerCt {
  19. .x-navlist {
  20. position: relative;
  21. list-style: none;
  22. padding: 0;
  23. margin: 0;
  24. width: 100%;
  25. .x-navitem {
  26. cursor: default;
  27. position: relative;
  28. list-style: none;
  29. padding: 0;
  30. margin: 0;
  31. outline: none !important;
  32. .x-navitem-body {
  33. background: #505275;
  34. .nav-inner-wrap {
  35. position: relative;
  36. overflow: hidden;
  37. list-style: none;
  38. max-height: 60px;
  39. padding: 0 10px;
  40. display: flex;
  41. .nav-inner-icon {
  42. color: $nav-font-color;
  43. font-size: 24px;
  44. text-align: center;
  45. margin-left: 22px;
  46. display: inline;
  47. margin-right: 16px;
  48. &:before {
  49. line-height: 60px;
  50. }
  51. }
  52. .nav-inner-text {
  53. font-size: $nav-font-size;
  54. color: $nav-font-color;
  55. letter-spacing: 4px;
  56. text-align: left;
  57. line-height: 60px;
  58. height: 60px;
  59. }
  60. }
  61. }
  62. }
  63. .x-navitem-over {
  64. .x-navitem-body {
  65. background: #474968;
  66. box-shadow: inset 0 1px 4px 0 rgba(0,0,0,0.50);
  67. .nav-inner-wrap {
  68. .nav-inner-icon {
  69. color: $nav-font-color-over;
  70. }
  71. .nav-inner-text {
  72. color: $nav-font-color-over;
  73. }
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. .x-navitem-menu {
  84. position: absolute;
  85. z-index: 9999;
  86. top: 0;
  87. background: white;
  88. overflow: hidden;
  89. .nav-menu-body {
  90. display: flex;
  91. border-top-right-radius: 4px;
  92. border-bottom-right-radius: 4px;
  93. .menu {
  94. &:first-child {
  95. .menu-content {
  96. border-right: 1px solid #EEF9FE;
  97. }
  98. }
  99. width: 200px;
  100. letter-spacing: 1px;
  101. .menu-title {
  102. padding-left: 30px;
  103. background: #EEF9FE;
  104. .menu-title-text {
  105. height: 40px;
  106. line-height: 40px;
  107. font-size: 16px;
  108. color: #4F5170;
  109. letter-spacing: 0.64px;
  110. text-align: left;
  111. }
  112. }
  113. .menu-content {
  114. .menuitem {
  115. padding-left: 25px;
  116. margin: 6px;
  117. display: flex;
  118. align-content: space-between;
  119. .item-text {
  120. color: #4F5170;
  121. cursor: pointer;
  122. height: 34px;
  123. line-height: 34px;
  124. white-space: nowrap;
  125. flex: 1;
  126. overflow: hidden;
  127. font-size: 14px;
  128. text-overflow: ellipsis;
  129. }
  130. .item-icon {
  131. cursor: pointer;
  132. background: #64b448;
  133. color: #fff;
  134. display: none;
  135. padding: 3px 6px;
  136. border-radius: 3px;
  137. margin-right: 5px;
  138. height: 24px;
  139. margin-top: 5px;
  140. &:hover {
  141. opacity: 0.7;
  142. }
  143. }
  144. &:hover {
  145. border-radius: 4px;
  146. background-color: #E4E4E4;
  147. .item-icon {
  148. display: block;
  149. }
  150. .tem-text {
  151. color: blue;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }