File tree 4 files changed +45
-14
lines changed
4 files changed +45
-14
lines changed Original file line number Diff line number Diff line change 279
279
}
280
280
}
281
281
282
- @mixin triangle-overlay ($color ) {
282
+ @mixin triangle-overlay ($color , $size ) {
283
283
height : 0 ;
284
284
width : 0 ;
285
- left : calc (100% - 50 px );
286
- border-right : 25 px solid $color ;
287
- border-bottom : 25 px solid $color ;
288
- border-top : 25 px solid transparent ;
289
- border-left : 25 px solid transparent ;
285
+ left : calc (100% - #{ $size } );
286
+ border-right : calc ( #{ $size } / 2 ) solid $color ;
287
+ border-bottom : calc ( #{ $size } / 2 ) solid $color ;
288
+ border-top : calc ( #{ $size } / 2 ) solid transparent ;
289
+ border-left : calc ( #{ $size } / 2 ) solid transparent ;
290
290
z-index : -1 ;
291
291
opacity : 0.5 ;
292
292
}
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ a.archive-link { // "view the archive" button
39
39
width : 30px ;
40
40
box-shadow : 0 0 6px 0 $french-blue ;
41
41
z-index : 10 ;
42
+ text-decoration : none ;
42
43
43
44
@media (min-width : $largeMonitor ) {
44
45
left : calc (50% + #{$largeMonitor } / 2 - 4rem );
Original file line number Diff line number Diff line change 180
180
}
181
181
182
182
& .about.triangle ::before {
183
- @include triangle-overlay ($rosy-pink );
183
+ @include triangle-overlay ($rosy-pink , 54 px );
184
184
}
185
185
186
186
& .editorial.active ::before {
187
- @include triangle-overlay ($twilight );
187
+ @include triangle-overlay ($twilight , 54 px );
188
188
}
189
189
190
190
& .collections ,
191
191
& .archive {
192
192
& .active ::before {
193
- @include triangle-overlay ($seafoam-blue );
193
+ @include triangle-overlay ($seafoam-blue , 54 px );
194
194
}
195
195
}
196
+
197
+ // grey hover/focus triangle overlay for main nav menu items
198
+ & .collections ,
199
+ & .archive ,
200
+ & .editorial {
201
+ & .focus ::before ,
202
+ & :focus ::before ,
203
+ & :hover ::before {
204
+ @include triangle-overlay ($white , 54px );
205
+ opacity : 1 ;
206
+ }
207
+ }
208
+ }
209
+
210
+ // smaller hover/focus triangle for items in the about menu
211
+ .submenu .item :focus-within ::before ,
212
+ .about .item :hover ::before {
213
+ display : block ;
214
+ @include triangle-overlay ($white , 40px );
215
+ opacity : 1 ;
216
+ }
217
+
218
+ // PPA logo/brand has smaller triangle shifted to the bottom; no hover
219
+ .brand .item :focus ::before ,
220
+ .brand .item.focus ::before {
221
+ top : 54px ;
222
+ @include triangle-overlay ($white , 42px );
223
+ opacity : 1 ;
196
224
}
197
225
198
- a .item :hover {
199
- border-bottom : 10px solid $french-blue ;
200
- padding-bottom : 8px ;
226
+ // remove default outline focus indicator
227
+ a .item :focus ,
228
+ a .item.focus ,
229
+ .item a :focus {
230
+ outline : none ;
201
231
}
202
232
203
233
.search .search.icon {
Original file line number Diff line number Diff line change 1
1
{% load static %}
2
2
3
3
< div class ="about ui simple item dropdown{% if active == 'about' %} triangle{% endif %} ">
4
- < div tabindex = 0 class ="text "> About</ div >
4
+ < div class ="text "> About</ div >
5
5
< img class ="dropdown icon " src ="{% static 'img/icons/RightChevron.svg' %} " alt ="">
6
- < div class ="menu ">
6
+ < div class ="menu submenu ">
7
7
{# NOTE: currently relies on editorial not having show_in_menu set #}
8
8
{% for page in request.site.root_page.get_children.live.in_menu %}
9
9
< div class ="item "> < a href ="{{ page.url }} "> {{ page.title }}</ a > </ div >
You can’t perform that action at this time.
0 commit comments