Created
August 4, 2019 19:59
-
-
Save 3h5a9/0a3ea056a223123ab382a6f11b010f7a to your computer and use it in GitHub Desktop.
Bootstrap responsive font size scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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