2018-05-07 06:59:33 +02:00
|
|
|
.markdown-preview {
|
2020-04-01 20:43:50 +02:00
|
|
|
> :first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2019-11-14 21:02:15 +01:00
|
|
|
> *:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2020-04-01 22:00:09 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-base);
|
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
// Headers
|
2018-05-11 22:58:30 +02:00
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
2018-12-19 06:44:53 +01:00
|
|
|
font-size: inherit;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-09-17 17:32:31 +02:00
|
|
|
font-weight: bold;
|
2020-01-06 19:32:35 +01:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-l);
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2020-07-28 22:37:50 +02:00
|
|
|
font-size: 1.7em;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
h2 {
|
2020-07-28 22:37:50 +02:00
|
|
|
font-size: 1.5em;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
h3 {
|
2020-07-28 22:37:50 +02:00
|
|
|
font-size: 1.4em;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
h4 {
|
2020-07-28 22:37:50 +02:00
|
|
|
font-size: 1.3em;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
h5 {
|
2020-07-28 22:37:50 +02:00
|
|
|
font-size: 1.2em;
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
|
|
|
h6 {
|
2020-06-16 22:23:49 +02:00
|
|
|
font-size: 1em;
|
2018-05-11 22:58:30 +02:00
|
|
|
}
|
2018-05-07 06:59:33 +02:00
|
|
|
|
2020-09-17 17:32:31 +02:00
|
|
|
&.markdown-preview--description {
|
2022-04-14 23:27:16 +02:00
|
|
|
padding-top: var(--spacing-s);
|
|
|
|
margin-bottom: var(--spacing-l);
|
|
|
|
|
2020-09-17 17:32:31 +02:00
|
|
|
h1 {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
h5 {
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
h6 {
|
|
|
|
font-size: 0.7em;
|
|
|
|
}
|
2022-04-14 23:27:16 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
a {
|
|
|
|
.button__content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-left: var(--spacing-xxs);
|
|
|
|
bottom: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-17 17:32:31 +02:00
|
|
|
}
|
|
|
|
|
2020-03-21 03:36:52 +01:00
|
|
|
dl,
|
|
|
|
ul,
|
|
|
|
ol,
|
|
|
|
pre,
|
|
|
|
table {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-m);
|
2020-03-21 03:36:52 +01:00
|
|
|
}
|
2020-06-01 19:03:19 +02:00
|
|
|
|
2020-05-07 20:37:39 +02:00
|
|
|
blockquote {
|
|
|
|
white-space: normal;
|
2020-06-01 19:03:19 +02:00
|
|
|
|
2020-05-07 20:37:39 +02:00
|
|
|
p:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-03-21 03:36:52 +01:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
// Tables
|
2018-05-30 20:12:54 +02:00
|
|
|
table {
|
2018-12-19 06:44:53 +01:00
|
|
|
margin-bottom: 1.2rem;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-m);
|
2019-08-06 22:04:55 +02:00
|
|
|
word-break: normal;
|
2018-10-17 00:29:55 +02:00
|
|
|
|
|
|
|
tr {
|
|
|
|
td,
|
|
|
|
th,
|
|
|
|
td:first-of-type,
|
|
|
|
th:first-of-type,
|
|
|
|
td:last-of-type,
|
|
|
|
th:last-of-type {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-s) var(--spacing-m);
|
2020-04-09 19:32:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
th {
|
|
|
|
border-bottom: 2px solid var(--color-border);
|
|
|
|
letter-spacing: 0.1rem;
|
|
|
|
text-align: left;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr {
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
td {
|
|
|
|
border-bottom: 1px solid var(--color-border);
|
|
|
|
}
|
2018-10-17 00:29:55 +02:00
|
|
|
}
|
2018-05-30 20:12:54 +02:00
|
|
|
}
|
|
|
|
}
|
2018-05-07 06:59:33 +02:00
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
// Image
|
2022-01-24 17:07:09 +01:00
|
|
|
img:not(.channel-thumbnail__custom):not(.emote) {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
padding-top: var(--spacing-m);
|
2020-04-08 22:40:39 +02:00
|
|
|
max-height: var(--inline-player-max-height);
|
2020-01-06 19:32:35 +01:00
|
|
|
object-position: left;
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
2018-07-27 02:24:00 +02:00
|
|
|
}
|
|
|
|
|
2021-01-27 04:24:14 +01:00
|
|
|
.img__zoomable {
|
|
|
|
cursor: pointer; // 'zoom-in' would be ideal, but browser-dependant.
|
|
|
|
}
|
|
|
|
|
2018-10-17 00:29:55 +02:00
|
|
|
// Horizontal Rule
|
2018-05-30 20:12:54 +02:00
|
|
|
hr {
|
2018-12-19 06:44:53 +01:00
|
|
|
margin-bottom: 2rem;
|
|
|
|
position: relative;
|
|
|
|
top: 1rem;
|
2020-06-03 05:01:21 +02:00
|
|
|
border: 1px solid var(--color-editor-hr-preview);
|
2018-05-30 20:12:54 +02:00
|
|
|
}
|
2018-05-07 06:59:33 +02:00
|
|
|
|
2019-10-12 22:50:25 +02:00
|
|
|
// Code blocks
|
2018-11-30 06:49:02 +01:00
|
|
|
pre {
|
|
|
|
white-space: normal;
|
2019-10-12 22:50:25 +02:00
|
|
|
background: transparent;
|
2020-04-08 17:03:41 +02:00
|
|
|
word-break: break-all;
|
2019-10-12 22:50:25 +02:00
|
|
|
|
|
|
|
code {
|
2020-06-04 16:49:47 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2020-06-03 05:01:21 +02:00
|
|
|
padding: var(--spacing-s) var(--spacing-s) calc(var(--spacing-s) - 2px);
|
2019-10-12 22:50:25 +02:00
|
|
|
display: block;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2018-11-30 06:49:02 +01:00
|
|
|
}
|
|
|
|
|
2019-10-12 22:50:25 +02:00
|
|
|
// Inline code
|
2018-05-30 20:12:54 +02:00
|
|
|
code {
|
2020-06-03 05:01:21 +02:00
|
|
|
color: var(--color-editor-inline-code-fg-preview);
|
|
|
|
background-color: var(--color-editor-inline-code-bg-preview);
|
2019-10-12 22:50:25 +02:00
|
|
|
display: inline-block;
|
|
|
|
border-radius: 0.2rem;
|
2019-11-22 22:13:00 +01:00
|
|
|
font-size: var(--font-small);
|
2021-05-20 21:31:14 +02:00
|
|
|
padding: calc(var(--spacing-xxs) - 4px) calc(var(--spacing-xxs) * 3 / 4) calc(var(--spacing-xxs) - 6px);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-12-04 19:07:40 +01:00
|
|
|
a {
|
|
|
|
@extend .button--link;
|
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
a,
|
|
|
|
button {
|
2018-07-22 23:28:33 +02:00
|
|
|
display: inline-block;
|
2019-06-17 22:32:38 +02:00
|
|
|
|
|
|
|
.button__label {
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2018-07-22 23:28:33 +02:00
|
|
|
}
|
|
|
|
|
2019-03-24 02:59:09 +01:00
|
|
|
button {
|
|
|
|
white-space: normal;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2019-06-09 08:57:51 +02:00
|
|
|
|
2022-04-14 23:27:16 +02:00
|
|
|
.file-viewer__embedded-header {
|
|
|
|
.file-viewer__embedded-title {
|
|
|
|
width: calc(100% - 120px);
|
|
|
|
.button__label {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.file-viewer__overlay-logo {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
.preview-link__url {
|
|
|
|
font-size: var(--font-xxsmall);
|
|
|
|
margin-top: 0;
|
|
|
|
padding-left: var(--spacing-xs);
|
2022-04-14 23:27:16 +02:00
|
|
|
padding-right: var(--spacing-xs);
|
2020-10-20 19:10:02 +02:00
|
|
|
background-color: black;
|
|
|
|
color: var(--color-gray-2);
|
|
|
|
width: 100%;
|
|
|
|
flex: 1;
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
height: 2rem;
|
|
|
|
line-height: 2rem;
|
|
|
|
|
2020-10-28 17:21:23 +01:00
|
|
|
.button__label {
|
2022-04-14 23:27:16 +02:00
|
|
|
display: inline-block;
|
2020-10-28 17:21:23 +01:00
|
|
|
white-space: nowrap;
|
2022-04-14 23:27:16 +02:00
|
|
|
width: 100%;
|
2020-10-28 17:21:23 +01:00
|
|
|
}
|
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
color: var(--color-gray-2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
bottom: 2rem;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
height: 90px;
|
|
|
|
background: linear-gradient(to top, #000000, #00000000 70%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-09 08:57:51 +02:00
|
|
|
.preview-link {
|
2019-06-21 03:00:52 +02:00
|
|
|
padding: 0;
|
2020-10-20 19:10:02 +02:00
|
|
|
margin: 0;
|
2020-10-08 19:36:57 +02:00
|
|
|
padding-right: var(--spacing-s);
|
2022-04-14 23:27:16 +02:00
|
|
|
background-color: var(--color-secondary);
|
2019-06-09 08:57:51 +02:00
|
|
|
display: block;
|
|
|
|
align-items: center;
|
2019-06-21 03:00:52 +02:00
|
|
|
word-break: break-all;
|
2019-07-24 07:32:34 +02:00
|
|
|
overflow: hidden;
|
2020-10-08 19:36:57 +02:00
|
|
|
border-radius: var(--border-radius);
|
2019-07-24 07:32:34 +02:00
|
|
|
|
|
|
|
.claim-preview {
|
|
|
|
border: 0;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__subtitle {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-06-09 08:57:51 +02:00
|
|
|
}
|
|
|
|
|
2020-10-08 19:36:57 +02:00
|
|
|
.claim-preview-metadata {
|
|
|
|
padding: var(--spacing-s) 0;
|
|
|
|
}
|
|
|
|
|
2019-06-21 03:00:52 +02:00
|
|
|
.preview-link__thumbnail {
|
|
|
|
width: 12rem;
|
2020-10-08 19:36:57 +02:00
|
|
|
border-top-right-radius: 0;
|
2020-10-20 19:10:02 +02:00
|
|
|
border-top-left-radius: 0;
|
2020-10-08 19:36:57 +02:00
|
|
|
border-bottom-right-radius: 0;
|
2019-06-21 03:00:52 +02:00
|
|
|
}
|
|
|
|
|
2020-10-20 19:10:02 +02:00
|
|
|
.preview-link__thumbnail--channel {
|
|
|
|
width: 8rem;
|
|
|
|
}
|
|
|
|
|
2019-06-21 03:00:52 +02:00
|
|
|
.preview-link__description {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-top: var(--spacing-s);
|
2019-06-09 08:57:51 +02:00
|
|
|
}
|
2020-10-20 19:10:02 +02:00
|
|
|
|
|
|
|
.file-viewer__embedded-header {
|
2021-04-26 21:19:17 +02:00
|
|
|
padding: var(--spacing-xxs);
|
2020-10-20 19:10:02 +02:00
|
|
|
}
|
2018-05-07 06:59:33 +02:00
|
|
|
}
|
2019-12-06 21:57:07 +01:00
|
|
|
|
|
|
|
.editor-preview {
|
|
|
|
background-color: var(--color-input-bg);
|
|
|
|
}
|