Skip to content

Commit d0adf58

Browse files
committed
Style: add shortcode-caniuse.min.css
1 parent ab26cf7 commit d0adf58

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@charset "utf-8";
2+
3+
.ciu-embed:empty::after {
4+
content: 'Data on support for the ' attr(data-feature) ' feature across the major browsers from caniuse.com';
5+
color: var(--fi-secondary);
6+
display: block;
7+
text-align: center;
8+
font-size: 12px;
9+
}

layouts/partials/inject/shortcode-caniuse.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{{- if .HasShortcode "caniuse" -}}
22
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
33

4+
{{- /* shortcode-caniuse.min.css */ -}}
5+
{{- $options := dict "Source" "css/shortcode-caniuse/index.scss" "Fingerprint" $fingerprint -}}
6+
{{- $toCSS := dict "targetPath" "css/shortcode-caniuse.min.css" "enableSourceMap" true -}}
7+
{{- $options = dict "Context" . "ToCSS" $toCSS | merge $options -}}
8+
{{- partial "plugin/style.html" $options -}}
9+
410
{{- /* embed.js */ -}}
511
{{- $source := resources.Get "lib/shortcode-caniuse/embed.js" -}}
612
{{- if hugo.IsProduction | and .Site.Params.cdn -}}

0 commit comments

Comments
 (0)