Skip to content

Commit 0a0b6ae

Browse files
committed
Add custom select styles
1 parent 26d4c69 commit 0a0b6ae

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/styles/app.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,3 +624,33 @@ blockquote::before {
624624
/* Tachyons is missing this class */
625625
max-height: 10rem;
626626
}
627+
628+
.select {
629+
display: inline-block;
630+
position: relative;
631+
}
632+
633+
.select select {
634+
appearance: none;
635+
-webkit-appearance: none;
636+
-moz-appearance: none;
637+
font-size: 1.25rem;
638+
border: $gray 1px solid;
639+
background-color: white;
640+
padding: 2px 6px;
641+
color: $gray;
642+
box-sizing: border-box;
643+
}
644+
645+
.select:after {
646+
content: "";
647+
position: absolute;
648+
top: 50%;
649+
right: 8px;
650+
width: 0;
651+
height: 0;
652+
margin-top: -2px;
653+
border-top: 5px solid $gray;
654+
border-right: 5px solid transparent;
655+
border-left: 5px solid transparent;
656+
}

0 commit comments

Comments
 (0)