From bb2eb0e17107c2b43f4595c470f420161ad024cb Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Thu, 9 May 2019 18:20:50 +0200 Subject: [PATCH] Added selet arrow Added two svg files for the arrow. Removed old inline svg and url-encode. Created SASS variables for the svg path. --- arrow-dark.svg | 9 +++++++++ arrow-light.svg | 9 +++++++++ src/parts/_forms.css | 2 +- src/variables-dark.css | 2 ++ src/variables-light.css | 2 ++ 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 arrow-dark.svg create mode 100644 arrow-light.svg diff --git a/arrow-dark.svg b/arrow-dark.svg new file mode 100644 index 0000000..6896374 --- /dev/null +++ b/arrow-dark.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/arrow-light.svg b/arrow-light.svg new file mode 100644 index 0000000..dd2581e --- /dev/null +++ b/arrow-light.svg @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/parts/_forms.css b/src/parts/_forms.css index 304d465..983adaf 100644 --- a/src/parts/_forms.css +++ b/src/parts/_forms.css @@ -44,7 +44,7 @@ textarea { } select { - background: var(--background) url("data:image/svg+xml;utf8,") calc(100% - 12px) 50% / 12px no-repeat; + background: var(--background) var(--down-arrow-path) calc(100% - 12px) 50% / 12px no-repeat; padding-right: 35px; } diff --git a/src/variables-dark.css b/src/variables-dark.css index 8ee554b..8be67fe 100755 --- a/src/variables-dark.css +++ b/src/variables-dark.css @@ -21,4 +21,6 @@ --form-placeholder: #a9a9a9; --form-text: #ffffff; + + --down-arrow-path: url("../arrow-light.svg"); } diff --git a/src/variables-light.css b/src/variables-light.css index 8bf136d..6653f58 100755 --- a/src/variables-light.css +++ b/src/variables-light.css @@ -21,4 +21,6 @@ --form-placeholder: #949494; --form-text: #000000; + + --down-arrow-path: url("../arrow-dark.svg"); }