Files
UNIT3D-Community-Edition/resources/sass/components/_bbcode-rendered.scss
2023-04-16 01:07:48 +00:00

628 lines
10 KiB
SCSS

.bbcode-rendered.bbcode-rendered {
font-size: 15px;
line-height: 1.5;
word-wrap: break-word;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: var(--bbcode-rendered-fg-default);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
> * {
font-size: 15px;
line-height: 1.5;
word-wrap: break-word;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
* {
color: var(--bbcode-rendered-fg-default);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
br:first-child {
display: none;
}
margin: 0;
background-color: var(--bbcode-rendered-canvas-default);
figcaption,
figure {
display: block;
}
summary {
display: list-item;
}
[hidden] {
display: none !important;
}
a {
background-color: transparent;
color: var(--bbcode-rendered-accent-fg);
text-decoration: none;
}
a:active,
a:hover {
outline-width: 0;
}
abbr[title] {
border-bottom: none;
text-decoration: underline dotted;
}
b,
strong {
font-weight: 600;
}
dfn {
font-style: italic;
}
h1 {
margin: 0.67em 0;
font-weight: 600;
padding-bottom: 0.3em;
font-size: 2em;
border-bottom: 1px solid var(--bbcode-rendered-border-muted);
}
mark {
background-color: var(--bbcode-rendered-attention-subtle);
color: var(--bbcode-rendered-text-primary);
}
small {
font-size: 90%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
img {
border-style: none;
max-width: 100%;
box-sizing: content-box;
background-color: var(--bbcode-rendered-canvas-default);
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
figure {
margin: 1em 40px;
}
hr {
box-sizing: content-box;
overflow: hidden;
background: transparent;
border-bottom: 1px solid var(--bbcode-rendered-border-muted);
height: 0.25em;
padding: 0;
margin: 24px 0;
background-color: var(--bbcode-rendered-border-default);
border: 0;
}
input {
font: inherit;
margin: 0;
overflow: visible;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
[type="checkbox"],
[type="radio"] {
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-input-placeholder {
color: inherit;
opacity: 0.54;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
a:hover {
text-decoration: underline;
}
hr::before {
display: table;
content: "";
}
hr::after {
display: table;
clear: both;
content: "";
}
table {
border-spacing: 0;
border-collapse: collapse;
display: block;
width: max-content;
max-width: 100%;
overflow: auto;
}
td,
th {
padding: 0;
}
details summary {
cursor: pointer;
}
details:not([open]) > *:not(summary) {
display: none !important;
}
kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
line-height: 10px;
color: var(--bbcode-rendered-fg-default);
vertical-align: middle;
background-color: var(--bbcode-rendered-canvas-subtle);
border: solid 1px var(--bbcode-rendered-neutral-muted);
border-bottom-color: var(--bbcode-rendered-neutral-muted);
border-radius: 6px;
box-shadow: inset 0 -1px 0 var(--bbcode-rendered-neutral-muted);
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
}
h2 {
font-weight: 600;
padding-bottom: 0.3em;
font-size: 1.5em;
border-bottom: 1px solid var(--bbcode-rendered-border-muted);
}
h3 {
font-weight: 600;
font-size: 1.25em;
}
h4 {
font-weight: 600;
font-size: 1em;
}
h5 {
font-weight: 600;
font-size: 0.875em;
}
h6 {
font-weight: 600;
font-size: 0.85em;
color: var(--bbcode-rendered-fg-muted);
}
p {
margin-top: 0;
margin-bottom: 10px;
}
blockquote {
padding: 0.25em 0.25em 0.25em 1em;
color: var(--bbcode-rendered-fg-muted);
border-left: 0.25em solid var(--bbcode-rendered-quote-border);
font-size: 15px;
background-color: var(--bbcode-rendered-quote-bg);
border-radius: 6px;
}
blockquote > cite {
font-size: 12px;
font-weight: bold;
}
ul,
ol {
margin-top: 0;
margin-bottom: 0;
padding-left: 2em;
}
ol ol,
ul ol {
list-style-type: lower-roman;
}
ul ul ol,
ul ol ol,
ol ul ol,
ol ol ol {
list-style-type: lower-alpha;
}
dd {
margin-left: 0;
}
tt,
code {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-size: 12px;
}
pre {
background-color: var(--bbcode-rendered-neutral-muted);
border: revert;
border-radius: 6px;
margin-top: 0;
margin-bottom: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas,
Liberation Mono, monospace;
font-size: 12px;
word-wrap: normal;
}
::placeholder {
color: var(--bbcode-rendered-fg-subtle);
opacity: 1;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
margin: 0;
-webkit-appearance: none;
appearance: none;
}
&::before {
display: table;
content: "";
}
&::after {
display: table;
clear: both;
content: "";
}
> *:first-child {
margin-top: 0 !important;
}
> *:last-child {
margin-bottom: 0 !important;
}
a:not([href]) {
color: inherit;
text-decoration: none;
}
p,
blockquote,
ul,
ol,
dl,
table,
pre {
margin-top: 8px;
margin-bottom: 8px;
}
blockquote > :first-child {
margin-top: 0;
}
blockquote > :last-child {
margin-bottom: 0;
}
details {
padding: 0 6px;
margin-top: 0;
margin-bottom: 2px;
display: inline;
max-width: 100%;
}
sup > a::before {
content: "[";
}
sup > a::after {
content: "]";
}
h1 tt,
h1 code,
h2 tt,
h2 code,
h3 tt,
h3 code,
h4 tt,
h4 code,
h5 tt,
h5 code,
h6 tt,
h6 code {
padding: 0 0.2em;
font-size: inherit;
}
ol[type="1"] {
list-style-type: decimal;
}
ol[type="a"] {
list-style-type: lower-alpha;
}
ol[type="i"] {
list-style-type: lower-roman;
}
div > ol:not([type]) {
list-style-type: decimal;
}
ul ul,
ul ol,
ol ol,
ol ul {
margin-top: 0;
margin-bottom: 0;
}
li > p {
margin-top: 16px;
}
li + li {
margin-top: 0.25em;
}
dl {
padding: 0;
}
dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: 600;
}
dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
table th {
font-weight: 600;
}
table th,
table td {
border: revert !important;
padding: 6px 13px;
background-color: var(--bbcode-rendered-canvas-default);
border: 1px solid var(--bbcode-rendered-border-default) !important;
}
table tr {
border: revert;
background-color: var(--bbcode-rendered-canvas-default) !important;
border-top: 1px solid var(--bbcode-rendered-border-muted);
}
table tr:nth-child(2n),
table tr:nth-child(2n) td {
background-color: var(--bbcode-rendered-canvas-subtle);
}
table img {
background-color: transparent;
}
img[align="right"] {
padding-left: 20px;
}
img[align="left"] {
padding-right: 20px;
}
code,
tt {
padding: 0.2em 0.4em;
margin: 0;
font-size: 85%;
background-color: var(--bbcode-rendered-neutral-muted);
border-radius: 6px;
}
del code {
text-decoration: inherit;
}
pre code {
font-size: 100%;
}
pre > code {
padding: 0;
margin: 0;
word-break: normal;
overflow-wrap: anywhere;
white-space: pre-wrap;
background: transparent;
border: 0;
}
pre code,
pre tt {
display: inline;
padding: 0;
margin: 0;
overflow: visible;
line-height: inherit;
word-wrap: normal;
word-break: normal;
overflow-wrap: anywhere;
background-color: transparent;
border: 0;
}
pre {
overflow: visible;
line-height: inherit;
word-wrap: normal;
word-break: break-word;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.footnotes {
font-size: 12px;
color: var(--bbcode-rendered-fg-muted);
border-top: 1px solid var(--bbcode-rendered-border-default);
}
.footnotes ol {
padding-left: 16px;
}
.footnotes li {
position: relative;
}
.footnotes li:target::before {
position: absolute;
top: -8px;
right: -8px;
bottom: -8px;
left: -24px;
pointer-events: none;
content: "";
border: 2px solid var(--bbcode-rendered-accent-emphasis);
border-radius: 6px;
}
.footnotes li:target {
color: var(--bbcode-rendered-fg-default);
}
.footnotes .footnote-backref {
font-family: monospace;
}
::-webkit-calendar-picker-indicator {
filter: invert(50%);
}
.bbcode-rendered__alert {
border-radius: 5px;
padding: 8px;
border: 2px solid var(--bbcode-rendered-danger-fg);
}
.bbcode-rendered__alert::before {
content: 'Alert: ';
color: var(--bbcode-rendered-danger-fg);
display: inline-block;
padding-right: 1ch;
}
.bbcode-rendered__note {
border-radius: 4px;
padding: 8px;
border: 2px solid var(--bbcode-rendered-attention-subtle);
}
.bbcode-rendered__note::before {
content: 'Note: ';
color: var(--bbcode-rendered-attention-subtle);
display: inline-block;
padding-right: 1ch;
}
}