Skip to content

Commit b6cce7f

Browse files
committed
trainer responsive styles completed
1 parent fd88e9d commit b6cce7f

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { theme } from 'core/theme';
33
const { typography, spacing, palette } = theme;
44

55
export const mainContainer = css`
6-
width: 80%;
6+
width: 60%;
77
margin: ${spacing(80)} auto;
8+
9+
@media (max-width: 728px) {
10+
width: 80%;
11+
}
812
`;
913

1014
export const studentBoard = css`

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export const inputIconContainer = css`
3030

3131
export const textArea = css`
3232
font-family: ${typography.fontFamily};
33+
min-width: 0;
3334
color: ${palette.text.primary};
35+
margin-right: 0;
3436
border: 2px solid #ccc;
3537
border-top-left-radius: 0.4rem;
3638
border-bottom-left-radius: 0.4rem;
@@ -46,11 +48,18 @@ export const textArea = css`
4648
&::selection {
4749
background: #ccc;
4850
}
49-
margin-right: 0%;
51+
52+
@media (max-width: 380px) {
53+
font-size: 14px;
54+
padding: 16px;
55+
}
5056
`;
5157

5258
export const copyIcon = css`
5359
font-size: 30px;
60+
@media (max-width: 380px) {
61+
font-size: 26px;
62+
}
5463
`;
5564

5665
export const copyBtn = css`
@@ -71,4 +80,9 @@ export const copyBtn = css`
7180
&:active {
7281
background-color: #fff;
7382
}
83+
84+
@media (max-width: 380px) {
85+
height: 52px;
86+
width: 52px;
87+
}
7488
`;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const labelTextarea = css`
1717
export const editTextArea = css`
1818
box-sizing: border-box;
1919
font-size: 16px;
20+
white-space: nowrap;
2021
width: 100%;
2122
margin-bottom: ${spacing(20)};
2223
margin-top: ${spacing(10)};

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const studentBoard = css`
1111
box-sizing: border-box;
1212
font-size: 16px;
1313
width: 100%;
14+
white-space: nowrap;
1415
margin-bottom: ${spacing(10)};
1516
margin-top: ${spacing(10)};
1617
padding: ${spacing(16)};
@@ -54,6 +55,9 @@ export const sendBtn = css`
5455
export const sendIcon = css`
5556
font-size: 20px;
5657
margin-left: 10px;
58+
@media (max-width: 380px) {
59+
display: none;
60+
}
5761
`;
5862

5963
export const undoBtn = css`
@@ -80,6 +84,9 @@ export const undoBtn = css`
8084
export const undoIcon = css`
8185
font-size: 20px;
8286
margin-right: 10px;
87+
@media (max-width: 380px) {
88+
display: none;
89+
}
8390
`;
8491

8592
export const labelTextarea = css`

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ export const backgroundContainer = css`
1111
export const content = css`
1212
width: 60%;
1313
margin: 0px auto 0 auto;
14+
15+
@media (max-width: 728px) {
16+
width: 80%;
17+
}
1418
`;

0 commit comments

Comments
 (0)