1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-12 16:14:34 +02:00

Added selet arrow

Added two svg files for the arrow.
Removed old inline svg and url-encode.
Created SASS variables for the svg path.
This commit is contained in:
Alexander Bluhm
2019-05-09 18:20:50 +02:00
committed by Jonas Kuske
parent c69ceda5e9
commit bb2eb0e171
5 changed files with 23 additions and 1 deletions

View File

@@ -44,7 +44,7 @@ textarea {
}
select {
background: var(--background) url("data:image/svg+xml;utf8,<svg viewBox='0 0 140 140' fill='#{url-encoded-color($form-text)}' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><g><path d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/></g></svg>") calc(100% - 12px) 50% / 12px no-repeat;
background: var(--background) var(--down-arrow-path) calc(100% - 12px) 50% / 12px no-repeat;
padding-right: 35px;
}

View File

@@ -21,4 +21,6 @@
--form-placeholder: #a9a9a9;
--form-text: #ffffff;
--down-arrow-path: url("../arrow-light.svg");
}

View File

@@ -21,4 +21,6 @@
--form-placeholder: #949494;
--form-text: #000000;
--down-arrow-path: url("../arrow-dark.svg");
}