feat: adjust font-size based on viewport width
This commit is contained in:
parent
07b353418c
commit
99d31f6050
1 changed files with 10 additions and 1 deletions
11
src/App.vue
11
src/App.vue
|
@ -264,8 +264,17 @@ export default {
|
|||
font-size: 1.125em;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
max-width: 40rem;
|
||||
max-width: 40em;
|
||||
margin: auto;
|
||||
transition: all ease-in-out 0.25s;
|
||||
|
||||
@media (min-width: 50em) {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
@media (min-width: 60em) {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
}
|
||||
|
||||
header {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue