JSFiddle - React, Tailwind, and code Playground
by Chris LaFrombois
CSS
/* TOP OF FILE */
body.orbit p {
margin: 0 0 20px;
padding: 0;
}
body.orbit p.intro {
font-size: 25px;
line-height: 1.6;
margin: 0 0 25px;
}
body.orbit p strong {
font-weight: 700;
}
/* mobile */
@media all and (max-width: 767px) {
body.orbit p {
font-size: 17px;
line-height: 1.8;
}
body.orbit p.intro {
font-size: 20px;
}
}
body.orbit h1 {
font-size: 50px;
font-weight: 700;
text-transform: none;
line-height: 0.8;
margin: 0 0 20px;
padding: 0;
}
/* Smaller desktop sizes */
@media (min-width: 981px) and (max-width: 1350px) {
body.orbit h1 {
font-size: 48px;
line-height: 1;
text-transform: none;
}
}
/* Mobile */
@media all and (max-width: 980px) {
body.orbit h1 {
font-size: 35px;
}
}
body.orbit h2 {
font-weight: 700;
font-size: 48px;
line-height: 1.2;
margin: 0 0 20px;
padding: 0;
}
body.orbit h2.intro {
font-size: 65px;
line-height: 0.9;
}
/* Tablet */
@media (min-width: 768px) and (max-width: 980px) {
body.orbit h2 {
font-size: 42px;
}
body.orbit h2.intro {
font-size: 55px;
}
}
/* Mobile */
@media all and (max-width: 767px) {
body.orbit h2,
body.orbit h2.intro {
font-size: 36px;
}
}
body.orbit h3 {
font-size: 33px;
font-weight: 700;
line-height: 1.2;
margin: 0 0 20px;
padding: 0;
}
body.orbit h4 {
font-size: 25px;
font-weight: 300;
line-height: 1.2;
margin: 0 0 15px;
padding: 0;
}
body.orbit h5 {
font-size: 22px;
font-weight: 700;
line-height: 1.36;
letter-spacing: 1.5px;
text-transform: uppercase;
margin: 0 0 15px;
padding: 0;
}
body.orbit h6 {
font-size: 16px;
font-weight: 700;
line-height: 1.2;
color: #666;
margin: 0 0 15px;
padding: 0;
}
/* BOTTOM OF FILE
THESE STYLES WOULD TECHNICALLY OVERRIDE THE STYLES ABOVE SINCE THEY COME AFTER THEM IN THE STYLESHEET.
NEED TO KNOW WHICH ONES ARE CORRECT.
*/
body.orbit h1 {
font-size: 44px;
line-height: .9;
}
body.orbit p.intro {
font-size:...