Moved typography rules to a separate CSS file

This commit is contained in:
Thomas Smith 2022-09-20 17:56:57 -04:00
parent f7bb050ccc
commit d85ea39db5
3 changed files with 237 additions and 208 deletions

View file

@ -49,6 +49,7 @@
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="apple-touch-icon-precomposed" href="/favicon-180.png">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/typography.css">
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@700&display=swap" rel="stylesheet">
<link href="https://file.myfontastic.com/Fd33ifaooDVpESwnDXETgR/icons.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
@ -80,6 +81,6 @@
</script>
{{- partial "floating-join-btn.html" . -}}
</head>
</head>

View file

@ -146,213 +146,6 @@ body{
.teal-bg{background-color:#00ffd0;}.black-bg{background-color: #1a1a1a;}.dark-gray-bg{background-color: #4d4d4d;}.grid-gray-bg{background-color: #949494;}.light-gray-bg{background-color: #e1e1e1;}.white-bg{background-color: #ffffff;}.purple-bg{background-color: #8000ff;}.orange-bg{background-color: #ff4100;}
/* General Typography */
/*Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.*/
@font-face {
font-family: "pp-neue-machina";
src: url("/fonts/PPNeueMachina-InktrapLight.woff");
}
@font-face {
font-family: "sono";
src: url("/fonts/Sono-Light.woff2");
}
h1{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
text-transform:uppercase;
}
h2{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
margin-top: -1.8vw !important;
}
h3{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
}
h4{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
}
p{
font-family: "sono", sans-serif;
color: #ffffff;
}
li{
font-family: "sono", sans-serif;
color: #ffffff;
}
/* Breakpoint-Specific Typography */
/* Extra-Large Screens*/
/*@media only screen and (min-width: 1200px) {*/
h1{
font-size: 11.5vw;
line-height: 12.4vw;
margin-top: -1.116vw;
margin-left: -0.837vw;
}
h2{
font-size: 6vw;
line-height: 8.5vw;
margin-bottom: 2.065vw;
}
h3{
font-size: 3.8rem;
line-height: 4.464vw;
margin-bottom: 2.511vw;
margin-top: 1.395vw;
}
h4{
font-size: 2.121vw;
line-height: 4.116vw;
}
.lead{
font-size: 1.5vw !important;
line-height: 1.7vw !important;
margin-bottom: 2.232vw;
}
p{
font-size: 1.116vw;
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
}
@media only screen and (min-width: 768px) and (max-width: 992px) {
h1{
font-size: 14vw;
line-height: 15vw;
margin-top: -0.3vw;
margin-left: -0.837vw;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}
@media only screen and (min-width: 576px) and (max-width: 768px){
h1{
font-size: 18.5vw;
line-height: 20vw;
margin-top: 1vw;
margin-left: -2vw;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}
@media only screen and (max-width: 576px) {
h1{
font-size: 8rem;
line-height: 8rem;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}
/* Spacers & Dividers */

View file

@ -0,0 +1,235 @@
@font-face {
font-family: "pp-neue-machina";
src: url("/fonts/PPNeueMachina-InktrapLight.woff");
}
@font-face {
font-family: "sono";
src: url("/fonts/Sono-Light.woff2");
}
h1{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
text-transform:uppercase;
}
h2{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
margin-top: -1.8vw !important;
}
h3{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
}
h4{
font-family: "pp-neue-machina", sans-serif;
color:#00ffd0;
}
p{
font-family: "sono", sans-serif;
color: #ffffff;
}
li{
font-family: "sono", sans-serif;
color: #ffffff;
}
/* Breakpoint-Specific Typography */
/* Extra-Large Screens*/
/*@media only screen and (min-width: 1200px) {*/
h1{
font-size: 11.5vw;
line-height: 12.4vw;
margin-top: -1.116vw;
margin-left: -0.837vw;
}
h2{
font-size: 6vw;
line-height: 8.5vw;
margin-bottom: 2.065vw;
}
h3{
font-size: 3.8rem;
line-height: 4.464vw;
margin-bottom: 2.511vw;
margin-top: 1.395vw;
}
h4{
font-size: 2.121vw;
line-height: 4.116vw;
}
.lead{
font-size: 1.5vw !important;
line-height: 1.7vw !important;
margin-bottom: 2.232vw;
}
p{
font-size: 1.116vw;
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
h1{
font-size: 11.5vw;
line-height: 12.4vw;
margin-top: -1.116vw;
margin-left: -0.837vw;
}
h2{
font-size: 6vw;
line-height: 8.5vw;
margin-bottom: 2.065vw;
}
h3{
font-size: 3.8rem;
line-height: 4.464vw;
margin-bottom: 2.511vw;
margin-top: 1.395vw;
}
h4{
font-size: 2.121vw;
line-height: 4.116vw;
}
.lead{
font-size: 1.5vw !important;
line-height: 1.7vw !important;
margin-bottom: 2.232vw;
}
p{
font-size: 1.116vw;
}
}
@media only screen and (min-width: 768px) and (max-width: 992px) {
h1{
font-size: 14vw;
line-height: 15vw;
margin-top: -0.3vw;
margin-left: -0.837vw;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}
@media only screen and (min-width: 576px) and (max-width: 768px){
h1{
font-size: 18.5vw;
line-height: 20vw;
margin-top: 1vw;
margin-left: -2vw;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}
@media only screen and (max-width: 576px) {
h1{
font-size: 8rem;
line-height: 8rem;
}
h2{
font-size: 6rem;
line-height: 7rem;
margin-bottom: 37px;
}
h3{
font-size: 3.8rem;
line-height: 80px;
margin-bottom: 45px;
margin-top: 25px;
}
h4{
font-size: 38px;
line-height: 45px;
}
.lead{
font-size: 28px !important;
line-height: 29px !important;
margin-bottom: 40px;
}
p{
font-size: 20px;
}
}