Make CSS more readable by de-minifiing it.
This commit is contained in:
parent
60677103a6
commit
56cd3f33cc
|
@ -20,17 +20,17 @@ for file in style.css style-compat.css; do
|
|||
sed -i 's/body{margin:0}/body{max-width:100ch;margin:auto}/' tastytea/static/assets/${file}
|
||||
|
||||
# Add dark background to <code>
|
||||
sed -i 's/$/p>code,td>code{background-color:#10111280;}/' tastytea/static/assets/${file}
|
||||
sed -i 's/$/p>code,td>code{background-color:#10111280}/' tastytea/static/assets/${file}
|
||||
|
||||
# Reduce margin above listing blocks
|
||||
sed -i 's/$/div.listingblock pre{margin-top:0.1em;}/' tastytea/static/assets/${file}
|
||||
sed -i 's/$/div.listingblock pre{margin-top:0.1em}/' tastytea/static/assets/${file}
|
||||
|
||||
# Reduce margin between list items
|
||||
sed -i 's/$/li>p{margin:0.1em;}/' tastytea/static/assets/${file}
|
||||
|
||||
# Style NOTE: (AsciiDoc)
|
||||
sed -i 's/$/div.note>table,div.note td{border:0;}/' tastytea/static/assets/${file}
|
||||
sed -i 's/$/div.note td.icon{background-color:#282a2e;color:#b5bd68;border-radius:20%;}/' tastytea/static/assets/${file}
|
||||
sed -i 's/$/div.note>table,div.note td{border:0}/' tastytea/static/assets/${file}
|
||||
sed -i 's/$/div.note td.icon{background-color:#282a2e;color:#b5bd68;border-radius:20%}/' tastytea/static/assets/${file}
|
||||
|
||||
sed -i 's/#1d1f21/#101112/g' tastytea/static/assets/${file} # Code Background
|
||||
|
||||
|
@ -50,4 +50,10 @@ for file in style.css style-compat.css; do
|
|||
sed -i 's/#8959a8/#b294bb/g' tastytea/static/assets/${file} # Purple
|
||||
|
||||
sed -i 's/#000/#e2e0de/g' tastytea/static/assets/${file} # Some links
|
||||
|
||||
# Make CSS more readable
|
||||
sed -i 's/}/}\n/g' tastytea/static/assets/${file}
|
||||
sed -i 's/{/ {/g' tastytea/static/assets/${file}
|
||||
sed -i 's/,/, /g' tastytea/static/assets/${file}
|
||||
sed -i 's/;/; /g' tastytea/static/assets/${file}
|
||||
done
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue