dashboard/src/components/elements.tsx

57 lines
1.1 KiB
TypeScript
Raw Normal View History

2020-07-08 19:36:36 +02:00
import styled from "styled-components";
export const ListContainer = styled.div`
padding: 2rem 0;
`;
export const Headline = styled.h2`
display: inline-block;
font-weight: 900;
text-transform: uppercase;
margin: 0;
font-size: 1.5rem;
2021-07-10 23:57:08 +02:00
color: ${(props) => props.theme.mainColor};
2020-07-08 19:36:36 +02:00
`;
export const SubHeadline = styled.h3`
display: inline-block;
font-weight: 700;
text-transform: uppercase;
margin: 0;
2021-07-10 23:57:08 +02:00
color: ${(props) => props.theme.mainColor};
2020-07-08 19:36:36 +02:00
`;
export const ItemList = styled.ul`
display: grid;
2020-07-10 00:04:47 +02:00
grid-template-columns: repeat(4, 1fr);
2020-07-08 19:36:36 +02:00
grid-gap: 1rem;
padding: 0;
list-style: none;
2020-07-10 00:04:47 +02:00
@media (max-width: 750px) {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
2020-07-08 19:36:36 +02:00
`;
export const Item = styled.li`
overflow: hidden;
position: relative;
list-style: none;
`;
export const Button = styled.button`
text-transform: uppercase;
2021-06-30 00:56:01 +02:00
font-family: Roboto, sans-serif;
2020-07-08 19:36:36 +02:00
font-weight: 400;
2021-07-10 23:57:08 +02:00
border: 1px solid ${(props) => props.theme.mainColor};
color: ${(props) => props.theme.mainColor};
2020-07-08 19:36:36 +02:00
background: none;
min-height: 2rem;
2020-07-08 19:36:36 +02:00
height: 100%;
&:hover {
cursor: pointer;
}
`;