fix error
This commit is contained in:
1 parent
020ffce16c
commit
c6cffb186d
1 file changed
+2
-2
@@ -30,10 +30,10 @@ all_template.each do |folder|
|
||||
texts = File.read(filename)
|
||||
regex_pattern = /.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
|
||||
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
|
||||
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
|
||||
if !texts.include? "$theme-white"
|
||||
texts = "$theme-white: #fff;\n" + texts
|
||||
|
||||
Reference in new issue
Block a user