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:
committed by
Jonas Kuske
parent
c69ceda5e9
commit
bb2eb0e171
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -21,4 +21,6 @@
|
||||
|
||||
--form-placeholder: #a9a9a9;
|
||||
--form-text: #ffffff;
|
||||
|
||||
--down-arrow-path: url("../arrow-light.svg");
|
||||
}
|
||||
|
@@ -21,4 +21,6 @@
|
||||
|
||||
--form-placeholder: #949494;
|
||||
--form-text: #000000;
|
||||
|
||||
--down-arrow-path: url("../arrow-dark.svg");
|
||||
}
|
||||
|
Reference in New Issue
Block a user