|
4 | 4 | .navigation__inner { |
5 | 5 | align-items: center; |
6 | 6 | display: grid; |
7 | | - grid-template-areas: 'logo mobile-trigger membership'; |
| 7 | + grid-template-areas: 'logo trigger membership'; |
8 | 8 | grid-template-columns: 1fr repeat(2, max-content); |
9 | 9 | margin: auto; |
10 | 10 | max-width: var(--layout-inner-max-width); |
11 | 11 | padding: 8px 20px 8px 10px; |
12 | | - position: relative; |
13 | 12 | } |
14 | 13 |
|
15 | 14 | .navigation__logo { |
|
28 | 27 | background-size: contain; |
29 | 28 | border: none; |
30 | 29 | cursor: pointer; |
31 | | - grid-area: mobile-trigger; |
32 | 30 | height: 24px; |
33 | 31 | margin-right: 20px; |
34 | 32 | width: 24px; |
|
42 | 40 | background-image: url('/assets/images/icon__close.svg'); |
43 | 41 | } |
44 | 42 |
|
| 43 | + .navigation__list__wrapper { |
| 44 | + grid-area: trigger; |
| 45 | + position: relative; |
| 46 | + } |
| 47 | + |
45 | 48 | .navigation__list { |
| 49 | + background-color: white; |
46 | 50 | display: none; |
47 | | - grid-area: list; |
| 51 | + flex-direction: column; |
| 52 | + gap: 20px; |
| 53 | + list-style: none; |
| 54 | + padding: 16px 30px; |
| 55 | + z-index: 1; |
| 56 | + } |
| 57 | + |
| 58 | + .navigation__list--mobile-closed { |
| 59 | + display: none; |
| 60 | + } |
| 61 | + |
| 62 | + .navigation__list--mobile-opened { |
| 63 | + background-color: white; |
| 64 | + border-color: rgba(0, 0, 0, 0.1); |
| 65 | + border-radius: 0 0 8px 8px; |
| 66 | + border-style: solid; |
| 67 | + border-width: 0 1px 1px 1px; |
| 68 | + box-shadow: 0px 10px 30px 0 rgba(0, 0, 0, 0.04); |
| 69 | + display: flex; |
| 70 | + flex-direction: column; |
| 71 | + left: 25%; |
| 72 | + margin-top: 0; |
| 73 | + min-width: 275px; |
| 74 | + position: absolute; |
| 75 | + top: 65px; |
| 76 | + transform: translateX(-50%); |
| 77 | + } |
| 78 | + |
| 79 | + .navigation__list--mobile-opened::before { |
| 80 | + border-top: 4px solid var(--color-yellow); |
| 81 | + content: ''; |
| 82 | + display: block; |
| 83 | + position: absolute; |
| 84 | + right: calc(50% - 37.5px); |
| 85 | + top: -3px; |
| 86 | + width: 75px; |
| 87 | + } |
| 88 | + |
| 89 | + .navigation__item { |
| 90 | + a { |
| 91 | + align-items: center; |
| 92 | + box-shadow: none; |
| 93 | + color: var(--color-navy); |
| 94 | + display: flex; |
| 95 | + font-family: 'Rubik', sans-serif; |
| 96 | + font-size: 1rem; |
| 97 | + line-height: 1.125rem; |
| 98 | + min-height: 30px; |
| 99 | + padding: 12px; |
| 100 | + } |
| 101 | + |
| 102 | + a:hover { |
| 103 | + background-color: var(--color-lightblue); |
| 104 | + } |
| 105 | + } |
| 106 | + |
| 107 | + .navigation__item.current { |
| 108 | + a { |
| 109 | + background-color: var(--color-yellow); |
| 110 | + } |
| 111 | + |
| 112 | + a:hover { |
| 113 | + background-color: var(--color-lightblue); |
| 114 | + } |
48 | 115 | } |
49 | 116 |
|
50 | 117 | .navigation__membership { |
|
55 | 122 | .navigation__mobile-menu-trigger { |
56 | 123 | display: none; |
57 | 124 | } |
| 125 | + |
| 126 | + .navigation__list--mobile-closed, |
| 127 | + .navigation__list--mobile-opened { |
| 128 | + display: none; |
| 129 | + } |
58 | 130 | } |
59 | 131 | } |
0 commit comments