mirror of
https://github.com/kognise/water.css.git
synced 2025-08-13 16:44:58 +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
9
arrow-dark.svg
Normal file
9
arrow-dark.svg
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="62.5" width="116.9">
|
||||
<defs>
|
||||
<path id="path-1" opacity="1" fill-rule="evenodd" d="M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z"/>
|
||||
</defs>
|
||||
<g opacity="1">
|
||||
<use xlink:href="#path-1" fill="rgb(22,31,39)" fill-opacity="1"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 561 B |
9
arrow-light.svg
Normal file
9
arrow-light.svg
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="62.5" width="116.9">
|
||||
<defs>
|
||||
<path id="path-1" opacity="1" fill-rule="evenodd" d="M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z"/>
|
||||
</defs>
|
||||
<g opacity="1">
|
||||
<use xlink:href="#path-1" fill="rgb(239,239,239)" fill-opacity="1"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 564 B |
@@ -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