@tailwind base; @tailwind components; @tailwind utilities; :focus-visible { outline: 6px solid theme(colors.blue.500 / 50%); border-radius: 3px; } /* Typography */ .prose :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, pre) { @apply mb-4; } .prose :is(h1, h2, h3, h4, h5, h6) { @apply mt-8; } .link, .prose a { @apply text-red-900 hover:text-red-600 dark:text-red-300 dark:hover:text-red-400 border-b-4 border-red-500/25 dark:border-red-200/25; transition: color 200ms; } :is(.list, .prose ul) li { position: relative; margin-left: 1.5em; } :is(.list, .prose ul) li::before { content: "–"; display: inline-block; position: absolute; width: 1.5em; left: -1.5em; } .subheading, .prose h3 { @apply font-bold text-red-800 dark:text-red-300; } :is(.subheading, .prose h3)::before { content: "★"; font-weight: 500; margin-right: 0.75em; } .subsubheading, .prose h4 { font-weight: 500; } .code-block, pre { @apply bg-gray-100 dark:bg-gray-800; border-radius: 0.25em; overflow-x: auto; padding: 1em; position: relative; } .code-inline, code { @apply bg-gray-100 dark:bg-gray-800; padding: 0.125em 0.25em; border-radius: 0.25em; font-size: 0.875em; } /* Background */ .clip-wedge { --wedge-skew: 10vw; clip-path: polygon(0 var(--wedge-skew), 100% 0, 100% calc(100% - var(--wedge-skew)), 0% 100% ); } @media screen(md) { .clip-wedge { --wedge-skew: 8vw; } } @media screen(lg) { .clip-wedge { --wedge-skew: 5vw; } } /* Components */ .button { padding: 0.5em; border-radius: 100px; } .button--opaque { @apply bg-white dark:bg-gray-900; } .button:hover { background-color: theme(colors.gray.400 / 25%); } /* Utils */ html:not(.dark) .light\:hidden { display: none; } .svg-w-8 svg { @apply w-8; } /* Tippy */ .tippy-box[data-animation="fade"][data-state="hidden"] { opacity: 0; } [data-tippy-root] { max-width: calc(100vw - 10px); } .tippy-box { position: relative; background-color: #333; color: #fff; border-radius: 4px; font-size: 14px; line-height: 1.4; white-space: normal; outline: 0; transition-property: transform, visibility, opacity; } .tippy-box[data-placement^="top"] > .tippy-arrow { bottom: 0; } .tippy-box[data-placement^="top"] > .tippy-arrow:before { bottom: -7px; left: 0; border-width: 8px 8px 0; border-top-color: initial; transform-origin: center top; } .tippy-box[data-placement^="bottom"] > .tippy-arrow { top: 0; } .tippy-box[data-placement^="bottom"] > .tippy-arrow:before { top: -7px; left: 0; border-width: 0 8px 8px; border-bottom-color: initial; transform-origin: center bottom; } .tippy-box[data-placement^="left"] > .tippy-arrow { right: 0; } .tippy-box[data-placement^="left"] > .tippy-arrow:before { border-width: 8px 0 8px 8px; border-left-color: initial; right: -7px; transform-origin: center left; } .tippy-box[data-placement^="right"] > .tippy-arrow { left: 0; } .tippy-box[data-placement^="right"] > .tippy-arrow:before { left: -7px; border-width: 8px 8px 8px 0; border-right-color: initial; transform-origin: center right; } .tippy-box[data-inertia][data-state="visible"] { transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11); } .tippy-arrow { width: 16px; height: 16px; color: #333; } .tippy-arrow:before { content: ""; position: absolute; border-color: transparent; border-style: solid; } .tippy-content { position: relative; padding: 0.75em 1em; z-index: 1; }