Navigation.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. $nav-font-size: 16px;
  2. $nav-font-color: #FFFFFF;
  3. .x-navpanel {
  4. overflow: visible;
  5. .x-panel-bodyWrap {
  6. overflow: visible;
  7. .x-panel-body-nav {
  8. color: #404040;
  9. font-size: 13px;
  10. line-height: 17px;
  11. font-weight: 400;
  12. font-family: 'Open Sans', 'Helvetica Neue', helvetica, arial, verdana, sans-serif;
  13. background: #f6f6f6;
  14. overflow: visible;
  15. .x-autocontainer-outerCt {
  16. background-color: #484A69;
  17. .x-autocontainer-innerCt {
  18. .x-navlist {
  19. position: relative;
  20. list-style: none;
  21. padding: 0;
  22. margin: 0;
  23. width: 100%;
  24. .x-navitem {
  25. cursor: default;
  26. position: relative;
  27. list-style: none;
  28. padding: 0;
  29. margin: 0;
  30. outline: none !important;
  31. .x-navitem-body {
  32. background: #505275;
  33. .nav-inner-wrap {
  34. position: relative;
  35. overflow: hidden;
  36. list-style: none;
  37. max-height: 60px;
  38. padding: 0 10px;
  39. .nav-inner-icon {
  40. opacity: 0.4;
  41. color: $nav-font-color;
  42. font-size: 24px;
  43. text-align: center;
  44. margin-left: 24px;
  45. display: inline;
  46. margin-right: 30px;
  47. &:before {
  48. line-height: 60px;
  49. }
  50. }
  51. .nav-inner-text {
  52. font-size: $nav-font-size;
  53. color: $nav-font-color;
  54. letter-spacing: 0.64px;
  55. text-align: left;
  56. opacity: 0.46;
  57. display: inline;
  58. line-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. opacity: 1;
  70. }
  71. .nav-inner-text {
  72. opacity: 1;
  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. // animation: name duration timing-function delay iteration-count direction;
  90. .nav-menu-body {
  91. display: flex;
  92. padding: 5px;
  93. border-top-right-radius: 4px;
  94. border-bottom-right-radius: 4px;
  95. .menu {
  96. width: 200px;
  97. border-right: 1px dashed #ccc;
  98. letter-spacing: 1px;
  99. color: #444;
  100. &:last-child {
  101. border: none;
  102. }
  103. .menu-title {
  104. margin: 5px;
  105. }
  106. .menu-content {
  107. list-style: none;
  108. padding-left: 10px;
  109. padding-right: 10px;
  110. .menuitem {
  111. padding: 5px;
  112. display: flex;
  113. border-radius: 4px;
  114. align-content: space-between;
  115. .item-text {
  116. cursor: pointer;
  117. line-height: 24px;
  118. white-space: nowrap;
  119. width: 130px;
  120. overflow: hidden;
  121. text-overflow: ellipsis;
  122. }
  123. .item-icon {
  124. cursor: pointer;
  125. float: right;
  126. display: none;
  127. background: #64b448;
  128. color: #fff;
  129. font-size: 11px;
  130. padding: 3px 6px;
  131. border-radius: 3px;
  132. margin-right: 5px;
  133. font-weight: 400;
  134. width: 40px;
  135. &:hover {
  136. opacity: 0.7;
  137. }
  138. }
  139. &:hover {
  140. background-color: #E4E4E4;
  141. .item-icon {
  142. display: block;
  143. }
  144. .tem-text {
  145. color: blue;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. }
  152. }