mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 09:20:00 +00:00
Make thicc title heading scale according to viewport height.
But only once the browser is wide enough, and also cap the scaling height before the font gets too big!
This commit is contained in:
parent
bb1469c2f3
commit
dc0d666eb6
@ -138,7 +138,8 @@ ul[class] {
|
||||
}
|
||||
|
||||
.title__thicc {
|
||||
font-size: 8vh;
|
||||
// a sensible base font size
|
||||
font-size: 3rem;
|
||||
line-height: 0.75;
|
||||
padding: 0;
|
||||
margin: 0.5rem 0rem;
|
||||
@ -146,6 +147,22 @@ ul[class] {
|
||||
// margin: 13rem -7rem;
|
||||
}
|
||||
|
||||
@media (min-width: 51rem) and (min-height: 400px) {
|
||||
// a dramatic font size
|
||||
.title__thicc {
|
||||
font-size: 12vh;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 51rem) and (min-height: 850px) {
|
||||
// cap the max-height of the title
|
||||
// at the same size that 12vh computes to
|
||||
// when the viewport is 850px high
|
||||
.title__thicc {
|
||||
font-size: 6.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 800px) {
|
||||
.title__thicc {
|
||||
grid-column: 1 / 3;
|
||||
|
Loading…
x
Reference in New Issue
Block a user