File size: 1,276 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
// @flow
import styled from 'styled-components';
import { theme } from 'shared/theme';
import { tint } from 'src/components/globals';
export const Container = styled.div`
position: relative;
display: flex;
align-items: center;
`;
export const IconContainer = styled.div`
position: absolute;
z-index: 1;
right: 12px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
pointer-events: none;
color: ${theme.text.alt};
`;
export const Select = styled.select`
padding: 8px 40px 8px 16px;
border: none;
border: 1px solid ${theme.bg.border};
border-radius: 32px;
overflow: hidden;
box-shadow: none;
background: ${theme.bg.default};
background-image: none;
-webkit-appearance: none;
font-weight: 600;
font-size: 15px;
color: ${theme.text.default};
text-align: center;
text-align-last: center;
option {
text-align: left;
}
&:hover {
cursor: pointer;
background: ${theme.bg.divider};
}
&:focus {
box-shadow: 0 0 0 2px ${theme.bg.default}, 0 0 0 4px ${theme.bg.border};
transition: box-shadow 0.2s ease-in-out;
}
&:active {
box-shadow: 0 0 0 2px ${theme.bg.default},
0 0 0 4px ${tint(theme.bg.border, -24)};
transition: box-shadow 0.2s ease-in-out;
}
`;
|