Skip to content

Commit 4d7aa44

Browse files
orcid button alignment, less awkward mobile menu
1 parent c447b2a commit 4d7aa44

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

app/assets/stylesheets/application.scss

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -808,24 +808,26 @@ $btn-primary-border: darken($btn-primary-bg, 5%) !default;
808808
}
809809

810810
.navbar-nav {
811+
align-items: center;
812+
811813
@include media-breakpoint-down(md) {
812-
display: inline-block;
814+
align-items: flex-end;
813815
}
814816
}
815817

816818
.nav-link {
817819
padding: 1em !important;
818820
color: #2E294E;
819821
align-self: center;
820-
transition: background-color 0.5s ease;
822+
transition: background-color 0.5s ease, font-size 0.25s ease;
821823
white-space: nowrap;
822824
position: relative;
823825

824826
&::before,
825827
&::after {
826828
opacity: 0;
827829
position: absolute;
828-
top: 100%;
830+
bottom: 0;
829831
left: 0;
830832
width: 100%;
831833
height: 4px;
@@ -838,21 +840,30 @@ $btn-primary-border: darken($btn-primary-bg, 5%) !default;
838840

839841

840842
&:hover {
841-
color: #2E294E;
842-
843+
@include media-breakpoint-down(md) {
844+
&:not(.orcid) {
845+
font-size: 1.25em;
846+
}
847+
transition: font-size 0.25s ease;
848+
}
843849

844850
&:hover::before,
845851
&:hover::after,
846852
&:focus::before,
847853
&:focus::after {
848854
opacity: 1;
849855
transform: translateY(10px) scale(1);
856+
857+
@include media-breakpoint-down(md) {
858+
opacity: 0;
859+
}
850860
}
851861
}
852862

853863
@include media-breakpoint-down(md) {
854864
font-size: 1.125em;
855-
padding: 1em 0 !important;
865+
padding: 0 !important;
866+
height: 3rem;
856867
width: 100%;
857868
text-align: right;
858869

@@ -861,6 +872,14 @@ $btn-primary-border: darken($btn-primary-bg, 5%) !default;
861872
color: #007BFF;
862873
}
863874

875+
&.orcid {
876+
padding: 1em !important; // bootstrap forces this important
877+
margin-bottom: 0.5em;
878+
&:hover {
879+
color: #fff;
880+
border-color: #1f1d1d;
881+
}
882+
}
864883
}
865884
}
866885

0 commit comments

Comments
 (0)