source: sources/client/src/components/admin/EmployeeCreate/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: 2.8 KB
Line 
1import styled from 'styled-components';
2import {
3 Button,
4 InputLabel,
5 MenuItem,
6 Select,
7 Switch,
8 TextField,
9 Typography,
10} from '@mui/material';
11import VIcon from '@mui/icons-material/Visibility';
12import VOffIcon from '@mui/icons-material/VisibilityOff';
13
14export const EmployeeEditWrapper = styled.div`
15 display: flex;
16 flex-direction: column;
17 max-width: 800px;
18 border: 1px solid whiteSmoke;
19 border-radius: 10px;
20 padding: 10px 20px;
21 margin-top: 20px;
22 margin-left: 30px;
23 background-color: white;
24 box-shadow: 15px 15px 10px ${(props) => props.theme.palette.background.shadow};
25`;
26
27export const Title = styled(Typography).attrs({})`
28 border-bottom: 2px solid rgba(0, 0, 0, 0.12);
29 padding-bottom: 10px;
30 margin-bottom: 15px;
31`;
32
33export const RowWrapper = styled.div`
34 display: flex;
35 flex-direction: row;
36 justify-content: space-between;
37 margin-bottom: 25px;
38 position: relative;
39`;
40
41export const LabelAndInputWrapper = styled.div``;
42
43export const Label = styled(InputLabel).attrs({})``;
44
45export const StandardInputField = styled(TextField).attrs({})`
46 width: 300px;
47`;
48
49export const VisibilityIcon = styled(VIcon).attrs({
50 sx: {
51 fontSize: '2rem',
52 },
53})``;
54
55export const VisibilityOffIcon = styled(VOffIcon).attrs({
56 sx: {
57 fontSize: '2rem',
58 },
59})``;
60
61export const Dropdown = styled(Select).attrs({})`
62 width: 300px;
63`;
64
65export const DropdownOption = styled(MenuItem).attrs({})`
66 > span {
67 color: ${(props) => props.theme.palette.primary.main};
68 svg {
69 color: ${(props) => props.theme.palette.primary.main};
70 }
71 }
72 > div > span {
73 font-size: 1.3rem;
74 }
75`;
76
77export const SwitchRowWrapper = styled.div`
78 text-align: center;
79 margin-top: 10px;
80 margin-bottom: 50px;
81`;
82
83export const SwitchTitle = styled.p`
84 font-size: 18px;
85 font-weight: 600;
86 margin: 0;
87 margin-bottom: 5px;
88`;
89
90export const SwitchLabelAndInputWrapper = styled.div`
91 display: flex;
92 flex-direction: row;
93 align-items: center;
94 justify-content: center;
95`;
96
97export const AccountSwitch = styled(Switch).attrs((props) => ({}))`
98 .MuiSwitch-switchBase {
99 color: red;
100 }
101 .MuiSwitch-track {
102 background-color: red;
103 }
104 .MuiSwitch-switchBase.Mui-checked {
105 color: ${(props) => props.theme.palette.primary.main};
106 }
107 .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
108 background-color: ${(props) => props.theme.palette.primary.main};
109 }
110`;
111
112export const BackButton = styled(Button).attrs({
113 variant: 'outlined',
114})`
115 margin-right: 15px;
116 :hover {
117 border: 2px solid;
118 font-weight: 600;
119 }
120`;
121
122export const SaveChangesButton = styled(Button).attrs((props) => ({
123 variant: 'contained',
124 sx: {
125 backgroundColor: `${props.theme.palette.primary.main}`,
126 },
127}))`
128 padding: 10px 16px;
129 :hover {
130 background-color: ${(props) => props.theme.palette.primary.dark};
131 }
132`;
Note: See TracBrowser for help on using the repository browser.