Skip to content

Commit bd03af4

Browse files
committed
a11y: #4052 mat header solution from glossa custom css
1 parent 65d95eb commit bd03af4

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/themes/material/assets/mat.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,3 +1184,49 @@ p + .btn-background {
11841184
.nav-wrapper a:focus {
11851185
display: block;
11861186
}
1187+
1188+
/* navbar overrides */
1189+
:root {
1190+
--nav-height-px: 120px;
1191+
--nav-border-style: 4px solid;
1192+
}
1193+
1194+
@media only screen and (min-width: 993px) {
1195+
.header-overrides {
1196+
height: var(--nav-height-px);
1197+
}
1198+
1199+
.dropdown-content {
1200+
top: var(--nav-height-px) !important;
1201+
}
1202+
1203+
.header-overrides ul.hide-on-med-and-down a:not(.dropdown-item) {
1204+
height: var(--nav-height-px);
1205+
padding: calc(var(--nav-height-px) - 75px) 10px 0px;
1206+
}
1207+
1208+
nav ul:not(.dropdown-content) a {
1209+
border-bottom: var(--nav-border-style) transparent
1210+
}
1211+
1212+
nav ul:not(.dropdown-content) a:hover {
1213+
border-bottom: var(--nav-border-style) var(--accent-color);
1214+
}
1215+
1216+
#logo-container {
1217+
top: 50%;
1218+
display: flex;
1219+
transform: translateY(-50%);
1220+
}
1221+
1222+
@media only screen and (min-width: 993px) and (max-width: 1330px) {
1223+
:root {
1224+
--nav-height-px: 160px;
1225+
}
1226+
#logo-container {
1227+
top: 40%;
1228+
display: flex;
1229+
transform: translateY(-50%);
1230+
}
1231+
}
1232+
}

0 commit comments

Comments
 (0)