source: sources/client/src/components/admin/ParkingZones/styles.js@ e8b1076

Last change on this file since e8b1076 was 3a58bd6, checked in by Viktor <39170279+Tasevski2@…>, 3 years ago

Added Frontend

  • Property mode set to 100644
File size: 2.5 KB
Line 
1import styled from 'styled-components';
2import Grid from '@mui/material/Grid';
3import Add from '@mui/icons-material/Add';
4import { Typography, Divider } from '@mui/material';
5import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
6import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';
7import ClearIcon from '@mui/icons-material/Clear';
8import { ParkingZoneWrapper, Container } from './ParkingZoneCard/styles';
9
10export const FiltersWrapper = styled.div`
11 margin-bottom: 10px;
12 text-align: center;
13 display: flex;
14 flex-direction: row;
15 justify-content: space-between;
16 align-items: center;
17 padding: 10px 175px;
18`;
19
20export const SortingArrowsWrapper = styled.div`
21 display: flex;
22 flex-direction: row;
23 align-items: center;
24 position: relative;
25`;
26
27export const ArrowDown = styled(ArrowDownwardIcon).attrs({})`
28 font-size: 2rem;
29 color: ${(props) => (props.selected ? props.theme.palette.primary.main : '')};
30 :hover {
31 cursor: pointer;
32 color: ${(props) => props.theme.palette.primary.main};
33 }
34`;
35
36export const ArrowUp = styled(ArrowUpwardIcon).attrs({})`
37 margin: 0 10px 0 15px;
38 font-size: 2rem;
39 color: ${(props) => (props.selected ? props.theme.palette.primary.main : '')};
40 :hover {
41 cursor: pointer;
42 color: ${(props) => props.theme.palette.primary.main};
43 }
44`;
45
46export const ClearSortIcon = styled(ClearIcon).attrs({})`
47 color: ${(props) => props.theme.palette.error.main};
48 position: absolute;
49 right: 0;
50 font-size: 2rem;
51 right: -50px;
52 :hover {
53 cursor: pointer;
54 }
55`;
56
57export const DividerUnderFilters = styled(Divider).attrs({
58 variant: 'middle',
59 sx: {
60 margin: '0 160px',
61 borderWidth: '2px',
62 borderBottomWidth: 'thin',
63 },
64})``;
65
66export const SortByTitle = styled(Typography).attrs((props) => ({
67 fontSize: '1rem',
68 fontWeight: '600',
69 margin: 0,
70 color: `${props.theme.palette.primary.main}`,
71}))``;
72
73export const ParkingName = styled(Typography).attrs((props) => ({
74 fontSize: '2rem',
75 fontWeight: '600',
76 margin: 0,
77 color: `${props.theme.palette.primary.main}`,
78}))``;
79
80export const ParkingZonesWrapper = styled(Grid)`
81 margin: 0;
82 height: 100%;
83 width: 100%;
84 padding: 0 40px 0 0;
85`;
86
87export const AddParkingZoneCard = styled(ParkingZoneWrapper)``;
88
89export const AddItem = styled(Container)`
90 display: flex;
91 align-items: center;
92 justify-content: middle;
93`;
94
95export const AddIcon = styled(Add).attrs({
96 sx: {
97 fontWeight: 500,
98 },
99})`
100 width: 100%;
101 height: 100%;
102 color: ${(props) => props.theme.palette.primary.main};
103`;
Note: See TracBrowser for help on using the repository browser.