You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.2 KiB
68 lines
1.2 KiB
:root {
|
|
--background-gradient: linear-gradient(30deg, #f39c12 30%, #f1c40f);
|
|
--gray: #34495e;
|
|
--darkgray: #2c3e50;
|
|
}
|
|
|
|
select {
|
|
/* Reset Select */
|
|
appearance: none;
|
|
outline: 0;
|
|
border: 0;
|
|
box-shadow: none;
|
|
/* Personalize */
|
|
flex: 1;
|
|
padding: 0 1em;
|
|
color: #fff;
|
|
background-color: #2c3e50;
|
|
background-image: none;
|
|
cursor: pointer;
|
|
}
|
|
/* Remove IE arrow */
|
|
select::-ms-expand {
|
|
display: none;
|
|
}
|
|
/* Custom Select wrapper */
|
|
.select {
|
|
position: relative;
|
|
display: flex;
|
|
width: 200px;
|
|
height: 3em;
|
|
border-radius: .25em;
|
|
overflow: hidden;
|
|
}
|
|
/* Arrow */
|
|
.select::after {
|
|
content: '\25BC';
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 1em;
|
|
background-color: #34495e;
|
|
transition: .25s all ease;
|
|
pointer-events: none;
|
|
}
|
|
/* Transition */
|
|
.select:hover::after {
|
|
color: #f39c12;
|
|
}
|
|
|
|
/* Other styles*/
|
|
body {
|
|
color: #fff;
|
|
background: var(--background-gradient);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 0.25em;
|
|
}
|
|
|
|
a {
|
|
font-weight: bold;
|
|
color: var(--gray);
|
|
text-decoration: none;
|
|
padding: .25em;
|
|
border-radius: .25em;
|
|
background: white;
|
|
}
|