We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 056fe87 commit 281744cCopy full SHA for 281744c
3 files changed
assets/hb/modules/shortcodes/scss/_color.scss
@@ -0,0 +1,12 @@
1
+.hb-color {
2
+ &::after {
3
+ content: '';
4
+ background: var(--color);
5
+ border: 1px solid var(--#{$prefix}dark);
6
+ display: inline-block;
7
+ height: 0.8rem;
8
+ margin-left: .125rem;
9
+ width: 0.8rem;
10
+ vertical-align: -0.125rem;
11
+ }
12
+}
assets/hb/modules/shortcodes/scss/index.scss
@@ -1 +1,2 @@
+@import 'color';
@import 'spoiler-tag';
layouts/shortcodes/color.html
@@ -0,0 +1,4 @@
+{{- $color := .Get 0 }}
+<code
+ class="hb-color user-select-all"
+ style="--color: {{ $color }};">{{ $color }}</code>
0 commit comments