|
13 | 13 |
|
14 | 14 | .navigation__logo { |
15 | 15 | box-shadow: none; |
| 16 | + display: flex; |
16 | 17 | grid-area: logo; |
| 18 | + max-width: fit-content; |
17 | 19 |
|
18 | 20 | img { |
19 | 21 | height: 75px; |
|
47 | 49 |
|
48 | 50 | .navigation__list { |
49 | 51 | background-color: white; |
| 52 | + border-color: rgba(0, 0, 0, 0.1); |
| 53 | + border-radius: 0 0 8px 8px; |
| 54 | + border-style: solid; |
| 55 | + border-width: 0 1px 1px 1px; |
| 56 | + box-shadow: 0px 10px 30px 0 rgba(0, 0, 0, 0.04); |
50 | 57 | display: none; |
51 | 58 | flex-direction: column; |
52 | 59 | gap: 20px; |
| 60 | + left: 25%; |
53 | 61 | list-style: none; |
| 62 | + margin: 0; |
| 63 | + min-width: 275px; |
54 | 64 | padding: 16px 30px; |
| 65 | + position: absolute; |
| 66 | + top: 61.5px; |
| 67 | + transform: translateX(-50%); |
55 | 68 | z-index: 1; |
56 | 69 | } |
57 | 70 |
|
|
60 | 73 | } |
61 | 74 |
|
62 | 75 | .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 | 76 | 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 | 77 | } |
78 | 78 |
|
79 | 79 | .navigation__list--mobile-opened::before { |
|
104 | 104 | } |
105 | 105 | } |
106 | 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 | | - } |
115 | | - } |
116 | | - |
117 | 107 | .navigation__membership { |
118 | 108 | grid-area: membership; |
119 | 109 | } |
|
123 | 113 | display: none; |
124 | 114 | } |
125 | 115 |
|
126 | | - .navigation__list--mobile-closed, |
127 | | - .navigation__list--mobile-opened { |
| 116 | + .navigation__inner { |
| 117 | + grid-template-columns: max-content 1fr max-content; |
| 118 | + padding: 0; |
| 119 | + } |
| 120 | + |
| 121 | + .navigation__logo { |
| 122 | + margin-left: -8px; |
| 123 | + } |
| 124 | + |
| 125 | + .navigation__mobile-menu-trigger { |
| 126 | + display: none; |
| 127 | + } |
| 128 | + |
| 129 | + .navigation__list { |
| 130 | + border: none; |
| 131 | + box-shadow: none; |
| 132 | + display: flex; |
| 133 | + flex-direction: row; |
| 134 | + gap: 0; |
| 135 | + justify-self: center; |
| 136 | + left: auto; |
| 137 | + min-width: unset; |
| 138 | + padding: 0; |
| 139 | + position: relative; |
| 140 | + top: auto; |
| 141 | + transform: unset; |
| 142 | + } |
| 143 | + |
| 144 | + .navigation__list::before { |
128 | 145 | display: none; |
129 | 146 | } |
130 | 147 | } |
|
0 commit comments