1 | import styled from 'styled-components';
|
---|
2 | import { Typography, Divider } from '@mui/material';
|
---|
3 | import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
|
---|
4 | import HighlightOffIcon from '@mui/icons-material/HighlightOff';
|
---|
5 |
|
---|
6 | export const Wrapper = styled.div`
|
---|
7 | width: 100%;
|
---|
8 | height: 380px;
|
---|
9 | border: 1px solid ${(props) => props.theme.palette.background.shadow};
|
---|
10 | box-shadow: 15px 15px 10px ${(props) => props.theme.palette.background.shadow};
|
---|
11 | `;
|
---|
12 |
|
---|
13 | export const TopPartWrapper = styled.div`
|
---|
14 | width: 100%;
|
---|
15 | padding: 10px 20px 0 20px;
|
---|
16 | text-align: center;
|
---|
17 | `;
|
---|
18 |
|
---|
19 | export const Title = styled(Typography).attrs({
|
---|
20 | variant: 'h4',
|
---|
21 | textAlign: 'center',
|
---|
22 | marginBottom: '10px',
|
---|
23 | fontSize: '1.7rem',
|
---|
24 | fontWeight: 500,
|
---|
25 | })``;
|
---|
26 |
|
---|
27 | export const DividerUnderTitle = styled(Divider).attrs({
|
---|
28 | sx: {
|
---|
29 | borderBottomWidth: '2px',
|
---|
30 | },
|
---|
31 | })``;
|
---|
32 |
|
---|
33 | export const ParkingSpacesNumberWrapper = styled.div`
|
---|
34 | margin-top: 15px;
|
---|
35 | display: flex;
|
---|
36 | flex-direction: row;
|
---|
37 | width: 100%;
|
---|
38 | justify-content: space-evenly;
|
---|
39 | `;
|
---|
40 |
|
---|
41 | export const NumberLabel = styled.p`
|
---|
42 | font-size: 1.4rem;
|
---|
43 | margin: 0;
|
---|
44 | `;
|
---|
45 |
|
---|
46 | export const NumberValue = styled.p`
|
---|
47 | font-size: 1.6rem;
|
---|
48 | font-weight: 500;
|
---|
49 | margin: 0;
|
---|
50 | `;
|
---|
51 |
|
---|
52 | export const TableWrapper = styled.div`
|
---|
53 | width: 100%;
|
---|
54 | margin: auto;
|
---|
55 | text-align: center;
|
---|
56 | margin-top: 15px;
|
---|
57 | padding-left: 10px;
|
---|
58 | padding-right: 10px;
|
---|
59 | table {
|
---|
60 | border-spacing: 0;
|
---|
61 | border-bottom: 0;
|
---|
62 | word-break: break-all;
|
---|
63 | font-size: 1.2rem;
|
---|
64 | }
|
---|
65 |
|
---|
66 | table tbody {
|
---|
67 | display: block;
|
---|
68 | max-height: 200px;
|
---|
69 | overflow-y: auto;
|
---|
70 | }
|
---|
71 | tbody::-webkit-scrollbar {
|
---|
72 | display: none;
|
---|
73 | }
|
---|
74 | table thead,
|
---|
75 | table tbody tr {
|
---|
76 | display: table;
|
---|
77 | width: 100%;
|
---|
78 | table-layout: fixed;
|
---|
79 | }
|
---|
80 |
|
---|
81 | th {
|
---|
82 | padding: 10px 5px;
|
---|
83 | }
|
---|
84 |
|
---|
85 | th {
|
---|
86 | border-bottom: 2px solid black;
|
---|
87 | border-left: 2px solid black;
|
---|
88 | :first-of-type {
|
---|
89 | width: 56px;
|
---|
90 | border: 0;
|
---|
91 | }
|
---|
92 | :nth-of-type(2),
|
---|
93 | :nth-of-type(3),
|
---|
94 | :nth-of-type(4) {
|
---|
95 | border-top: 1px solid black;
|
---|
96 | }
|
---|
97 | :nth-of-type(2) {
|
---|
98 | border-left: 1px solid black;
|
---|
99 | }
|
---|
100 | :nth-of-type(4) {
|
---|
101 | width: 90px;
|
---|
102 | border-right: 1px solid black;
|
---|
103 | }
|
---|
104 | :last-of-type {
|
---|
105 | width: 56px;
|
---|
106 | border: 0;
|
---|
107 | }
|
---|
108 | }
|
---|
109 | td {
|
---|
110 | border-left: 2px solid black;
|
---|
111 | border-bottom: 1px solid black;
|
---|
112 | text-overflow: ellipsis;
|
---|
113 | }
|
---|
114 | tr td:first-of-type {
|
---|
115 | width: 56px;
|
---|
116 | border: 0;
|
---|
117 | }
|
---|
118 | tr td:nth-of-type(2) {
|
---|
119 | border-left: 1px solid black;
|
---|
120 | }
|
---|
121 | tr td:nth-of-type(4) {
|
---|
122 | width: 90px;
|
---|
123 | border-right: 1px solid black;
|
---|
124 | }
|
---|
125 | tr td:last-of-type {
|
---|
126 | border: 0;
|
---|
127 | width: 56px;
|
---|
128 | }
|
---|
129 | tr:last-of-type td {
|
---|
130 | border-bottom: 0;
|
---|
131 | }
|
---|
132 | `;
|
---|
133 |
|
---|
134 | export const AddIcon = styled(AddCircleOutlineIcon).attrs((props) => ({
|
---|
135 | sx: {
|
---|
136 | fontSize: '2.5rem',
|
---|
137 | color: props.theme.palette.primary.main,
|
---|
138 | },
|
---|
139 | }))``;
|
---|
140 |
|
---|
141 | export const DeleteIcon = styled(HighlightOffIcon).attrs((props) => ({
|
---|
142 | sx: {
|
---|
143 | fontSize: '2.5rem',
|
---|
144 | color: props.theme.palette.error.main,
|
---|
145 | },
|
---|
146 | }))``;
|
---|
147 |
|
---|
148 | export const TableDataInput = styled.input`
|
---|
149 | width: 100%;
|
---|
150 | height: 47px;
|
---|
151 | padding: 3.5px 5px;
|
---|
152 | border: 0;
|
---|
153 | font-size: 1.2rem;
|
---|
154 | text-align: center;
|
---|
155 |
|
---|
156 | &:focus {
|
---|
157 | background-color: rgba(0, 173, 124, 0.2);
|
---|
158 | font-weight: 600;
|
---|
159 | }
|
---|
160 | `;
|
---|