kdl-org.github.io/styles/global.css

1239 lines
20 KiB
CSS

/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/**
Use a more readable tab size (opinionated).
*/
:root {
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/*
Sections
========
*/
/**
Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/
body {
font-family:
system-ui,
-apple-system, /* Firefox supports this but not yet `system-ui` */
'Segoe UI',
Roboto,
Helvetica,
Arial,
sans-serif,
'Apple Color Emoji',
'Segoe UI Emoji';
}
/*
Grouping content
================
*/
/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/
hr {
height: 0; /* 1 */
color: inherit; /* 2 */
}
/*
Text-level semantics
====================
*/
/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr[title] {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
/**
Add the correct font weight in Edge and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
font-family:
ui-monospace,
SFMono-Regular,
Consolas,
'Liberation Mono',
Menlo,
monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/*
Tabular data
============
*/
/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
text-indent: 0; /* 1 */
border-color: inherit; /* 2 */
}
/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type='button'] {
-webkit-appearance: button;
}
/**
Remove the inner border and padding in Firefox.
*/
/**
Restore the focus styles unset by the previous rule.
*/
/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/
/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
padding: 0;
}
/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
vertical-align: baseline;
}
/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
/**
Remove the inner padding in Chrome and Safari on macOS.
*/
/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
display: list-item;
}
/**
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base
* A thin layer on top of normalize.css that provides a starting point more
* suitable for web applications.
*/
/**
* Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
button {
background-color: transparent;
background-image: none;
}
/**
* Work around a Firefox/IE bug where the transparent `button` background
* results in a loss of the default `button` focus styles.
*/
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
fieldset {
margin: 0;
padding: 0;
}
ol,
ul {
list-style: none;
margin: 0;
padding: 0;
}
/**
* Tailwind custom reset styles
*/
/**
* 1. Use the user's configured `sans` font-family (with Tailwind's default
* sans-serif font stack as a fallback) as a sane default.
* 2. Use Tailwind's default "normal" line-height so the user isn't forced
* to override it to ensure consistency even when using the default theme.
*/
html {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 1 */
line-height: 1.5; /* 2 */
}
/**
* Inherit font-family and line-height from `html` so users can set them as
* a class directly on the `html` element.
*/
body {
font-family: inherit;
line-height: inherit;
}
/**
* 1. Prevent padding and border from affecting element width.
*
* We used to set this in the html element and inherit from
* the parent element for everything else. This caused issues
* in shadow-dom-enhanced elements like <details> where the content
* is wrapped by a div with box-sizing set to `content-box`.
*
* https://github.com/mozdevs/cssremedy/issues/4
*
*
* 2. Allow adding a border to an element by just adding a border-width.
*
* By default, the way the browser specifies that an element should have no
* border is by setting it's border-style to `none` in the user-agent
* stylesheet.
*
* In order to easily add borders to elements by just setting the `border-width`
* property, we change the default border-style for all elements to `solid`, and
* use border-width to hide them instead. This way our `border` utilities only
* need to set the `border-width` property instead of the entire `border`
* shorthand, making our border utilities much more straightforward to compose.
*
* https://github.com/tailwindcss/tailwindcss/pull/116
*/
*,
::before,
::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: #e5e7eb; /* 2 */
}
/*
* Ensure horizontal rules are visible by default
*/
hr {
border-top-width: 1px;
}
/**
* Undo the `border-style: none` reset that Normalize applies to images so that
* our `border-{width}` utilities have the expected effect.
*
* The Normalize reset is unnecessary for us since we default the border-width
* to 0 on all elements.
*
* https://github.com/tailwindcss/tailwindcss/issues/362
*/
img {
border-style: solid;
}
textarea {
resize: vertical;
}
input::-moz-placeholder, textarea::-moz-placeholder {
color: #9ca3af;
}
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
color: #9ca3af;
}
input::placeholder,
textarea::placeholder {
color: #9ca3af;
}
button {
cursor: pointer;
}
table {
border-collapse: collapse;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
/**
* Reset links to optimize for opt-in styling instead of
* opt-out.
*/
a {
color: inherit;
text-decoration: inherit;
}
/**
* Reset form element properties that are easy to forget to
* style explicitly so you don't inadvertently introduce
* styles that deviate from your design system. These styles
* supplement a partial reset that is already applied by
* normalize.css.
*/
button,
input,
optgroup,
select,
textarea {
padding: 0;
line-height: inherit;
color: inherit;
}
/**
* Use the configured 'mono' font family for elements that
* are expected to be rendered with a monospace font, falling
* back to the system monospace stack if there is no configured
* 'mono' font family.
*/
pre,
code,
kbd,
samp {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
/**
* Make replaced elements `display: block` by default as that's
* the behavior you want almost all of the time. Inspired by
* CSS Remedy, with `svg` added as well.
*
* https://github.com/mozdevs/cssremedy/issues/14
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block;
vertical-align: middle;
}
/**
* Constrain images and videos to the parent width and preserve
* their instrinsic aspect ratio.
*
* https://github.com/mozdevs/cssremedy/issues/14
*/
img,
video {
max-width: 100%;
height: auto;
}
.table {
display: table;
}
.contents {
display: contents;
}
.h-20 {
height: 5rem;
}
.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.pb-10 {
padding-bottom: 2.5rem;
}
.pt-20 {
padding-top: 5rem;
}
* {
--tw-shadow: 0 0 #0000;
}
* {
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgba(59, 130, 246, 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
}
.text-center {
text-align: center;
}
@-webkit-keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@-webkit-keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes ping {
75%, 100% {
transform: scale(2);
opacity: 0;
}
}
@-webkit-keyframes pulse {
50% {
opacity: .5;
}
}
@keyframes pulse {
50% {
opacity: .5;
}
}
@-webkit-keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
@keyframes bounce {
0%, 100% {
transform: translateY(-25%);
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1);
animation-timing-function: cubic-bezier(0.8,0,1,1);
}
50% {
transform: none;
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1);
animation-timing-function: cubic-bezier(0,0,0.2,1);
}
}
.kdl-section {
color: #374151;
max-width: 65ch;
}
.kdl-section [class~="lead"] {
color: #4b5563;
font-size: 1.25em;
line-height: 1.6;
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.kdl-section a {
color: #111827;
text-decoration: underline;
font-weight: 500;
}
.kdl-section strong {
color: #111827;
font-weight: 600;
}
.kdl-section ol {
counter-reset: list-counter;
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.kdl-section ol > li {
position: relative;
counter-increment: list-counter;
padding-left: 1.75em;
}
.kdl-section ol > li::before {
content: counter(list-counter) ".";
position: absolute;
font-weight: 400;
color: #6b7280;
left: 0;
}
.kdl-section ul > li {
position: relative;
padding-left: 1.75em;
}
.kdl-section ul > li::before {
content: "";
position: absolute;
background-color: #d1d5db;
border-radius: 50%;
width: 0.375em;
height: 0.375em;
top: calc(0.875em - 0.1875em);
left: 0.25em;
}
.kdl-section hr {
border-color: #e5e7eb;
border-top-width: 1px;
margin-top: 3em;
margin-bottom: 3em;
}
.kdl-section blockquote {
font-weight: 500;
font-style: italic;
color: #111827;
border-left-width: 0.25rem;
border-left-color: #e5e7eb;
quotes: "\201C""\201D""\2018""\2019";
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-left: 1em;
}
.kdl-section blockquote p:first-of-type::before {
content: open-quote;
}
.kdl-section blockquote p:last-of-type::after {
content: close-quote;
}
.kdl-section h1 {
color: #111827;
font-weight: 800;
font-size: 2.25em;
margin-top: 0;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.kdl-section h2 {
color: #111827;
font-weight: 700;
font-size: 1.5em;
margin-top: 2em;
margin-bottom: 1em;
line-height: 1.3333333;
}
.kdl-section h3 {
color: #111827;
font-weight: 600;
font-size: 1.25em;
margin-top: 1.6em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.kdl-section h4 {
color: #111827;
font-weight: 600;
margin-top: 1.5em;
margin-bottom: 0.5em;
line-height: 1.5;
}
.kdl-section figure figcaption {
color: #6b7280;
font-size: 0.875em;
line-height: 1.4285714;
margin-top: 0.8571429em;
}
.kdl-section code {
color: #111827;
font-weight: 600;
font-size: 0.875em;
}
.kdl-section code::before {
content: none;
}
.kdl-section code::after {
content: none;
}
.kdl-section a code {
color: #111827;
}
.kdl-section pre {
color: #e5e7eb;
background-color: #1f2937;
overflow-x: auto;
font-size: 0.875em;
line-height: 1.7142857;
margin-top: 1.7142857em;
margin-bottom: 1.7142857em;
border-radius: 0.375rem;
padding-top: 0.8571429em;
padding-right: 1.1428571em;
padding-bottom: 0.8571429em;
padding-left: 1.1428571em;
}
.kdl-section pre code {
background-color: transparent;
border-width: 0;
border-radius: 0;
padding: 0;
font-weight: 400;
color: inherit;
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
.kdl-section pre code::before {
content: "";
}
.kdl-section pre code::after {
content: none;
}
.kdl-section table {
width: 100%;
table-layout: auto;
text-align: left;
margin-top: 2em;
margin-bottom: 2em;
font-size: 0.875em;
line-height: 1.7142857;
}
.kdl-section thead {
color: #111827;
font-weight: 600;
border-bottom-width: 1px;
border-bottom-color: #d1d5db;
}
.kdl-section thead th {
vertical-align: bottom;
padding-right: 0.5714286em;
padding-bottom: 0.5714286em;
padding-left: 0.5714286em;
}
.kdl-section tbody tr {
border-bottom-width: 1px;
border-bottom-color: #e5e7eb;
}
.kdl-section tbody tr:last-child {
border-bottom-width: 0;
}
.kdl-section tbody td {
vertical-align: top;
padding-top: 0.5714286em;
padding-right: 0.5714286em;
padding-bottom: 0.5714286em;
padding-left: 0.5714286em;
}
.kdl-section {
font-size: 1rem;
line-height: 1.75;
}
.kdl-section p {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.kdl-section img {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section video {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section figure {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section figure > * {
margin-top: 0;
margin-bottom: 0;
}
.kdl-section h2 code {
font-size: 0.875em;
}
.kdl-section h3 code {
font-size: 0.9em;
}
.kdl-section ul {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.kdl-section li {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.kdl-section > ul > li p {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.kdl-section > ul > li > *:first-child {
margin-top: 1.25em;
}
.kdl-section > ul > li > *:last-child {
margin-bottom: 1.25em;
}
.kdl-section > ol > li > *:first-child {
margin-top: 1.25em;
}
.kdl-section > ol > li > *:last-child {
margin-bottom: 1.25em;
}
.kdl-section ul ul, .kdl-section ul ol, .kdl-section ol ul, .kdl-section ol ol {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.prose ul ul, .prose ul ol, .prose ol ul, .prose ol ol {
margin-top: 0.75em;
margin-bottom: 0.75em;
margin-top: 0.75em;
margin-bottom: 0.75em;
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.kdl-section hr + * {
margin-top: 0;
}
.kdl-section h2 + * {
margin-top: 0;
}
.kdl-section h3 + * {
margin-top: 0;
}
.kdl-section h4 + * {
margin-top: 0;
}
.kdl-section thead th:first-child {
padding-left: 0;
}
.kdl-section thead th:last-child {
padding-right: 0;
}
.kdl-section tbody td:first-child {
padding-left: 0;
}
.kdl-section tbody td:last-child {
padding-right: 0;
}
.kdl-section > :first-child {
margin-top: 0;
}
.kdl-section > :last-child {
margin-bottom: 0;
}
.kdl-section {
font-size: 1.25rem;
line-height: 1.8;
}
.kdl-section p {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.kdl-section [class~="lead"] {
font-size: 1.2em;
line-height: 1.5;
margin-top: 1em;
margin-bottom: 1em;
}
.kdl-section blockquote {
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-left: 1.0666667em;
}
.kdl-section h1 {
font-size: 2.8em;
margin-top: 0;
margin-bottom: 0.8571429em;
line-height: 1;
}
.kdl-section h2 {
font-size: 1.8em;
margin-top: 1.5555556em;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.kdl-section h3 {
font-size: 1.5em;
margin-top: 1.6em;
margin-bottom: 0.6666667em;
line-height: 1.3333333;
}
.kdl-section h4 {
margin-top: 1.8em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.kdl-section img {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section video {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section figure {
margin-top: 2em;
margin-bottom: 2em;
}
.kdl-section figure > * {
margin-top: 0;
margin-bottom: 0;
}
.kdl-section figure figcaption {
font-size: 0.9em;
line-height: 1.5555556;
margin-top: 1em;
}
.kdl-section code {
font-size: 0.9em;
}
.kdl-section h2 code {
font-size: 0.8611111em;
}
.kdl-section h3 code {
font-size: 0.9em;
}
.kdl-section pre {
font-size: 0.9em;
line-height: 1.7777778;
margin-top: 2em;
margin-bottom: 2em;
border-radius: 0.5rem;
padding-top: 1.1111111em;
padding-right: 1.3333333em;
padding-bottom: 1.1111111em;
padding-left: 1.3333333em;
}
.kdl-section ol {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.kdl-section ul {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.kdl-section li {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.kdl-section ol > li {
padding-left: 1.8em;
}
.kdl-section ol > li::before {
left: 0;
}
.kdl-section ul > li {
padding-left: 1.8em;
}
.kdl-section ul > li::before {
width: 0.35em;
height: 0.35em;
top: calc(0.9em - 0.175em);
left: 0.25em;
}
.kdl-section > ul > li p {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.kdl-section > ul > li > *:first-child {
margin-top: 1.2em;
}
.kdl-section > ul > li > *:last-child {
margin-bottom: 1.2em;
}
.kdl-section > ol > li > *:first-child {
margin-top: 1.2em;
}
.kdl-section > ol > li > *:last-child {
margin-bottom: 1.2em;
}
.kdl-section ul ul, .kdl-section ul ol, .kdl-section ol ul, .kdl-section ol ol {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.prose-xl ul ul, .prose-xl ul ol, .prose-xl ol ul, .prose-xl ol ol {
margin-top: 0.8em;
margin-bottom: 0.8em;
margin-top: 0.8em;
margin-bottom: 0.8em;
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.kdl-section hr {
margin-top: 2.8em;
margin-bottom: 2.8em;
}
.kdl-section hr + * {
margin-top: 0;
}
.kdl-section h2 + * {
margin-top: 0;
}
.kdl-section h3 + * {
margin-top: 0;
}
.kdl-section h4 + * {
margin-top: 0;
}
.kdl-section table {
font-size: 0.9em;
line-height: 1.5555556;
}
.kdl-section thead th {
padding-right: 0.6666667em;
padding-bottom: 0.8888889em;
padding-left: 0.6666667em;
}
.kdl-section thead th:first-child {
padding-left: 0;
}
.kdl-section thead th:last-child {
padding-right: 0;
}
.kdl-section tbody td {
padding-top: 0.8888889em;
padding-right: 0.6666667em;
padding-bottom: 0.8888889em;
padding-left: 0.6666667em;
}
.kdl-section tbody td:first-child {
padding-left: 0;
}
.kdl-section tbody td:last-child {
padding-right: 0;
}
.kdl-section > :first-child {
margin-top: 0;
}
.kdl-section > :last-child {
margin-bottom: 0;
}
.kdl-section {
margin-left: auto;
margin-right: auto;
padding-left: 1rem;
padding-right: 1rem;
padding-top: 2.5rem;
padding-bottom: 2.5rem;
}
code {
background-color: #efefef;
padding: 0.1em 0.5em;
border-radius: 4px;
}
@media (min-width: 640px) {
}
@media (min-width: 768px) {
}
@media (min-width: 1024px) {
}
@media (min-width: 1280px) {
}
@media (min-width: 1536px) {
}