Search
 
SCRIPT & CODE EXAMPLE
 

CSS

css - global -Typogryphy

/* Typography | Global */
:root {
  /* body font size */
  --text-base-size: 1em;


  /* type scale */
  --text-scale-ratio: 1.2;
  --text-xs: calc((--text-base-size / var(--text-scale-ratio)) / var(--text-scale-ratio));
  --text-sm: calc(var(--text-xs) * var(--text-scale-ratio));
  --text-md: calc(var(--text-sm) * var(--text-scale-ratio) * var(--text-scale-ratio));
  --text-lg: calc(var(--text-md) * var(--text-scale-ratio));
  --text-xl: calc(var(--text-lg) * var(--text-scale-ratio));
  --text-xxl: calc(var(--text-xl) * var(--text-scale-ratio));
}


@media (min-width: 64rem) { /* responsive decision applied to all text elements */
  :root {
    --text-base-size: 1.25em;
    --text-scale-ratio: 1.25;
  }
}


h1, .text-xxl   { font-size: var(--text-xxl, 2.074em); }
h2, .text-xl    { font-size: var(--text-xl, 1.728em); }
h3, .text-lg    { font-size: var(--text-lg, 1.44em); }
h4, .text-md    { font-size: var(--text-md, 1.2em); }
.text-base      { font-size: --text-base-size; }
small, .text-sm { font-size: var(--text-sm, 0.833em); }
.text-xs        { font-size: var(--text-xs, 0.694em); }
Comment

PREVIOUS NEXT
Code Example
Css :: hwo to reload css in flask 
Css :: radio button css only 1 
Css :: add on click event on button on payment screen odoo pos 
Css :: how to change the theme of a website using css 
Css :: should use px or em css 
Css :: allvarliga symtom på järnbrist 
Css :: list icon color change in css 
Css :: how to use class form scss reactjs 
Css :: Netlify CMS mobile responsive CSS 
Css :: CSS - The Class Selectors 
Css :: get variable containers 
Css :: ipad css media query 
Css :: bulk order pre cooked pasta 
Css :: css design guideline 
Css :: talwind css 
Css :: multi-styles 
Css :: css input auto-correct color 
Css :: i need show the message for when we are clicking routing page in anularjs 
Css :: placeholder color default 
Css :: add css dynamically in angular 6 
Css :: css garden 
Typescript :: close ports in windows 
Typescript :: git count commits by author 
Typescript :: ERROR in The Angular Compiler requires TypeScript =4.0.0 and <4.1.0 but 3.4.5 was found instead. 
Typescript :: how to add a new propety into all documents in mongodb 
Typescript :: googlesheets query date between 
Typescript :: three dots icon flutter 
Typescript :: dataframe value counts sort 
Typescript :: vscode use relative paths in auto import 
Typescript :: Nmap to find open ports kali linux 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =