fix error
This commit is contained in:
parent
020ffce16c
commit
c6cffb186d
|
@ -30,10 +30,10 @@ all_template.each do |folder|
|
||||||
texts = File.read(filename)
|
texts = File.read(filename)
|
||||||
regex_pattern = /.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
|
regex_pattern = /.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
|
||||||
if !texts.include? "$font-h1:"
|
if !texts.include? "$font-h1:"
|
||||||
texts = "$font-h1: 1.5rem;\n$font-h2: 1.35rem;\n$font-h3: 1.2rem;\n$font-h4: 1.1rem;\n$font-h5: 1rem;\n$font-h6: 0.9rem;\n\n" + text
|
texts = "$font-h1: 1.5rem;\n$font-h2: 1.35rem;\n$font-h3: 1.2rem;\n$font-h4: 1.1rem;\n$font-h5: 1rem;\n$font-h6: 0.9rem;\n\n" + texts
|
||||||
end
|
end
|
||||||
if !texts.include? "$main-font:"
|
if !texts.include? "$main-font:"
|
||||||
texts = "$main-font: Arial, \"微軟正黑體\", \"Helvetica Neue\", Helvetica, sans-serif;\n" + text
|
texts = "$main-font: Arial, \"微軟正黑體\", \"Helvetica Neue\", Helvetica, sans-serif;\n" + texts
|
||||||
end
|
end
|
||||||
if !texts.include? "$theme-white"
|
if !texts.include? "$theme-white"
|
||||||
texts = "$theme-white: #fff;\n" + texts
|
texts = "$theme-white: #fff;\n" + texts
|
||||||
|
|
Loading…
Reference in New Issue