_custom-navbar.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. $main-font-family: Helvetica, Noto Sans TC, Roboto, 'Microsoft JhengHei', Arial, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  2. // navbar-mobile
  3. .nb-mobile {
  4. top: 66px;
  5. bottom: 0;
  6. transform: translateX(-100vw);
  7. width: 100vw;
  8. z-index: 1040;
  9. background: #FFF;
  10. position: absolute;
  11. &.active {
  12. top: 56px;
  13. transform: translateX(0);
  14. bottom: 0;
  15. width: 100vw;
  16. overflow-x: hidden;
  17. overflow-y: auto;
  18. background: #FFF;
  19. display: block;
  20. position: fixed;
  21. }
  22. .nb-mobile-arrow {
  23. padding-left: 1rem;
  24. padding-right: 1rem;
  25. color: rgba(0, 0, 0, 0.87);
  26. .fa-angle-up {
  27. display: none;
  28. &.active {
  29. display: block;
  30. }
  31. }
  32. .fa-angle-down {
  33. display: none;
  34. &.active {
  35. display: block;
  36. }
  37. }
  38. }
  39. .nb-mobile-secItem {
  40. display: none;
  41. &.active {
  42. display: block;
  43. }
  44. }
  45. ul {
  46. padding-left: 0;
  47. }
  48. ul li {
  49. list-style: none;
  50. font-family: $main-font-family;
  51. padding-left: 30px;
  52. padding-right: 30px;
  53. .single-section-head {
  54. color: #34404B;
  55. margin: 0;
  56. padding: 0.5rem 0;
  57. background: #FFF;
  58. display: flex;
  59. justify-content: flex-start;
  60. align-items: center;
  61. font-weight: bold !important;
  62. &:hover {
  63. background-color: #F4F4F4;
  64. }
  65. &.active {
  66. color: #EE751B;
  67. }
  68. img {
  69. margin-right: 5px;
  70. }
  71. }
  72. .multi-section-head-sub-wrapper {
  73. width: 100%;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. &:hover {
  78. background: #F4F4F4;
  79. }
  80. a {
  81. width: 80%;
  82. }
  83. }
  84. .multi-section-head {
  85. display: flex;
  86. justify-content: center;
  87. align-items: center;
  88. margin: 0;
  89. font-weight: bold !important;
  90. &.active {
  91. color: #EE751B;
  92. }
  93. img {
  94. margin-right: 5px;
  95. }
  96. }
  97. .multi-section-head-sub {
  98. color: #34404B;
  99. font-weight: 300;
  100. margin: 0;
  101. padding-left: 3rem; // 因應專欄架構改變
  102. &:hover,
  103. &.active {
  104. background: #F4F4F4;
  105. }
  106. a {
  107. color: #34404B;
  108. }
  109. }
  110. .multi-section-head-sub--divider {
  111. width: 100%;
  112. height: 1px;
  113. background-color: #D7D7D7;
  114. margin: 0.2rem 0;
  115. }
  116. }
  117. .single-section-head-sub--divider {
  118. width: 100%;
  119. height: 1px;
  120. background-color: #D7D7D7;
  121. margin: 0.2rem 0;
  122. }
  123. .multi-section-wrapper {
  124. &:active {
  125. background-color: transparent;
  126. }
  127. }
  128. .multi-section {
  129. padding: 0.5rem 0;
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. width: 100%;
  134. &:hover {
  135. background-color: #F4F4F4;
  136. }
  137. a {
  138. display: flex;
  139. width: 80%;
  140. color: #34404B;
  141. &.active {
  142. color: #EE751B;
  143. }
  144. }
  145. }
  146. ul a:hover {
  147. text-decoration: none;
  148. }
  149. .nb-mobile-arrow-third {
  150. padding-left: 1rem;
  151. padding-right: 1rem;
  152. }
  153. .fa-arrow-third {
  154. &.is-rotate{
  155. transform: rotate(180deg);
  156. }
  157. }
  158. .nb-divider {
  159. margin: 0.2rem 0;
  160. border-bottom: 1px solid #D7D7D7;
  161. }
  162. .nb-mobile-thdItem {
  163. display: none;
  164. &.is-show {
  165. display: block;
  166. }
  167. > a > li {
  168. color: #34404B;
  169. padding-left: 5rem;
  170. margin: 0.2rem 0 0;
  171. font-weight: 300;
  172. &:hover,
  173. &.active {
  174. background: #F4F4F4;
  175. }
  176. }
  177. .thd-menu--divider {
  178. width: 100%;
  179. height: 1px;
  180. background-color: #D7D7D7;
  181. margin: 0.2rem 0;
  182. }
  183. }
  184. }
  185. // footer-fix
  186. .footer-fix {
  187. width: 100%;
  188. background-color: #FFF;
  189. z-index: 1029;
  190. box-shadow: 0 8px 15px 2px rgba(0,0,0,.12);
  191. .footer-fix-wrapper {
  192. width: 20%;
  193. text-align: center;
  194. text-decoration: none;
  195. &:active,
  196. &:visited {
  197. background-color: #e6e6e6;
  198. text-decoration: none;
  199. }
  200. a {
  201. &:hover {
  202. text-decoration: none;
  203. }
  204. }
  205. }
  206. .footer-fix-title {
  207. margin-top: 5px;
  208. color: #EE7800;
  209. font-size: 13px;
  210. }
  211. }
  212. .top-designer,
  213. .search-bar,
  214. .search-tab {
  215. display: none;
  216. }