2021-02-18 21:44:01 +01:00
|
|
|
// ========== Global ========== //
|
|
|
|
// Color of the border
|
|
|
|
$border-color: #f0f0f0;
|
|
|
|
$border-color-dark: #363636;
|
|
|
|
|
|
|
|
// ========== Code ========== //
|
|
|
|
// Color of the code
|
2021-02-18 22:21:36 +01:00
|
|
|
$code-color: #e74c3c !default;
|
|
|
|
$code-color-dark: #e5bf78 !default;
|
2021-02-18 21:44:01 +01:00
|
|
|
|
|
|
|
// Color of the code background
|
|
|
|
$code-background-color: #f5f5f5 !default;
|
2021-02-18 22:21:36 +01:00
|
|
|
$code-background-color-dark: #272c34 !default;
|
2021-02-18 21:44:01 +01:00
|
|
|
|
|
|
|
@mixin overflow-wrap($value) {
|
|
|
|
word-wrap: $value;
|
|
|
|
overflow-wrap: $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin line-break($value) {
|
|
|
|
-webkit-line-break: $value;
|
|
|
|
-ms-line-break: $value;
|
|
|
|
line-break: $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin tab-size($value) {
|
|
|
|
-moz-tab-size: $value;
|
|
|
|
-o-tab-size: $value;
|
|
|
|
tab-size: $value;
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
.v[data-class="v"] {
|
2021-02-18 21:44:01 +01:00
|
|
|
.vcards .vcard .vcontent.expand {
|
2021-02-18 22:21:36 +01:00
|
|
|
&::before,
|
|
|
|
&::after {
|
2021-02-18 21:44:01 +01:00
|
|
|
z-index: 50;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.vwrap,
|
|
|
|
.vwrap .vheader .vinput,
|
|
|
|
.vcards .vcard .vh,
|
|
|
|
.vcards .vcard .vquote,
|
|
|
|
blockquote {
|
|
|
|
border-color: $border-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
border-color: $border-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
code,
|
|
|
|
pre,
|
|
|
|
pre code {
|
2021-02-18 21:44:01 +01:00
|
|
|
font-size: 90%;
|
|
|
|
@include overflow-wrap(break-word);
|
|
|
|
@include line-break(anywhere);
|
|
|
|
@include tab-size(4);
|
|
|
|
color: $code-color;
|
|
|
|
background: $code-background-color;
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
[theme="dark"] & {
|
2021-02-18 21:44:01 +01:00
|
|
|
color: $code-color-dark;
|
|
|
|
background: $code-background-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
.emoji,
|
|
|
|
.vemoji {
|
2021-02-18 21:44:01 +01:00
|
|
|
max-width: 1.5em;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
}
|
|
|
|
}
|