Skip to content

Commit f8eb782

Browse files
committed
app responsive styles completed
1 parent b6cce7f commit f8eb782

2 files changed

Lines changed: 61 additions & 4 deletions

File tree

‎front/src/pods/create-session/create-session.styles.ts‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { css } from 'emotion';
22
import { theme } from 'core/theme';
33
import background from 'assets/bg-create-session.png';
4-
const { spacing, breakpoints } = theme;
4+
5+
const { spacing, breakpoints, palette } = theme;
56

67
export const mainContainer = css`
78
position: relative;
@@ -14,9 +15,15 @@ export const mainContainer = css`
1415
padding: 0;
1516
width: 100%;
1617
height: calc(100vh - ${spacing(86)});
17-
@media screen and (max-width: ${breakpoints.values.md}px) {
18+
@media screen and (max-width: 960px) {
1819
background-image: none;
1920
}
21+
22+
@media (max-width: 578px) {
23+
height: calc(100vh - ${spacing(147)});
24+
width: 90%;
25+
margin: 0 auto;
26+
}
2027
`;
2128

2229
export const buttonContainer = css`
@@ -29,12 +36,22 @@ export const buttonContainer = css`
2936
margin-left: auto;
3037
margin-right: auto;
3138
}
39+
@media (max-width: 960px) {
40+
margin-left: auto;
41+
}
3242
`;
3343

3444
export const descriptionText = css`
3545
text-align: center;
3646
font-size: 1.8rem;
3747
font-weight: 400;
48+
49+
@media (max-width: 578px) {
50+
font-size: 1.6rem;
51+
}
52+
@media (max-width: 380px) {
53+
font-size: 1.5rem;
54+
}
3855
`;
3956

4057
export const createSessionBtn = css`
@@ -58,9 +75,27 @@ export const createSessionBtn = css`
5875
color: white;
5976
outline: none;
6077
}
78+
@media (max-width: 578px) {
79+
color: white;
80+
background: none;
81+
background-color: rgb(255, 87, 51);
82+
border: none;
83+
&:hover,
84+
&:active {
85+
background-color: ${palette.text.primary};
86+
outline: none;
87+
}
88+
}
89+
@media (max-width: 380px) {
90+
padding: ${spacing(20)} ${spacing(24)};
91+
font-size: 1.2rem;
92+
}
6193
`;
6294

6395
export const arrowIcon = css`
6496
margin-left: 0.8rem;
6597
font-size: 2rem;
98+
@media (max-width: 380px) {
99+
font-size: 1.6rem;
100+
}
66101
`;

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

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,23 @@ export const sendBtn = css`
4343
background-color: white;
4444
border: 2px solid #11ae64;
4545
color: #11ae64;
46-
transition: 1ll 0.2s;
46+
transition: all 0.2s;
4747
&:hover,
4848
&:active {
4949
background-color: #11ae64;
5050
border: 2px solid #11ae64;
5151
color: white;
52+
outline: none;
53+
}
54+
@media (max-width: 380px) {
55+
background-color: #11ae64;
56+
color: white;
57+
border: none;
58+
}
59+
&:hover,
60+
&:active {
61+
background-color: #0f834c;
62+
border: none;
5263
}
5364
`;
5465

@@ -72,12 +83,23 @@ export const undoBtn = css`
7283
background-color: white;
7384
border: 2px solid rgb(255, 87, 51);
7485
color: rgb(255, 87, 51);
75-
transition: 1ll 0.2s;
86+
transition: all 0.2s;
7687
&:hover,
7788
&:active {
7889
background-color: rgb(255, 87, 51);
7990
border: 2px solid rgb(255, 87, 51);
8091
color: white;
92+
outline: none;
93+
}
94+
@media (max-width: 380px) {
95+
background-color: rgb(255, 87, 51);
96+
color: white;
97+
border: none;
98+
}
99+
&:hover,
100+
&:active {
101+
background-color: rgb(207, 70, 41);
102+
border: none;
81103
}
82104
`;
83105

0 commit comments

Comments
 (0)