fix error
This commit is contained in:
parent
8ae48585ed
commit
d81e9d40bd
|
@ -38,7 +38,7 @@ all_template.each do |folder|
|
||||||
i = texts.rindex(s1[-1])
|
i = texts.rindex(s1[-1])
|
||||||
texts[i] = ""
|
texts[i] = ""
|
||||||
end
|
end
|
||||||
regex_pattern = /.response-content {\n justify-self: auto;\n}|.response-content {\n position: static;\n}|.response-content {\n position: relative;\n}|.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}/m
|
regex_pattern = /.response-content {\n justify-self: auto;\n}|.response-content {\n position: static;\n}|.response-content {\n position: relative;\n}/m #|.response-content[^{]*{[^}]*@media[^{]*{[^{]*}[^{]*@media[^{]*{[^{]*}[^}]*}[^}]*}
|
||||||
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" + texts
|
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
|
||||||
|
@ -77,8 +77,9 @@ all_template.each do |folder|
|
||||||
check_texts.each do |check_text|
|
check_texts.each do |check_text|
|
||||||
if !texts.include?(check_text)
|
if !texts.include?(check_text)
|
||||||
puts "editing #{folder}assets/stylesheets/template/base/_variables.scss"
|
puts "editing #{folder}assets/stylesheets/template/base/_variables.scss"
|
||||||
|
texts = texts + check_text
|
||||||
File.open(filename, 'w') do |file|
|
File.open(filename, 'w') do |file|
|
||||||
file.write(texts + check_text)
|
file.write(texts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue