Skip to content

Commit

Permalink
Add a custom arrow to the dropdown (#95)
Browse files Browse the repository at this point in the history
* Add a custom arrow to the dropdown

* Remove old arrow, and pass though mouse clicks.

---------

Co-authored-by: modmuss50 <[email protected]>
  • Loading branch information
its-miroma and modmuss50 authored Jun 2, 2024
1 parent 8db12ff commit 2d70095
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions _sass/fabric.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ p {
}

.javadoc-selector {
position: relative;
margin-bottom: 6px;

select {
Expand All @@ -184,17 +185,19 @@ p {
-moz-appearance: none;
appearance: none;

// Add back the arrow, see https://stackoverflow.com/a/57510283
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%23FFFFFF'><polygon points='0,0 100,0 50,50'/></svg>") no-repeat;
background-size: 10px;
background-position: calc(100% - 16px) center;
background-repeat: no-repeat;

option {
background-color: $grey-color-very-dark;
}
}
}

.javadoc-selector::after {
content: "";
position: absolute;
right: 1rem;
top: 0.5rem;
pointer-events: none;
}
}

img{
Expand Down

0 comments on commit 2d70095

Please sign in to comment.