UNPKG

@barguide/style-guide

Version:

BarGuide.io | CSS Style Guide

90 lines (79 loc) 1.75 kB
html, body { background-color: var(--theme-background); color: var(--theme-copy); font-size: 15px; height: 100vh; margin: 0; padding: 0; } html { scroll-behavior: smooth; } body { font-family: var(--font-family-exo); font-size: 14px; line-height: 1.6; min-height: 100vh; min-width: var(--min-width); /* Account for the bottom notch */ padding-bottom: 0; padding-bottom: constant(safe-area-inset-bottom, 0); padding-bottom: env(safe-area-inset-bottom, 0); /* Account for the top notch */ padding-top: 0; padding-top: constant(safe-area-inset-top, 0); padding-top: env(safe-area-inset-top, 0); } h1, h2, h3, h4, h5, h6 { color: var(--theme-copy); font-family: var(--font-family-roboto); font-weight: normal; line-height: 1.2; padding: 0; text-transform: unset; } p { line-height: 1.6; margin-bottom: 1.4rem; padding: 0; } p:last-of-type { margin-bottom: 0; } /** * This class is remove when the browser is allowed to run javascript. Using this * flag we can take a `progressive enhancement` approach to loading images. */ .no-js .js-req { display: none; } /** * NOTE: This is still readable to Screen Readers! * We should not need to update this particular utility so be careful * if you come across a use-case where we'd like to make changes */ .u-visually-hidden { border: none; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } /** * Allows us to disable the focus. This is useful if we are actually bubbling * the role of button to a parent element as we do within the new filter system */ .u-no-focus:focus { box-shadow: none; -webkit-focus-ring-color: transparent; outline: 0; }