Skip to content

Commit f1a9294

Browse files
committed
spacing updated
1 parent 11687ac commit f1a9294

5 files changed

Lines changed: 60 additions & 60 deletions

File tree

‎front/src/pods/student/student.styles.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ const color = palette.customPalette;
66

77
export const mainContainer = css`
88
width: 60%;
9-
margin: ${spacing(80)} auto;
9+
margin: ${spacing(10)} auto;
1010
@media (max-width: ${breakpoints.values.lg}px) {
1111
width: 80%;
1212
}
1313
`;
1414

1515
export const studentBoard = css`
1616
box-sizing: border-box;
17-
font-size: 16px;
17+
font-size: 1rem;
1818
width: 100%;
1919
white-space: nowrap;
20-
margin-bottom: ${spacing(10)};
21-
margin-top: ${spacing(10)};
22-
padding: ${spacing(16)};
20+
margin-bottom: ${spacing(1.25)};
21+
margin-top: ${spacing(1.25)};
22+
padding: ${spacing(2)};
2323
font-family: ${typography.fontFamily};
2424
background-color: ${color.background};
2525
resize: none;
@@ -31,15 +31,15 @@ export const studentBoard = css`
3131

3232
export const labelTextarea = css`
3333
display: block;
34-
font-size: 18px;
34+
font-size: 1.125rem;
3535
font-family: ${typography.fontFamily};
3636
`;
3737

3838
export const sessionName = css`
39-
font-size: 18px;
39+
font-size: 1.125rem;
4040
text-align: center;
41-
margin-bottom: ${spacing(40)};
42-
padding-bottom: 5px;
41+
margin-bottom: ${spacing(5)};
42+
padding-bottom: ${spacing(0.625)};
4343
border-bottom: 2px solid ${color.primary};
4444
display: inline-block;
4545
`;

‎front/src/pods/trainer/components/header.styles.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ const color = palette.customPalette;
66

77
export const headerContainer = css`
88
width: 100%;
9-
margin-bottom: ${spacing(80)};
10-
margin-top: ${spacing(60)};
9+
margin-bottom: ${spacing(10)};
10+
margin-top: ${spacing(7.5)};
1111
`;
1212

1313
export const inputField = css`
14-
margin-bottom: ${spacing(30)};
14+
margin-bottom: ${spacing(3.75)};
1515
&:last-of-type {
16-
margin-bottom: ${spacing(0)};
16+
margin-bottom: 0;
1717
}
1818
`;
1919

2020
export const label = css`
2121
color: ${palette.text.primary};
22-
font-size: 18px;
22+
font-size: 1.125rem;
2323
font-family: ${typography.fontFamily};
2424
`;
2525

2626
export const inputIconContainer = css`
27-
margin-top: 10px;
27+
margin-top: ${spacing(1.25)};
2828
display: flex;
2929
align-items: center;
3030
width: 100%;
@@ -38,8 +38,8 @@ export const textArea = css`
3838
border: 2px solid ${color.greyMedium};
3939
border-top-left-radius: 0.4rem;
4040
border-bottom-left-radius: 0.4rem;
41-
font-size: 16px;
42-
padding: 18px;
41+
font-size: 1rem;
42+
padding: ${spacing(2.25)};
4343
flex: 1;
4444
&:hover,
4545
&:active,
@@ -51,15 +51,15 @@ export const textArea = css`
5151
background: ${color.greyMedium};
5252
}
5353
@media (max-width: ${breakpoints.values.xs}px) {
54-
font-size: 14px;
55-
padding: 16px;
54+
font-size: 0.875rem;
55+
padding: ${spacing(2)};
5656
}
5757
`;
5858

5959
export const copyIcon = css`
60-
font-size: 30px;
60+
font-size: 1.875rem;
6161
@media (max-width: ${breakpoints.values.xs}px) {
62-
font-size: 26px;
62+
font-size: 1.625rem;
6363
}
6464
`;
6565

@@ -70,8 +70,8 @@ export const copyBtn = css`
7070
border-bottom: 2px solid ${color.greyMedium};
7171
border-left: none;
7272
outline: none;
73-
height: 59px;
74-
width: 59px;
73+
height: ${spacing(7.375)};
74+
width: ${spacing(7.375)};
7575
border-top-right-radius: 0.4rem;
7676
border-bottom-right-radius: 0.4rem;
7777
&:hover {
@@ -82,7 +82,7 @@ export const copyBtn = css`
8282
background-color: ${color.background};
8383
}
8484
@media (max-width: ${breakpoints.values.xs}px) {
85-
height: 52px;
86-
width: 52px;
85+
height: ${spacing(6.5)};
86+
width: ${spacing(6.5)};
8787
}
8888
`;

‎front/src/pods/trainer/components/new-text.styles.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@ const color = palette.customPalette;
66

77
export const newTextContainer = css`
88
width: 100%;
9-
margin-top: ${spacing(60)};
10-
margin-bottom: 40px;
11-
margin-bottom: ${spacing(80)};
9+
margin-top: ${spacing(7.5)};
10+
margin-bottom: ${spacing(5)};
11+
margin-bottom: ${spacing(10)};
1212
`;
1313

1414
export const labelTextarea = css`
15-
font-size: 18px;
15+
font-size: 1.125rem;
1616
font-family: ${typography.fontFamily};
1717
`;
1818

1919
export const editTextArea = css`
2020
box-sizing: border-box;
21-
font-size: 16px;
21+
font-size: 1rem;
2222
white-space: nowrap;
2323
width: 100%;
24-
margin-bottom: ${spacing(20)};
25-
margin-top: ${spacing(10)};
26-
padding: ${spacing(16)};
24+
margin-bottom: ${spacing(2.5)};
25+
margin-top: ${spacing(1.25)};
26+
padding: ${spacing(2)};
2727
font-family: ${typography.fontFamily};
2828
background-color: ${color.background};
2929
resize: none;
@@ -36,26 +36,26 @@ export const editTextArea = css`
3636

3737
export const sendBtn = css`
3838
background-color: ${color.successLight};
39-
color: white;
39+
color: #fff;
4040
text-transform: capitalize;
4141
font-weight: 400;
4242
border-radius: 0;
43-
padding: 10px 0;
44-
font-size: 19px;
43+
padding: ${spacing(1.25)} 0;
44+
font-size: 1.188rem;
4545
width: 100%;
4646
transition: all 0.2s;
4747
&:hover {
4848
background-color: ${color.successDark};
49-
color: white;
49+
color: #fff;
5050
}
5151
`;
5252

5353
export const sendBtnDisabled = css`
5454
text-transform: capitalize;
5555
font-weight: 400;
56-
font-size: 19px;
56+
font-size: 1.188rem;
5757
border-radius: 0;
58-
padding: 10px 0;
58+
padding: ${spacing(1.25)} 0;
5959
color: ${palette.grey[700]};
6060
background-color: ${palette.grey[300]};
6161
cursor: default;
@@ -75,6 +75,6 @@ export const sendBtnDisabled = css`
7575
`;
7676

