Skip to content

Commit eb45cca

Browse files
Brandon GreenPat Mellon
Brandon Green
authored and
Pat Mellon
committed
Move sort button location on Hub main page
1 parent 60779a6 commit eb45cca

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

_sass/hub.scss

+46-1
Original file line numberDiff line numberDiff line change
@@ -312,19 +312,64 @@
312312
cursor: pointer;
313313
}
314314

315+
.hub-index {
316+
#dropdownSortLeft {
317+
color: $mid_gray;
318+
cursor: pointer;
319+
z-index: 1;
320+
position: absolute;
321+
top: inherit;
322+
left: 23%;
323+
max-width: 4rem;
324+
@media(min-width: 480px) and (max-width: 590px) {
325+
left: 40%;
326+
}
327+
}
328+
}
329+
315330
.hub #dropdownFilter, #dropdownSort, #dropdownSortLeft {
316331
color: $mid_gray;
317332
cursor: pointer;
318333
z-index: 1;
319334
position: absolute;
335+
top: 11rem;
336+
right: 1rem;
337+
left: inherit;
338+
@media(min-width: 480px) and (max-width: 590px) {
339+
top: 7rem;
340+
}
341+
@media(min-width: 590px) {
342+
top: 5rem;
343+
}
344+
@include desktop {
345+
top: 5rem;
346+
}
320347
}
321348

322349
.hub .sort-menu {
323-
left: 0;
350+
left: inherit;
351+
right: 1rem;
352+
top: 12.5rem;
353+
max-width: 12rem;
354+
@media(min-width: 480px) and (max-width: 590px) {
355+
top: 8.5rem;
356+
}
357+
@media(min-width: 590px) and (max-width: 900px) {
358+
top: 6.5rem;
359+
}
360+
@media(min-width: 900px) and (max-width: 1239px) {
361+
top: 6.5rem;
362+
}
363+
@include max-width-desktop {
364+
right: 0;
365+
top: 6.5rem;
366+
}
324367
}
325368

326369
.hub-index .sort-menu {
327370
left: 23%;
371+
top: inherit;
372+
max-width: 12rem;
328373
}
329374

330375
.hub .research-hub-title,

hub/hub.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h3 class="research-hub-sub-title">Explore and extend models<br> from the latest
3232

3333
<nav class="navbar navbar-expand-lg navbar-light research-menu col-12">
3434
{% include hub_model_tags.html category="researchers" %}
35-
<div id="hub-icons" class="hub-select-container col-5">
35+
<div id="hub-icons" class="hub-select-container hub-sort-main col-5">
3636
{% include hub_sort.html %}
3737
</div>
3838
{% include hub_search.html %}

0 commit comments

Comments
 (0)