UNPKG

postcss-gridlover

Version:

Enables using Gridlover sx and gr units in your CSS

74 lines (72 loc) 1.4 kB
html { --base-font-size: 14px; /* Must be in pixels */ --base-line-height: 1.3; /* Must be a decimal number */ --base-scale-factor: 1.618; /* Must be a decimal number */ --base-units: px; /* px, rem, em */ font-size: var(--base-font-size); /* html/root font-size must be defined as the base font size when using em or rem, or the grid won't be pixel perfect */ line-height: var(--base-line-height); } body { font-family: sans-serif; font-size: 14px; line-height: 18px; max-width: 560px; margin: auto; } h1 { font-size: 59px; line-height: 72px; margin-top: 18px; margin-bottom: 36px; } h2 { font-size: 37px; line-height: 54px; margin-top: 18px; margin-bottom: 18px; } h3 { font-size: 23px; line-height: 36px; margin-top: 18px; margin-bottom: 0px; } h4 { font-size: 14px; line-height: 18px; margin-top: 18px; margin-bottom: 0px; } h5 { font-size: 14px; line-height: 18px; margin-top: 18px; margin-bottom: 0px; } p, ul, ol, pre , table, blockquote { margin-top: 0px; margin-bottom: 18px; } ul ul, ol ol, ul ol, ol ul { margin-top: 0px; margin-bottom: 0px; } /* Let's make sure all's aligned */ hr { border: 1px solid; margin: -1px 0; } a, b, i, strong, em, small, code { line-height: 18px; } sub, sup { line-height: 18px; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; }