41 lines
875 B
JavaScript
41 lines
875 B
JavaScript
import styled from 'styled-components';
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
|
import { borderSize, navbarHeight } from '/imports/ui/stylesheets/styled-components/general';
|
|
import { smallOnly, mediumUp } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
|
|
|
const Poll = styled.div`
|
|
position: absolute;
|
|
display: flex;
|
|
flex-flow: column;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
outline: transparent;
|
|
outline-width: ${borderSize};
|
|
outline-style: solid;
|
|
order: 2;
|
|
height: 100%;
|
|
background-color: ${colorWhite};
|
|
min-width: 20em;
|
|
padding: 1rem;
|
|
|
|
@media ${smallOnly} {
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 5;
|
|
height: auto;
|
|
top: ${navbarHeight};
|
|
overflow: auto;
|
|
}
|
|
|
|
@media ${mediumUp} {
|
|
position: relative;
|
|
order: 1;
|
|
}
|
|
`;
|
|
|
|
export default {
|
|
Poll,
|
|
};
|