Border radius variable

main2
Bob Mottram 2019-10-02 13:17:03 +01:00
parent 7654860442
commit 19ae36a161
2 changed files with 10 additions and 1 deletions

View File

@ -31,6 +31,7 @@
--gallery-border: #ccc; --gallery-border: #ccc;
--gallery-hover: #777; --gallery-hover: #777;
--button-corner-radius: 15px; --button-corner-radius: 15px;
--border-radius: 30px;
} }
body, html { body, html {
@ -336,7 +337,7 @@ a:link {
border: 2px solid var(--border-color); border: 2px solid var(--border-color);
background-color: var(--main-bg-color); background-color: var(--main-bg-color);
border-radius: 30px; border-radius: 30px;
padding: 30px; padding: var(--border-radius);
margin: 10px; margin: 10px;
} }

8
theme
View File

@ -125,6 +125,8 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then
sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename" sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename"
sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename" sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename"
sed -i "s|--button-text:.*|--button-text: green;|g" "$filename" sed -i "s|--button-text:.*|--button-text: green;|g" "$filename"
sed -i "s|--button-corner-radius:.*|--button-corner-radius: 4px;|g" "$filename"
sed -i "s|--border-radius:.*|--border-radius: 4px;|g" "$filename"
sed -i "s|font-family:.*|font-family: Courier;|g" "$filename" sed -i "s|font-family:.*|font-family: Courier;|g" "$filename"
sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename" sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename"
sed -i "s|color: #FFFFFE;|color: green;|g" "$filename" sed -i "s|color: #FFFFFE;|color: green;|g" "$filename"
@ -141,6 +143,8 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then
sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename" sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename"
sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename" sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename"
sed -i "s|--button-text:.*|--button-text: green;|g" "$filename" sed -i "s|--button-text:.*|--button-text: green;|g" "$filename"
sed -i "s|--button-corner-radius:.*|--button-corner-radius: 4px;|g" "$filename"
sed -i "s|--border-radius:.*|--border-radius: 4px;|g" "$filename"
sed -i "s|font-family:.*|font-family: Courier;|g" "$filename" sed -i "s|font-family:.*|font-family: Courier;|g" "$filename"
sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename" sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename"
sed -i "s|color: #FFFFFE;|color: green;|g" "$filename" sed -i "s|color: #FFFFFE;|color: green;|g" "$filename"
@ -157,6 +161,8 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then
sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename" sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename"
sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename" sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename"
sed -i "s|--button-text:.*|--button-text: green;|g" "$filename" sed -i "s|--button-text:.*|--button-text: green;|g" "$filename"
sed -i "s|--button-corner-radius:.*|--button-corner-radius: 4px;|g" "$filename"
sed -i "s|--border-radius:.*|--border-radius: 4px;|g" "$filename"
sed -i "s|font-family:.*|font-family: Courier;|g" "$filename" sed -i "s|font-family:.*|font-family: Courier;|g" "$filename"
sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename" sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename"
sed -i "s|color: #FFFFFE;|color: green;|g" "$filename" sed -i "s|color: #FFFFFE;|color: green;|g" "$filename"
@ -173,6 +179,8 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then
sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename" sed -i "s|--button-selected:.*|--button-selected: #063200;|g" "$filename"
sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename" sed -i "s|--button-background:.*|--button-background: #062200;|g" "$filename"
sed -i "s|--button-text:.*|--button-text: green;|g" "$filename" sed -i "s|--button-text:.*|--button-text: green;|g" "$filename"
sed -i "s|--button-corner-radius:.*|--button-corner-radius: 4px;|g" "$filename"
sed -i "s|--border-radius:.*|--border-radius: 4px;|g" "$filename"
sed -i "s|font-family:.*|font-family: Courier;|g" "$filename" sed -i "s|font-family:.*|font-family: Courier;|g" "$filename"
sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename" sed -i "s|background-color: #554;|background-color: #062200;|g" "$filename"
sed -i "s|color: #FFFFFE;|color: green;|g" "$filename" sed -i "s|color: #FFFFFE;|color: green;|g" "$filename"