Navigation.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. $nav-font-size: 16px;
  2. $nav-font-color: #EEEEF2;
  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. &:after {
  69. content: ' ';
  70. width: 0;
  71. height: 0;
  72. border: 8px solid transparent;
  73. border-right-color: #fff;
  74. border-left: none;
  75. position: absolute;
  76. right: 0;
  77. top: 22px;
  78. z-index: 999999;
  79. }
  80. .nav-inner-icon {
  81. color: $nav-font-color-over;
  82. }
  83. .nav-inner-text {
  84. color: $nav-font-color-over;
  85. }
  86. }
  87. }
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .x-nav-menu {
  96. // border-width: 5px;
  97. // border-left: none;
  98. }
  99. .x-navitem-menu {
  100. position: absolute;
  101. z-index: 9999;
  102. top: 0;
  103. background: white;
  104. overflow: hidden;
  105. .nav-menu-body {
  106. display: flex;
  107. border-top-right-radius: 4px;
  108. border-bottom-right-radius: 4px;
  109. .menu {
  110. width: 200px;
  111. letter-spacing: 1px;
  112. display: flex;
  113. flex-direction: column;
  114. &:nth-child(2) {
  115. .menu-content {
  116. border-left: 1px dashed #dce2e4;
  117. }
  118. }
  119. .menu-title {
  120. padding-left: 30px;
  121. background: #EEF9FE;
  122. .menu-title-text {
  123. height: 40px;
  124. line-height: 40px;
  125. font-size: 16px;
  126. color: #4F5170;
  127. letter-spacing: 0.64px;
  128. text-align: left;
  129. }
  130. }
  131. .menu-content {
  132. height: 100%;
  133. .menuitem {
  134. padding-left: 25px;
  135. margin: 6px;
  136. display: flex;
  137. align-content: space-between;
  138. .item-text {
  139. color: #4F5170;
  140. cursor: pointer;
  141. height: 34px;
  142. line-height: 34px;
  143. white-space: nowrap;
  144. flex: 1;
  145. overflow: hidden;
  146. font-size: 14px;
  147. text-overflow: ellipsis;
  148. }
  149. .item-icon {
  150. cursor: pointer;
  151. background: #64b448;
  152. color: #fff;
  153. display: none;
  154. padding: 3px 6px;
  155. border-radius: 3px;
  156. margin-right: 5px;
  157. height: 24px;
  158. margin-top: 5px;
  159. &:hover {
  160. opacity: 0.7;
  161. }
  162. }
  163. &:hover {
  164. border-radius: 4px;
  165. background-color: #E4E4E4;
  166. .item-icon {
  167. display: block;
  168. }
  169. .tem-text {
  170. color: blue;
  171. }
  172. }
  173. }
  174. }
  175. }
  176. }
  177. }