source: sources/client/src/components/admin/EmployeeCreate/styles.js

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

Push before video

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[bc20307]1import styled from 'styled-components';
2import {
3 Button,
4 InputLabel,
5 MenuItem,
6 Select,
7 Switch,
8 TextField,
9 Typography,
10} from '@mui/material';
[3a58bd6]11import VIcon from '@mui/icons-material/Visibility';
12import VOffIcon from '@mui/icons-material/VisibilityOff';
13
14export const EmployeeEditWrapper = styled.div`
[bc20307]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};
[3a58bd6]25`;
26
[bc20307]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;
[3a58bd6]31`;
32
33export const RowWrapper = styled.div`
[bc20307]34 display: flex;
35 flex-direction: row;
36 justify-content: space-between;
37 margin-bottom: 25px;
38 position: relative;
[3a58bd6]39`;
40
[bc20307]41export const LabelAndInputWrapper = styled.div``;
[3a58bd6]42
[bc20307]43export const Label = styled(InputLabel).attrs({})``;
[3a58bd6]44
[bc20307]45export const StandardInputField = styled(TextField).attrs({})`
46 width: 300px;
[3a58bd6]47`;
48
49export const VisibilityIcon = styled(VIcon).attrs({
[bc20307]50 sx: {
51 fontSize: '2rem',
52 },
[3a58bd6]53})``;
54
55export const VisibilityOffIcon = styled(VOffIcon).attrs({
[bc20307]56 sx: {
57 fontSize: '2rem',
58 },
[3a58bd6]59})``;
60
[bc20307]61export const Dropdown = styled(Select).attrs({})`
62 width: 300px;
[3a58bd6]63`;
64
[bc20307]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`;
[3a58bd6]76
77export const SwitchRowWrapper = styled.div`
[bc20307]78 text-align: center;
79 margin-top: 10px;
80 margin-bottom: 50px;
[3a58bd6]81`;
82
83export const SwitchTitle = styled.p`
[bc20307]84 font-size: 18px;
85 font-weight: 600;
86 margin: 0;
87 margin-bottom: 5px;
[3a58bd6]88`;
89
90export const SwitchLabelAndInputWrapper = styled.div`
[bc20307]91 display: flex;
92 flex-direction: row;
93 align-items: center;
94 justify-content: center;
[3a58bd6]95`;
96
[bc20307]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 }
[3a58bd6]110`;
111
112export const BackButton = styled(Button).attrs({
[bc20307]113 variant: 'outlined',
[3a58bd6]114})`
[bc20307]115 margin-right: 15px;
116 :hover {
117 border: 2px solid;
118 font-weight: 600;
119 }
[3a58bd6]120`;
121
[bc20307]122export const SaveChangesButton = styled(Button).attrs((props) => ({
123 variant: 'contained',
124 sx: {
125 backgroundColor: `${props.theme.palette.primary.main}`,
126 },
[3a58bd6]127}))`
[bc20307]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.