Skip to content

Instantly share code, notes, and snippets.

@edwinmasripan
Created November 23, 2021 09:31
Show Gist options
  • Select an option

  • Save edwinmasripan/3b57b42a5034f1eb4ff7e59eef609cec to your computer and use it in GitHub Desktop.

Select an option

Save edwinmasripan/3b57b42a5034f1eb4ff7e59eef609cec to your computer and use it in GitHub Desktop.
Adaptive Font Settings for Oxygen Builder
/*
Zero-rize all the fonts on Oxygen Builder.
*/
h1 {font-size:4em}
h2 {font-size:3em}
h3 {font-size:2em}
h4 {font-size:1.5em}
h1,h2,h3,h4 {letter-spacing:-.01em; line-height:0.95em;}
p {font-size:.83em; margin: 0 0 1.5em}
@media (max-width:1200px){
h1 {font-size: clamp(2.7em,8vw,4em); }
h2 {font-size: clamp(2em,8vw,3em); }
h3 {font-size: clamp(1.3em,8vw,2em); }
h4 {font-size: clamp(1em,8vw,1.5em); }
p {font-size: clamp(.67em,4vw,.833em) !important; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment