Skip to content

Instantly share code, notes, and snippets.

@3h5a9
Created August 4, 2019 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3h5a9/0a3ea056a223123ab382a6f11b010f7a to your computer and use it in GitHub Desktop.
Save 3h5a9/0a3ea056a223123ab382a6f11b010f7a to your computer and use it in GitHub Desktop.
Bootstrap responsive font size scss
@media (max-width: 1200px) {
legend {
font-size: calc(1.275rem + 0.3vw);
}
h1,
.h1 {
font-size: calc(1.375rem + 1.5vw);
}
h2,
.h2 {
font-size: calc(1.325rem + 0.9vw);
}
h3,
.h3 {
font-size: calc(1.3rem + 0.6vw);
}
h4,
.h4 {
font-size: calc(1.275rem + 0.3vw);
}
.display-1 {
font-size: calc(1.725rem + 5.7vw);
}
.display-2 {
font-size: calc(1.675rem + 5.1vw);
}
.display-3 {
font-size: calc(1.575rem + 3.9vw);
}
.display-4 {
font-size: calc(1.475rem + 2.7vw);
}
.close {
font-size: calc(1.275rem + 0.3vw);
}
}
Thank to
https://christianoliff.com/blog/bootstrap-with-rfs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment