source: sources/client/src/components/admin/ParkingZoneInfoEdit/ResponsiblePersonsSectorEdit/styles.js@ bc20307

Last change on this file since bc20307 was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago

Push before video

  • Property mode set to 100644
File size: 4.5 KB
Line 
1import styled from 'styled-components';
2import { Typography, Divider } from '@mui/material';
3import { Link } from 'react-router-dom';
4import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
5import AddCircleIcon from '@mui/icons-material/AddCircle';
6import HighlightOffIcon from '@mui/icons-material/HighlightOff';
7import Box from '@mui/material/Box';
8import CIcon from '@mui/icons-material/Close';
9
10export const Wrapper = styled.div`
11 width: 100%;
12 height: 290px;
13 border: 1px solid ${(props) => props.theme.palette.background.shadow};
14 box-shadow: 15px 8px 10px ${(props) => props.theme.palette.background.shadow};
15`;
16
17export const TitleAndDividerWrapper = styled.div`
18 width: 100%;
19 padding: 10px 20px 0 20px;
20`;
21
22export const Title = styled(Typography).attrs({
23 variant: 'h4',
24 textAlign: 'center',
25 marginBottom: '10px',
26 fontSize: '1.7rem',
27 fontWeight: 500,
28})``;
29
30export const DividerUnderTitle = styled(Divider).attrs({
31 sx: {
32 borderBottomWidth: '2px',
33 },
34})``;
35
36export const TableWrapper = styled.div`
37 width: 100%;
38 margin: auto;
39 text-align: center;
40 margin-top: 15px;
41 padding-left: 10px;
42 padding-right: 66px;
43 position: relative;
44 table {
45 border-spacing: 0;
46 border-bottom: 0;
47 word-break: break-all;
48 font-size: 1.2rem;
49 }
50
51 table tbody {
52 display: block;
53 max-height: 160px;
54 overflow-y: auto;
55 }
56 tbody::-webkit-scrollbar {
57 display: none;
58 }
59 table thead,
60 table tbody tr {
61 display: table;
62 width: 100%;
63 table-layout: fixed;
64 }
65 th:last-of-type {
66 width: 90px;
67 border-right: 1px solid black;
68 }
69 th:not(:first-of-type) {
70 border-top: 1px solid black;
71 }
72 th,
73 td {
74 padding: 10px 5px;
75 }
76 th:nth-of-type(2),
77 td:nth-of-type(2) {
78 border-left: 1px solid black;
79 }
80 th {
81 border-bottom: 2px solid black;
82 border-left: 2px solid black;
83 :first-of-type {
84 width: 56px;
85 border: 0;
86 }
87 }
88 td {
89 border-left: 2px solid black;
90 border-bottom: 1px solid black;
91 }
92 tr td:first-of-type {
93 width: 56px;
94 border: 0;
95 padding: 0;
96 }
97 tr td:last-of-type {
98 width: 90px;
99 padding-bottom: 0;
100 border-right: 1px solid black;
101 }
102 tr:last-of-type td {
103 border-bottom: 0;
104 }
105`;
106
107export const Elipsis = styled(Link)`
108 text-decoration: none;
109 font-size: 35px;
110 line-height: 0px;
111 font-weight: 900;
112 letter-spacing: 2px;
113 color: ${(props) => props.theme.palette.third.main};
114
115 :hover {
116 cursor: pointer;
117 }
118`;
119
120export const AddIcon = styled(AddCircleOutlineIcon).attrs((props) => ({
121 sx: {
122 fontSize: '2.5rem',
123 color: props.theme.palette.primary.main,
124 },
125}))``;
126
127export const DeleteIcon = styled(HighlightOffIcon).attrs((props) => ({
128 sx: {
129 fontSize: '2.5rem',
130 color: props.theme.palette.error.main,
131 },
132}))``;
133
134export const ModalContainer = styled(Box).attrs({
135 width: 720,
136 height: 350,
137 bgcolor: 'background.paper',
138 boxShadow: 24,
139 zIndex: 1000,
140 marginBottom: '10%',
141 position: 'relative',
142 borderRadius: '15px',
143})`
144 padding: 0 25px 16px 25px;
145`;
146
147export const ModalCardsContainer = styled.div`
148 height: 285px;
149 overflow: auto;
150 overflow-x: hidden;
151 > div:not(:first-of-type) {
152 margin-top: 15px;
153 }
154
155 ::-webkit-scrollbar-thumb {
156 background: #888;
157 }
158 ::-webkit-scrollbar {
159 // display: none;
160 // background-color: red;
161 }
162`;
163export const ModalNoMoreEmplyees = styled(Typography).attrs({
164 variant: 'h3',
165})`
166 width: 100%;
167 text-align: center;
168 color: grey;
169 margin-top: 91px;
170`;
171export const CloseIcon = styled(CIcon).attrs({
172 sx: {
173 color: 'red',
174 fontSize: '2.5rem',
175 },
176})``;
177
178export const ModalCard = styled.div`
179 width: 600px;
180 height: 60px;
181 border-radius: 50px;
182 padding: 5px 10px;
183 background-color: #03c04a;
184 display: flex;
185 flex-direction: row;
186 justify-content: space-between;
187 align-items: center;
188 position: relative;
189 color: white;
190 letter-spacing: 0.1px;
191`;
192
193export const ModalCardKeyAndValueWrapper = styled.div`
194 display: flex;
195 flex-direction: column;
196 align-items: center;
197 overflow: hidden;
198`;
199
200export const ModalKeyAndValueDivider = styled(Divider).attrs({
201 orientation: 'vertical',
202 sx: {
203 borderRightWidth: '2px',
204 },
205})``;
206
207export const ModalCardKey = styled.p`
208 font-size: 0.9rem;
209 margin: 0;
210`;
211
212export const ModalCardValue = styled.p`
213 font-size: 1rem;
214 font-weight: 500;
215 margin: 0;
216 width: 100%;
217 text-align: center;
218`;
219
220export const AddIconCard = styled(AddCircleIcon).attrs((props) => ({
221 sx: {
222 fontSize: '2.5rem',
223 color: props.theme.palette.primary.main,
224 },
225}))``;
Note: See TracBrowser for help on using the repository browser.