Add blockquote prompts (resolve #489)

This commit is contained in:
Cotes Chung
2022-01-21 17:46:01 +08:00
parent 4845f6ef14
commit ca181422a6
8 changed files with 154 additions and 34 deletions

View File

@@ -104,17 +104,17 @@
}
}
%sidebar-links {
color: rgba(117, 117, 117, 0.9);
user-select: none;
}
/* ---------- scss mixin --------- */
@mixin no-text-decoration {
text-decoration: none;
}
%sidebar-links {
color: rgba(117, 117, 117, 0.9);
user-select: none;
}
@mixin ml-mr($value) {
margin-left: $value;
margin-right: $value;
@@ -142,3 +142,16 @@
-ms-transform: translateX(-50%);
transform: translateX(-50%);
}
@mixin prompt($type, $fw-icon, $icon-weight: 900) {
&.prompt-#{$type} {
background-color: var(--prompt-#{$type}-bg);
color: var(--prompt-text-color);
&::before {
content: $fw-icon;
color: var(--prompt-#{$type}-icon-color);
font-weight: $icon-weight;
}
}
}