hedgedoc/frontend/global-styles/github-markdown.scss

998 lines
14 KiB
SCSS
Raw Permalink Normal View History

/*!
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) & Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
*
* SPDX-License-Identifier: AGPL-3.0-only
2020-09-13 12:04:02 -04:00
*/
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
line-height: 1.5;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
2020-09-13 12:04:02 -04:00
.octicon {
display: inline-block;
fill: currentColor;
vertical-align: text-bottom;
}
2020-09-13 12:04:02 -04:00
.anchor {
float: left;
line-height: 1;
margin-left: -20px;
padding-right: 4px;
}
2020-09-13 12:04:02 -04:00
.anchor:focus {
outline: none;
}
2020-09-13 12:04:02 -04:00
h1 .octicon-link,
h2 .octicon-link,
h3 .octicon-link,
h4 .octicon-link,
h5 .octicon-link,
h6 .octicon-link {
vertical-align: middle;
visibility: hidden;
}
2020-09-13 12:04:02 -04:00
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
text-decoration: none;
}
2020-09-13 12:04:02 -04:00
h1:hover .anchor .octicon-link,
h2:hover .anchor .octicon-link,
h3:hover .anchor .octicon-link,
h4:hover .anchor .octicon-link,
h5:hover .anchor .octicon-link,
h6:hover .anchor .octicon-link {
visibility: visible;
}
2020-09-13 12:04:02 -04:00
h1:hover .anchor .octicon-link:before,
h2:hover .anchor .octicon-link:before,
h3:hover .anchor .octicon-link:before,
h4:hover .anchor .octicon-link:before,
h5:hover .anchor .octicon-link:before,
h6:hover .anchor .octicon-link:before {
width: 16px;
height: 16px;
content: ' ';
display: inline-block;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E");
}
2020-09-13 12:04:02 -04:00
details {
display: block;
}
2020-09-13 12:04:02 -04:00
summary {
display: list-item;
}
2020-09-13 12:04:02 -04:00
a {
background-color: initial;
}
2020-09-13 12:04:02 -04:00
a:active,
a:hover {
outline-width: 0;
}
2020-09-13 12:04:02 -04:00
strong {
font-weight: inherit;
font-weight: bolder;
}
2020-09-13 12:04:02 -04:00
h1 {
font-size: 2em;
margin: .67em 0;
}
2020-09-13 12:04:02 -04:00
img {
border-style: none;
}
2020-09-13 12:04:02 -04:00
code,
kbd,
pre {
font-family: monospace, monospace;
font-size: 1em;
}
2020-09-13 12:04:02 -04:00
hr {
box-sizing: initial;
height: 0;
overflow: visible;
}
2020-09-13 12:04:02 -04:00
input {
font: inherit;
margin: 0;
}
2020-09-13 12:04:02 -04:00
input {
overflow: visible;
}
2020-09-13 12:04:02 -04:00
[type=checkbox] {
box-sizing: border-box;
padding: 0;
}
2020-09-13 12:04:02 -04:00
* {
box-sizing: border-box;
}
2020-09-13 12:04:02 -04:00
input {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
2020-09-13 12:04:02 -04:00
a {
color: #0366d6;
text-decoration: none;
}
2020-09-13 12:04:02 -04:00
a:hover {
text-decoration: underline;
}
2020-09-13 12:04:02 -04:00
strong {
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #dfe2e5;
}
2020-09-13 12:04:02 -04:00
hr:after,
hr:before {
display: table;
content: "";
}
2020-09-13 12:04:02 -04:00
hr:after {
clear: both;
}
2020-09-13 12:04:02 -04:00
table {
border-spacing: 0;
border-collapse: collapse;
}
2020-09-13 12:04:02 -04:00
td,
th {
padding: 0;
}
2020-09-13 12:04:02 -04:00
details summary {
cursor: pointer;
}
2020-09-13 12:04:02 -04:00
kbd {
display: inline-block;
padding: 3px 5px;
font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
line-height: 10px;
color: #444d56;
vertical-align: middle;
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #d1d5da;
}
2020-09-13 12:04:02 -04:00
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
margin-bottom: 0;
}
2020-09-13 12:04:02 -04:00
h1 {
font-size: 32px;
}
2020-09-13 12:04:02 -04:00
h1,
h2 {
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
h2 {
font-size: 24px;
}
2020-09-13 12:04:02 -04:00
h3 {
font-size: 20px;
}
2020-09-13 12:04:02 -04:00
h3,
h4 {
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
h4 {
font-size: 16px;
}
2020-09-13 12:04:02 -04:00
h5 {
font-size: 14px;
}
2020-09-13 12:04:02 -04:00
h5,
h6 {
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
h6 {
font-size: 12px;
}
2020-09-13 12:04:02 -04:00
p {
margin-top: 0;
margin-bottom: 10px;
}
2020-09-13 12:04:02 -04:00
blockquote {
margin: 0;
}
2020-09-13 12:04:02 -04:00
ol,
ul {
padding-left: 0;
margin-top: 0;
margin-bottom: 0;
}
2020-09-13 12:04:02 -04:00
ol ol ol,
ol ul ol,
ul ol ol,
ul ul ol {
list-style-type: lower-alpha;
}
2020-09-13 12:04:02 -04:00
dd {
margin-left: 0;
}
2020-09-13 12:04:02 -04:00
code,
pre {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 12px;
}
2020-09-13 12:04:02 -04:00
pre {
margin-top: 0;
margin-bottom: 0;
}
2020-09-13 12:04:02 -04:00
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
margin: 0;
-webkit-appearance: none;
appearance: none;
}
2020-09-13 12:04:02 -04:00
:checked + .radio-label {
position: relative;
z-index: 1;
border-color: #0366d6;
}
2020-09-13 12:04:02 -04:00
.border {
border: 1px solid #e1e4e8 !important;
}
2020-09-13 12:04:02 -04:00
.border-0 {
border: 0 !important;
}
2020-09-13 12:04:02 -04:00
.border-bottom {
border-bottom: 1px solid #e1e4e8 !important;
}
2020-09-13 12:04:02 -04:00
.rounded-1 {
border-radius: 3px !important;
}
2020-09-13 12:04:02 -04:00
.bg-white {
background-color: #fff !important;
}
2020-09-13 12:04:02 -04:00
.bg-gray-light {
background-color: #fafbfc !important;
}
2020-09-13 12:04:02 -04:00
.text-gray-light {
color: #6a737d !important;
}
2020-09-13 12:04:02 -04:00
.mb-0 {
margin-bottom: 0 !important;
}
2020-09-13 12:04:02 -04:00
.my-2 {
margin-top: 8px !important;
margin-bottom: 8px !important;
}
2020-09-13 12:04:02 -04:00
.pl-0 {
padding-left: 0 !important;
}
2020-09-13 12:04:02 -04:00
.py-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
2020-09-13 12:04:02 -04:00
.pl-1 {
padding-left: 4px !important;
}
2020-09-13 12:04:02 -04:00
.pl-2 {
padding-left: 8px !important;
}
2020-09-13 12:04:02 -04:00
.py-2 {
padding-top: 8px !important;
padding-bottom: 8px !important;
}
2020-09-13 12:04:02 -04:00
.pl-3,
.px-3 {
padding-left: 16px !important;
}
2020-09-13 12:04:02 -04:00
.px-3 {
padding-right: 16px !important;
}
2020-09-13 12:04:02 -04:00
.pl-4 {
padding-left: 24px !important;
}
2020-09-13 12:04:02 -04:00
.pl-5 {
padding-left: 32px !important;
}
2020-09-13 12:04:02 -04:00
.pl-6 {
padding-left: 40px !important;
}
2020-09-13 12:04:02 -04:00
.f6 {
font-size: 12px !important;
}
2020-09-13 12:04:02 -04:00
.lh-condensed {
line-height: 1.25 !important;
}
2020-09-13 12:04:02 -04:00
.text-bold {
font-weight: 600 !important;
}
2020-09-13 12:04:02 -04:00
.pl-c {
color: #6a737d;
}
2020-09-13 12:04:02 -04:00
.pl-c1,
.pl-s .pl-v {
color: #005cc5;
}
2020-09-13 12:04:02 -04:00
.pl-e,
.pl-en {
color: #6f42c1;
}
2020-09-13 12:04:02 -04:00
.pl-s .pl-s1,
.pl-smi {
color: #24292e;
}
2020-09-13 12:04:02 -04:00
.pl-ent {
color: #22863a;
}
2020-09-13 12:04:02 -04:00
.pl-k {
color: #d73a49;
}
2020-09-13 12:04:02 -04:00
.pl-pds,
.pl-s,
.pl-s .pl-pse .pl-s1,
.pl-sr,
.pl-sr .pl-cce,
.pl-sr .pl-sra,
.pl-sr .pl-sre {
color: #032f62;
}
2020-09-13 12:04:02 -04:00
.pl-smw,
.pl-v {
color: #e36209;
}
2020-09-13 12:04:02 -04:00
.pl-bu {
color: #b31d28;
}
2020-09-13 12:04:02 -04:00
.pl-ii {
color: #fafbfc;
background-color: #b31d28;
}
2020-09-13 12:04:02 -04:00
.pl-c2 {
color: #fafbfc;
background-color: #d73a49;
}
2020-09-13 12:04:02 -04:00
.pl-c2:before {
content: "^M";
}
2020-09-13 12:04:02 -04:00
.pl-sr .pl-cce {
font-weight: 700;
color: #22863a;
}
2020-09-13 12:04:02 -04:00
.pl-ml {
color: #735c0f;
}
2020-09-13 12:04:02 -04:00
.pl-mh,
.pl-mh .pl-en,
.pl-ms {
font-weight: 700;
color: #005cc5;
}
2020-09-13 12:04:02 -04:00
.pl-mi {
font-style: italic;
color: #24292e;
}
2020-09-13 12:04:02 -04:00
.pl-mb {
font-weight: 700;
color: #24292e;
}
2020-09-13 12:04:02 -04:00
.pl-md {
color: #b31d28;
background-color: #ffeef0;
}
2020-09-13 12:04:02 -04:00
.pl-mi1 {
color: #22863a;
background-color: #f0fff4;
}
2020-09-13 12:04:02 -04:00
.pl-mc {
color: #e36209;
background-color: #ffebda;
}
2020-09-13 12:04:02 -04:00
.pl-mi2 {
color: #f6f8fa;
background-color: #005cc5;
}
2020-09-13 12:04:02 -04:00
.pl-mdr {
font-weight: 700;
color: #6f42c1;
}
2020-09-13 12:04:02 -04:00
.pl-ba {
color: #586069;
}
2020-09-13 12:04:02 -04:00
.pl-sg {
color: #959da5;
}
2020-09-13 12:04:02 -04:00
.pl-corl {
text-decoration: underline;
color: #032f62;
}
2020-09-13 12:04:02 -04:00
.mb-0 {
margin-bottom: 0 !important;
}
2020-09-13 12:04:02 -04:00
.my-2 {
margin-bottom: 8px !important;
}
2020-09-13 12:04:02 -04:00
.my-2 {
margin-top: 8px !important;
}
2020-09-13 12:04:02 -04:00
.pl-0 {
padding-left: 0 !important;
}
2020-09-13 12:04:02 -04:00
.py-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
2020-09-13 12:04:02 -04:00
.pl-1 {
padding-left: 4px !important;
}
2020-09-13 12:04:02 -04:00
.pl-2 {
padding-left: 8px !important;
}
2020-09-13 12:04:02 -04:00
.py-2 {
padding-top: 8px !important;
padding-bottom: 8px !important;
}
2020-09-13 12:04:02 -04:00
.pl-3 {
padding-left: 16px !important;
}
2020-09-13 12:04:02 -04:00
.pl-4 {
padding-left: 24px !important;
}
2020-09-13 12:04:02 -04:00
.pl-5 {
padding-left: 32px !important;
}
2020-09-13 12:04:02 -04:00
.pl-6 {
padding-left: 40px !important;
}
2020-09-13 12:04:02 -04:00
.pl-7 {
padding-left: 48px !important;
}
2020-09-13 12:04:02 -04:00
.pl-8 {
padding-left: 64px !important;
}
2020-09-13 12:04:02 -04:00
.pl-9 {
padding-left: 80px !important;
}
2020-09-13 12:04:02 -04:00
.pl-10 {
padding-left: 96px !important;
}
2020-09-13 12:04:02 -04:00
.pl-11 {
padding-left: 112px !important;
}
2020-09-13 12:04:02 -04:00
.pl-12 {
padding-left: 128px !important;
}
2020-09-13 12:04:02 -04:00
hr {
border-bottom-color: #eee;
}
2020-09-13 12:04:02 -04:00
kbd {
display: inline-block;
padding: 3px 5px;
font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
line-height: 10px;
color: #444d56;
vertical-align: middle;
background-color: #fafbfc;
border: 1px solid #d1d5da;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #d1d5da;
}
2020-09-13 12:04:02 -04:00
.markdown-body:after,
.markdown-body:before {
display: table;
content: "";
}
2020-09-13 12:04:02 -04:00
.markdown-body:after {
clear: both;
}
2020-09-13 12:04:02 -04:00
> :first-child {
margin-top: 0 !important;
}
2020-09-13 12:04:02 -04:00
> :last-child {
margin-bottom: 0 !important;
}
a:not([href]) {
color: inherit;
text-decoration: none;
}
2020-09-13 12:04:02 -04:00
blockquote,
details,
dl,
ol,
p,
pre,
table,
ul {
margin-top: 0;
2020-09-13 12:04:02 -04:00
margin-bottom: 16px;
}
hr {
height: .25em;
padding: 0;
margin: 24px 0;
background-color: #e1e4e8;
border: 0;
2020-09-13 12:04:02 -04:00
}
blockquote {
padding: 0 1em;
border-left: .25em solid #dfe2e5;
}
2020-09-13 12:04:02 -04:00
blockquote > :first-child {
margin-top: 0;
2020-09-13 12:04:02 -04:00
}
blockquote > :last-child {
margin-bottom: 0;
2020-09-13 12:04:02 -04:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
body.dark &, & {
margin-top: 24px;
margin-bottom: 16px;
font-weight: 600;
line-height: 1.25;
}
2020-09-13 12:04:02 -04:00
}
h1 {
body.dark &, & {
font-size: 2em;
}
2020-09-13 12:04:02 -04:00
}
h1,
h2 {
padding-bottom: .3em;
border-bottom: 1px solid #eaecef;
2020-09-13 12:04:02 -04:00
}
h2 {
body.dark &, & {
font-size: 1.5em;
}
2020-09-13 12:04:02 -04:00
}
h3 {
body.dark &, & {
font-size: 1.25em;
}
}
2020-09-13 12:04:02 -04:00
h4 {
body.dark &, & {
font-size: 1em;
}
}
2020-09-13 12:04:02 -04:00
h5 {
body.dark &, & {
font-size: .875em;
}
}
2020-09-13 12:04:02 -04:00
h6 {
body.dark &, & {
font-size: .85em;
}
2020-09-13 12:04:02 -04:00
body.dark & {
color: #b4c7d5;
}
}
2020-09-13 12:04:02 -04:00
ol,
ul {
padding-left: 2em;
}
2020-09-13 12:04:02 -04:00
ol ol,
ol ul,
ul ol,
ul ul {
margin-top: 0;
margin-bottom: 0;
}
2020-09-13 12:04:02 -04:00
li {
word-wrap: break-all;
}
2020-09-13 12:04:02 -04:00
li > p {
margin-top: 16px;
}
2020-09-13 12:04:02 -04:00
li + li {
margin-top: .25em;
}
2020-09-13 12:04:02 -04:00
dl {
padding: 0;
}
2020-09-13 12:04:02 -04:00
dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
2020-09-13 12:04:02 -04:00
table {
display: block;
width: 100%;
overflow: auto;
}
2020-09-13 12:04:02 -04:00
table th {
font-weight: 600;
}
2020-09-13 12:04:02 -04:00
table td,
table th {
padding: 6px 13px;
border: 1px solid #dfe2e5;
}
2020-09-13 12:04:02 -04:00
table tr {
border-top: 1px solid #c6cbd1;
}
2020-09-13 12:04:02 -04:00
img {
max-width: 100%;
box-sizing: initial;
background-color: #fff;
}
2020-09-13 12:04:02 -04:00
img[align=right] {
padding-left: 20px;
}
2020-09-13 12:04:02 -04:00
img[align=left] {
padding-right: 20px;
}
2020-09-13 12:04:02 -04:00
code {
padding: .2em .4em;
margin: 0;
font-size: 85%;
background-color: rgba(27, 31, 35, .05);
border-radius: 3px;
}
2020-09-13 12:04:02 -04:00
pre {
word-wrap: normal;
}
2020-09-13 12:04:02 -04:00
pre > code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
2020-09-13 12:04:02 -04:00
.highlight {
margin-bottom: 16px;
}
2020-09-13 12:04:02 -04:00
.highlight pre {
margin-bottom: 0;
word-break: normal;
}
2020-09-13 12:04:02 -04:00
.highlight pre,
pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
border-radius: 3px;
}
2020-09-13 12:04:02 -04:00
pre code {
display: inline;
max-width: auto;
padding: 0;
margin: 0;
overflow: visible;
line-height: inherit;
word-wrap: normal;
background-color: initial;
border: 0;
}
2020-09-13 12:04:02 -04:00
.commit-tease-sha {
display: inline-block;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 90%;
color: #444d56;
}
2020-09-13 12:04:02 -04:00
.full-commit .btn-outline:not(:disabled):hover {
color: #005cc5;
border-color: #005cc5;
}
2020-09-13 12:04:02 -04:00
.blob-wrapper {
overflow-x: auto;
overflow-y: hidden;
}
2020-09-13 12:04:02 -04:00
.blob-wrapper-embedded {
max-height: 240px;
overflow-y: auto;
}
2020-09-13 12:04:02 -04:00
.blob-num {
width: 1%;
min-width: 50px;
padding-right: 10px;
padding-left: 10px;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 12px;
line-height: 20px;
color: rgba(27, 31, 35, .3);
text-align: right;
white-space: nowrap;
vertical-align: top;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
2020-09-13 12:04:02 -04:00
.blob-num:hover {
color: rgba(27, 31, 35, .6);
}
2020-09-13 12:04:02 -04:00
.blob-num:before {
content: attr(data-line-number);
}
2020-09-13 12:04:02 -04:00
.blob-code {
position: relative;
padding-right: 10px;
padding-left: 10px;
line-height: 20px;
vertical-align: top;
}
2020-09-13 12:04:02 -04:00
.blob-code-inner {
overflow: visible;
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
font-size: 12px;
color: #24292e;
word-wrap: normal;
white-space: pre;
}
2020-09-13 12:04:02 -04:00
.pl-token.active,
.pl-token:hover {
cursor: pointer;
background: #ffea7f;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="1"] {
-moz-tab-size: 1;
tab-size: 1;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="2"] {
-moz-tab-size: 2;
tab-size: 2;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="3"] {
-moz-tab-size: 3;
tab-size: 3;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="4"] {
-moz-tab-size: 4;
tab-size: 4;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="5"] {
-moz-tab-size: 5;
tab-size: 5;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="6"] {
-moz-tab-size: 6;
tab-size: 6;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="7"] {
-moz-tab-size: 7;
tab-size: 7;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="8"] {
-moz-tab-size: 8;
tab-size: 8;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="9"] {
-moz-tab-size: 9;
tab-size: 9;
}
2020-09-13 12:04:02 -04:00
.tab-size[data-tab-size="10"] {
-moz-tab-size: 10;
tab-size: 10;
}
.tab-size[data-tab-size="11"] {
-moz-tab-size: 11;
tab-size: 11;
}
.tab-size[data-tab-size="12"] {
-moz-tab-size: 12;
tab-size: 12;
}
.task-list-item {
list-style-type: none;
}
.task-list-item + .task-list-item {
margin-top: 3px;
}
.task-list-item input {
margin: 0 .2em .25em -1.6em;
vertical-align: middle;
}
2020-09-13 12:04:02 -04:00
}