1 | import styled from 'styled-components';
|
---|
2 | import TextField from '@mui/material/TextField';
|
---|
3 | import Button from '@mui/material/Button';
|
---|
4 | import AddCircleOutlineIcon from '@mui/icons-material/AddCircleOutline';
|
---|
5 | import RemoveCircleIcon from '@mui/icons-material/RemoveCircle';
|
---|
6 | import SaveI from '@mui/icons-material/Save';
|
---|
7 | import { MenuItem, Select } from '@mui/material';
|
---|
8 |
|
---|
9 | export const SessionInfo = styled.div`
|
---|
10 | display: flex;
|
---|
11 | flex-direction: column;
|
---|
12 | align-items: center;
|
---|
13 | padding: 5vh 25px 15px 25px;
|
---|
14 | margin-bottom: 6.5vh;
|
---|
15 | `;
|
---|
16 |
|
---|
17 | export const Input = styled(TextField).attrs({
|
---|
18 | fullWidth: true,
|
---|
19 | })`
|
---|
20 | height: 59.44px;
|
---|
21 | input {
|
---|
22 | text-align: center;
|
---|
23 | color: white !important;
|
---|
24 | font-size: 1.2rem;
|
---|
25 | padding-left: 10px;
|
---|
26 |
|
---|
27 | ::placeholder {
|
---|
28 | opacity: 0.6;
|
---|
29 | }
|
---|
30 | :disabled {
|
---|
31 | -webkit-text-fill-color: white;
|
---|
32 | }
|
---|
33 | }
|
---|
34 | fieldset {
|
---|
35 | border: 0;
|
---|
36 | border-bottom: 4px solid white !important;
|
---|
37 | border-radius: 25px;
|
---|
38 | padding: 0 10px;
|
---|
39 | }
|
---|
40 | `;
|
---|
41 |
|
---|
42 | export const PlateAndAddPlateBtnWrapper = styled.div`
|
---|
43 | display: flex;
|
---|
44 | flex-direction: row;
|
---|
45 | justify-content: ${(props) => (props.center ? 'center' : 'space-between')};
|
---|
46 | align-items: flex-end;
|
---|
47 | width: 100%;
|
---|
48 | margin-bottom: 5vh;
|
---|
49 | .MuiCircularProgress-svg {
|
---|
50 | color: ${(props) => props.theme.palette.third.main};
|
---|
51 | }
|
---|
52 | `;
|
---|
53 |
|
---|
54 | export const ZoneSelectInput = styled(Select).attrs({})`
|
---|
55 | text-align: center;
|
---|
56 | position: relative;
|
---|
57 | width: 49%;
|
---|
58 | color: white;
|
---|
59 | #mui-component-select-zone {
|
---|
60 | font-size: 1.5rem;
|
---|
61 | padding: 16.5px 30px 16.5px 10px;
|
---|
62 | color: white !important;
|
---|
63 | font-size: 1.2rem;
|
---|
64 |
|
---|
65 | ::placeholder {
|
---|
66 | opacity: 0.6;
|
---|
67 | }
|
---|
68 | :disabled {
|
---|
69 | -webkit-text-fill-color: white;
|
---|
70 | }
|
---|
71 | }
|
---|
72 | svg {
|
---|
73 | right: 10px;
|
---|
74 | color: white !important;
|
---|
75 | display: ${(props) => (!props.$show ? 'none' : '')};
|
---|
76 | }
|
---|
77 | fieldset {
|
---|
78 | border: 0;
|
---|
79 | border-bottom: 4px solid white !important;
|
---|
80 | border-radius: 25px;
|
---|
81 | padding: 0 10px;
|
---|
82 | }
|
---|
83 | `;
|
---|
84 |
|
---|
85 | export const PlateSelectInput = styled(ZoneSelectInput)`
|
---|
86 | color: white;
|
---|
87 | font-weight: 500;
|
---|
88 | font-size: 1.15rem;
|
---|
89 | `;
|
---|
90 |
|
---|
91 | export const DropdownItem = styled(MenuItem).attrs({})`
|
---|
92 | justify-content: center;
|
---|
93 | border-top: 1px solid grey;
|
---|
94 | :first-of-type {
|
---|
95 | border: 0;
|
---|
96 | }
|
---|
97 | `;
|
---|
98 |
|
---|
99 | export const PlateDropdownItem = styled(MenuItem).attrs({})`
|
---|
100 | justify-content: space-between;
|
---|
101 | border-top: 1px solid grey;
|
---|
102 | padding-right: 5px;
|
---|
103 | padding-left: 10px;
|
---|
104 | :first-of-type {
|
---|
105 | border: 0;
|
---|
106 | }
|
---|
107 | `;
|
---|
108 |
|
---|
109 | export const AddIcon = styled(AddCircleOutlineIcon).attrs({
|
---|
110 | sx: {
|
---|
111 | fontSize: '2.5rem',
|
---|
112 | },
|
---|
113 | })`
|
---|
114 | margin-right: 11px;
|
---|
115 | `;
|
---|
116 |
|
---|
117 | export const RemoveIcon = styled(RemoveCircleIcon).attrs({
|
---|
118 | sx: {
|
---|
119 | fontSize: '2.2rem',
|
---|
120 | color: 'red',
|
---|
121 | },
|
---|
122 | })``;
|
---|
123 |
|
---|
124 | export const SaveIcon = styled(SaveI).attrs({
|
---|
125 | sx: {
|
---|
126 | fontSize: '2.5rem',
|
---|
127 | },
|
---|
128 | })`
|
---|
129 | margin-right: 11px;
|
---|
130 | `;
|
---|
131 |
|
---|
132 | export const AddPlate = styled(Button).attrs((props) => ({
|
---|
133 | variant: 'contained',
|
---|
134 | size: 'small',
|
---|
135 | sx: {
|
---|
136 | backgroundColor: `whiteSmoke`,
|
---|
137 | color: `${props.theme.palette.primary.main}`,
|
---|
138 | fontWeight: 600,
|
---|
139 | fontSize: 16,
|
---|
140 | height: 59.44,
|
---|
141 | },
|
---|
142 | }))`
|
---|
143 | :hover {
|
---|
144 | background-color: #dcdcdc;
|
---|
145 | }
|
---|
146 | `;
|
---|
147 |
|
---|
148 | export const SavePlate = styled(Button).attrs((props) => ({
|
---|
149 | variant: 'contained',
|
---|
150 | size: 'small',
|
---|
151 | sx: {
|
---|
152 | backgroundColor: `whiteSmoke`,
|
---|
153 | color: `${props.theme.palette.third.main}`,
|
---|
154 | fontWeight: 600,
|
---|
155 | fontSize: 16,
|
---|
156 | height: 59.44,
|
---|
157 | },
|
---|
158 | }))`
|
---|
159 | :hover {
|
---|
160 | background-color: #dcdcdc;
|
---|
161 | }
|
---|
162 | `;
|
---|