Improve accessibility, refactor CSS to relative units, and add fluid hero scaling
This commit is contained in:
1 parent
9a359c09ba
commit
e8b62b5270
2 files changed
+6
-6
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 925 KiB |
+6
-6
@@ -90,16 +90,12 @@
|
|||||||
|
|
||||||
.hero-logo{
|
.hero-logo{
|
||||||
display:block;
|
display:block;
|
||||||
width:min(100%, 26.25rem);
|
width:clamp(17.5rem, 28vw, 31rem);
|
||||||
max-width:100%;
|
max-width:100%;
|
||||||
height:auto;
|
height:auto;
|
||||||
margin:0 auto 1.75rem;
|
margin:0 auto 1.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 35em){
|
|
||||||
.hero-logo{ width:min(100%, 17.5rem); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- brass rule divider ---------- */
|
/* ---------- brass rule divider ---------- */
|
||||||
.rule-row{
|
.rule-row{
|
||||||
display:flex; align-items:center; gap:1rem;
|
display:flex; align-items:center; gap:1rem;
|
||||||
@@ -158,7 +154,11 @@
|
|||||||
/* ---------- hero ---------- */
|
/* ---------- hero ---------- */
|
||||||
.hero{
|
.hero{
|
||||||
position:relative;
|
position:relative;
|
||||||
padding-block:5.5rem 6rem;
|
min-height:calc(100vh - 4.5rem);
|
||||||
|
display:flex;
|
||||||
|
align-items:center;
|
||||||
|
justify-content:center;
|
||||||
|
padding-block:clamp(4.5rem, 8vh, 7.5rem);
|
||||||
text-align:center;
|
text-align:center;
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
background:var(--ground); /* fallback if brick-texture.png fails to load */
|
background:var(--ground); /* fallback if brick-texture.png fails to load */
|
||||||
|
|||||||
Reference in new issue
Block a user