diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-07-21 19:15:07 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-08-17 08:40:52 +0200 |
| commit | bd7e76d25f48bd5436144fc767c975a6791e7fd2 (patch) | |
| tree | 4c4e04753041d94290ecbe2076403692164d2475 /gui/src/renderer/components/SelectLocationStyles.tsx | |
| parent | 81e3513d276246e39e42416824374518c6f7b97c (diff) | |
| download | mullvadvpn-bd7e76d25f48bd5436144fc767c975a6791e7fd2.tar.xz mullvadvpn-bd7e76d25f48bd5436144fc767c975a6791e7fd2.zip | |
Add filter by provider button in select location view
Diffstat (limited to 'gui/src/renderer/components/SelectLocationStyles.tsx')
| -rw-r--r-- | gui/src/renderer/components/SelectLocationStyles.tsx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gui/src/renderer/components/SelectLocationStyles.tsx b/gui/src/renderer/components/SelectLocationStyles.tsx index 6a3685ffb4..2c317ddddc 100644 --- a/gui/src/renderer/components/SelectLocationStyles.tsx +++ b/gui/src/renderer/components/SelectLocationStyles.tsx @@ -1,5 +1,6 @@ import styled from 'styled-components'; import { colors } from '../../config.json'; +import { smallText } from './common-styles'; import { Container } from './Layout'; import { ScopeBar } from './ScopeBar'; @@ -22,3 +23,39 @@ export const StyledNavigationBarAttachment = styled.div({ marginTop: '8px', paddingHorizontal: '4px', }); + +export const StyledFilterContainer = styled.div({ + position: 'relative', +}); + +export const StyledFilterIconButton = styled.button({ + borderWidth: 0, + padding: 0, + margin: 0, + cursor: 'default', + backgroundColor: 'transparent', +}); + +export const StyledFilterMenu = styled.div({ + position: 'absolute', + top: 'calc(100% + 4px)', + right: '0', + borderRadius: '4px', + backgroundColor: colors.darkBlue, + overflow: 'hidden', +}); + +export const StyledFilterByProviderButton = styled.button({ + ...smallText, + borderWidth: 0, + margin: 0, + cursor: 'default', + color: colors.white, + padding: '7px 15px', + whiteSpace: 'nowrap', + borderRadius: 0, + backgroundColor: colors.blue, + ':hover': { + backgroundColor: colors.blue80, + }, +}); |
