Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore(shortcode): make style shortcode toCSS outputStyle compressed
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed May 15, 2020
1 parent d3d2d75 commit c673353
Show file tree
Hide file tree
Showing 28 changed files with 10 additions and 25 deletions.
2 changes: 1 addition & 1 deletion layouts/shortcodes/style.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
{{- $style := .Get 0 | printf "#%s{%s}" $id -}}
{{- $path := printf "style/%s/%s" (md5 .Page.RelPermalink) $id -}}
{{- $res := resources.FromString (printf "%s.scss" $path) $style -}}
{{- $res = $res | toCSS (dict "targetPath" (printf "%s.css" $path)) -}}
{{- $res = $res | toCSS (dict "targetPath" (printf "%s.css" $path) "outputStyle" "compressed") -}}
{{- $styleArr := (.Page.Scratch.Get "this").styleArr | default slice -}}
{{- $styleArr | append $res.Content | .Page.Scratch.SetInMap "this" "styleArr" -}}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1 img{height:1.25rem}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1 img{height:1.25rem}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}#id-1 strong{color:#00b1ff}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}#id-1 strong{color:#00b1ff}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1 img{height:1.25rem}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#id-1{text-align:right}#id-1 strong{color:#00b1ff}

0 comments on commit c673353

Please sign in to comment.