source: sources/client/src/components/admin/EmployeeEdit/styles.js@ 3a58bd6

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

Added Frontend

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