Skip to content

Commit acbbe2d

Browse files
committed
📱 add responsive design in register page
1 parent 915d4d7 commit acbbe2d

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

src/app/auth/login/login.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
justify-content: space-between;
2828
align-items: center;
2929
gap: 1rem;
30+
flex-wrap: wrap;
3031

3132
& a {
3233
@include fs-6;

src/assets/scss/settings/_media.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@mixin width-small {
2+
@media only screen and (max-width: 480px) {
3+
@content;
4+
}
5+
}
6+
7+
@mixin width-medium {
8+
@media only screen and (max-width: 768px) {
9+
@content;
10+
}
11+
}
12+
13+
@mixin width-large {
14+
@media only screen and (max-width: 1024px) {
15+
@content;
16+
}
17+
}
18+
19+
@mixin width-xlarge {
20+
@media only screen and (max-width: 1200px) {
21+
@content;
22+
}
23+
}

src/styles.scss

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import 'settings/_colors.scss';
22
@import 'settings/_typography.scss';
3+
@import 'settings/_media.scss';
34
@import 'elements/_buttons.scss';
45

56
* {
@@ -75,6 +76,21 @@ body {
7576
padding: 1rem 1.8rem;
7677
max-width: 1400px;
7778
margin: 0 auto;
79+
80+
@include width-medium {
81+
flex-direction: column;
82+
gap: 2rem;
83+
}
84+
85+
@include width-small {
86+
padding: 1rem 0.8rem;
87+
}
88+
89+
& .logo-content {
90+
@include width-medium {
91+
display: none;
92+
}
93+
}
7894
}
7995

8096
& section {
@@ -169,12 +185,20 @@ form {
169185
}
170186
}
171187

172-
173188
.form-group {
174189
display: flex;
175190
flex-direction: column;
176191
gap: 2rem;
177192
flex: 1;
193+
194+
@include width-medium {
195+
flex: none;
196+
width: 80%;
197+
}
198+
199+
@include width-small {
200+
width: 100%;
201+
}
178202
}
179203

180204
.main {

0 commit comments

Comments
 (0)