7777
export const sendIcon = css`
78-
font-size: 20px;
79-
margin-left: 10px;
78+
font-size: 1.25rem;
79+
margin-left: ${spacing(1.25)};
8080
`;

‎front/src/pods/trainer/components/session.styles.ts‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ const { palette, spacing, typography, breakpoints } = theme;
55
const color = palette.customPalette;
66

77
export const sessionContainer = css`
8-
padding-top: ${spacing(60)};
9-
padding-bottom: ${spacing(80)};
8+
padding-top: ${spacing(7.5)};
9+
padding-bottom: ${spacing(10)};
1010
`;
1111

1212
export const studentBoard = css`
1313
box-sizing: border-box;
14-
font-size: 16px;
14+
font-size: 1rem;
1515
width: 100%;
1616
white-space: nowrap;
17-
margin-bottom: ${spacing(10)};
18-
margin-top: ${spacing(10)};
19-
padding: ${spacing(16)};
17+
margin-bottom: ${spacing(1.25)};
18+
margin-top: ${spacing(1.25)};
19+
padding: ${spacing(2)};
2020
font-family: ${typography.fontFamily};
2121
background-color: ${color.background};
2222
resize: none;
@@ -27,9 +27,9 @@ export const studentBoard = css`
2727
`;
2828

2929
export const btnContainer = css`
30-
margin-top: 10px;
30+
margin-top: ${spacing(1.25)};
3131
display: flex;
32-
padding-bottom: 25px;
32+
padding-bottom: ${spacing(3.125)};
3333
border-bottom: 2px solid ${color.greyMedium};
3434
`;
3535

@@ -40,8 +40,8 @@ export const sendBtn = css`
4040
font-weight: 400;
4141
flex: 1;
4242
border-radius: 0;
43-
padding: 10px 15px;
44-
font-size: 19px;
43+
padding: ${spacing(1.25)} ${spacing(1.875)};
44+
font-size: 1.188rem;
4545
background-color: white;
4646
border: 2px solid ${color.successLight};
4747
color: ${color.successLight};
@@ -66,8 +66,8 @@ export const sendBtn = css`
6666
`;
6767

6868
export const sendIcon = css`
69-
font-size: 20px;
70-
margin-left: 10px;
69+
font-size: 1.25rem;
70+
margin-left: ${spacing(1.25)};
7171
@media (max-width: ${breakpoints.values.xs}px) {
7272
display: none;
7373
}
@@ -78,10 +78,10 @@ export const undoBtn = css`
7878
align-items: center;
7979
text-transform: capitalize;
8080
font-weight: 400;
81-
font-size: 19px;
81+
font-size: 1.188rem;
8282
border-radius: 0;
83-
padding: 10px 15px;
84-
margin-right: 10px;
83+
padding: ${spacing(1.25)} ${spacing(1.875)};
84+
margin-right: ${spacing(1.25)};
8585
background-color: white;
8686
border: 2px solid ${color.alertLight};
8787
color: ${color.alertLight};
@@ -106,15 +106,15 @@ export const undoBtn = css`
106106
`;
107107

108108
export const undoIcon = css`
109-
font-size: 20px;
110-
margin-right: 10px;
109+
font-size: 1.25rem;
110+
margin-right: ${spacing(1.25)};
111111
@media (max-width: ${breakpoints.values.xs}px) {
112112
display: none;
113113
}
114114
`;
115115

116116
export const labelTextarea = css`
117117
display: block;
118-
font-size: 18px;
118+
font-size: 1.125rem;
119119
font-family: ${typography.fontFamily};
120120
`;

‎front/src/pods/trainer/trainer.styles.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const backgroundContainer = css`
1414

1515
export const content = css`
1616
width: 60%;
17-
margin: 0px auto 0 auto;
17+
margin: 0 auto 0 auto;
1818
@media (max-width: ${breakpoints.values.lg}px) {
1919
width: 80%;
2020
}

0 commit comments

Comments
 (0)