mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-10 00:46:18 +01:00
chore(shortcode): make style shortcode toCSS outputStyle compressed
This commit is contained in:
parent
d3d2d751ec
commit
c6733538dc
28 changed files with 10 additions and 25 deletions
|
@ -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" -}}
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 img {
|
||||
height: 1.25rem; }
|
|
@ -0,0 +1 @@
|
|||
#id-1 img{height:1.25rem}
|
|
@ -0,0 +1 @@
|
|||
#id-1 img{height:1.25rem}
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 img {
|
||||
height: 1.25rem; }
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}
|
|
@ -1,4 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
||||
#id-1 strong {
|
||||
color: #00b1ff; }
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}#id-1 strong{color:#00b1ff}
|
|
@ -1,4 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
||||
#id-1 strong {
|
||||
color: #00b1ff; }
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}#id-1 strong{color:#00b1ff}
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
|
@ -0,0 +1 @@
|
|||
#id-1 img{height:1.25rem}
|
|
@ -1,2 +0,0 @@
|
|||
#id-1 img {
|
||||
height: 1.25rem; }
|
|
@ -1,4 +0,0 @@
|
|||
#id-1 {
|
||||
text-align: right; }
|
||||
#id-1 strong {
|
||||
color: #00b1ff; }
|
|
@ -0,0 +1 @@
|
|||
#id-1{text-align:right}#id-1 strong{color:#00b1ff}
|
Loading…
Reference in a new issue