From 19ae36a161ce15236803792d695d85986b27dfb4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 2 Oct 2019 13:17:03 +0100 Subject: [PATCH] Border radius variable --- epicyon-profile.css | 3 ++- theme | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/epicyon-profile.css b/epicyon-profile.css index 230200b5..0bef8d93 100644 --- a/epicyon-profile.css +++ b/epicyon-profile.css @@ -31,6 +31,7 @@ --gallery-border: #ccc; --gallery-hover: #777; --button-corner-radius: 15px; + --border-radius: 30px; } body, html { @@ -336,7 +337,7 @@ a:link { border: 2px solid var(--border-color); background-color: var(--main-bg-color); border-radius: 30px; - padding: 30px; + padding: var(--border-radius); margin: 10px; } diff --git a/theme b/theme index f4eab6a4..18a4d081 100755 --- a/theme +++ b/theme @@ -125,6 +125,8 @@ if [[ "$themeName" == 'hack'* || "$themeName" == 'hax'* ]]; then sed -i "s|--button-selected:.*|--button-selected: #063200;|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-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|background-color: #554;|background-color: #062200;|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-background:.*|--button-background: #062200;|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|background-color: #554;|background-color: #062200;|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-background:.*|--button-background: #062200;|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|background-color: #554;|background-color: #062200;|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-background:.*|--button-background: #062200;|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|background-color: #554;|background-color: #062200;|g" "$filename" sed -i "s|color: #FFFFFE;|color: green;|g" "$filename"