Navigation.scss 5.8 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. display: flex;
  40. .nav-inner-icon {
  41. opacity: 0.4;
  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. opacity: 0.46;
  58. line-height: 60px;
  59. height: 60px;
  60. }
  61. }
  62. }
  63. }
  64. .x-navitem-over {
  65. .x-navitem-body {
  66. background: #474968;
  67. box-shadow: inset 0 1px 4px 0 rgba(0,0,0,0.50);
  68. .nav-inner-wrap {
  69. .nav-inner-icon {
  70. opacity: 1;
  71. }
  72. .nav-inner-text {
  73. opacity: 1;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }
  84. .x-navitem-menu {
  85. position: absolute;
  86. z-index: 9999;
  87. top: 0;
  88. background: white;
  89. overflow: hidden;
  90. // animation: name duration timing-function delay iteration-count direction;
  91. .nav-menu-body {
  92. display: flex;
  93. padding: 5px;
  94. border-top-right-radius: 4px;
  95. border-bottom-right-radius: 4px;
  96. .menu {
  97. width: 200px;
  98. border-right: 1px dashed #ccc;
  99. letter-spacing: 1px;
  100. color: #444;
  101. &:last-child {
  102. border: none;
  103. }
  104. .menu-title {
  105. margin: 5px;
  106. }
  107. .menu-content {
  108. list-style: none;
  109. padding-left: 10px;
  110. padding-right: 10px;
  111. .menuitem {
  112. padding: 5px;
  113. display: flex;
  114. border-radius: 4px;
  115. align-content: space-between;
  116. .item-text {
  117. cursor: pointer;
  118. line-height: 24px;
  119. white-space: nowrap;
  120. width: 130px;
  121. overflow: hidden;
  122. text-overflow: ellipsis;
  123. }
  124. .item-icon {
  125. cursor: pointer;
  126. float: right;
  127. display: none;
  128. background: #64b448;
  129. color: #fff;
  130. font-size: 11px;
  131. padding: 3px 6px;
  132. border-radius: 3px;
  133. margin-right: 5px;
  134. font-weight: 400;
  135. width: 40px;
  136. &:hover {
  137. opacity: 0.7;
  138. }
  139. }
  140. &:hover {
  141. background-color: #E4E4E4;
  142. .item-icon {
  143. display: block;
  144. }
  145. .tem-text {
  146. color: blue;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }