style: adjust SCSS media queries for responsive design

This commit is contained in:
Chneemann 2025-04-13 11:13:09 +02:00
parent 815b8ef605
commit 4941465594
8 changed files with 70 additions and 86 deletions

View file

@ -261,6 +261,16 @@ select:valid {
width: calc(100%); width: calc(100%);
} }
} }
@media screen and (max-width: 950px) {
.header {
margin-bottom: 24px;
.title {
font-size: 50px;
}
}
}
@media screen and (max-width: 560px) { @media screen and (max-width: 560px) {
.btn-text { .btn-text {
span { span {
@ -268,19 +278,3 @@ select:valid {
} }
} }
} }
@media screen and (max-width: 480px) {
.headline {
margin-bottom: 24px;
.title {
font-size: 47px;
font-weight: 700;
}
}
input,
textarea,
select {
font-size: 16px;
}
}

View file

@ -149,7 +149,7 @@ d-none {
/*------------- RESPONSIVE -------------*/ /*------------- RESPONSIVE -------------*/
@media screen and (max-width: 1100px) { @media screen and (max-width: 950px) {
.search { .search {
.search-inner { .search-inner {
input { input {
@ -157,30 +157,22 @@ d-none {
} }
} }
} }
}
@media screen and (max-width: 1020px) { .btn {
.search { padding: 0;
.search-inner { img {
input { display: flex;
width: 150px; align-items: center;
justify-content: center;
} }
span {
display: none;
} }
} }
.title { .title {
font-size: 50px; font-size: 50px;
} }
}
@media screen and (max-width: 910px) {
.search {
.search-inner {
input {
width: 280px;
}
}
}
.status { .status {
justify-content: center; justify-content: center;
@ -209,14 +201,8 @@ d-none {
.btn { .btn {
position: absolute; position: absolute;
top: -75px; top: -70px;
right: 0px; right: 0px;
width: 40px;
height: 40px;
padding: 3px;
span {
display: none;
}
} }
} }

View file

@ -61,6 +61,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="spacer"></div>
} } } }
</div> </div>
</div> </div>

View file

@ -64,7 +64,7 @@
font-size: 20px; font-size: 20px;
font-weight: 400; font-weight: 400;
padding-left: 32px; padding-left: 32px;
margin: 32px 0 12px 0; margin-bottom: 12px;
} }
.line { .line {
@ -74,6 +74,10 @@
background-color: var(--light-gray); background-color: var(--light-gray);
} }
.spacer {
margin: 6px;
}
.contact { .contact {
display: flex; display: flex;
align-items: center; align-items: center;
@ -165,7 +169,7 @@
} }
} }
@media screen and (max-width: 1150px) { @media screen and (max-width: 950px) {
.left-frame { .left-frame {
right: 0; right: 0;
width: auto; width: auto;
@ -175,7 +179,7 @@
.right-frame { .right-frame {
top: 96px; top: 96px;
left: 232px; left: 60px;
bottom: 0; bottom: 0;
right: 0; right: 0;
} }
@ -187,17 +191,17 @@
} }
} }
@media screen and (max-width: 910px) { @media screen and (max-width: 700px) {
.left-frame { .left-frame {
top: 80px; top: 80px;
left: 0; left: 60px;
bottom: 80px; bottom: 80px;
padding: 0; padding: 0;
} }
.right-frame { .right-frame {
top: 80px; top: 80px;
left: 0; left: 60px;
bottom: 80px; bottom: 80px;
} }
@ -217,9 +221,14 @@
height: 56px; height: 56px;
width: 56px; width: 56px;
border-radius: 100%; border-radius: 100%;
padding: 0 0 0 12px;
margin: 0;
z-index: 1; z-index: 1;
cursor: pointer; cursor: pointer;
img { img {
display: flex;
align-items: center;
justify-content: center;
padding: 0; padding: 0;
width: 32px; width: 32px;
height: 32px; height: 32px;
@ -227,9 +236,18 @@
} }
} }
@media screen and (max-width: 450px) { @media screen and (max-width: 700px) {
.left-frame,
.right-frame { .right-frame {
padding: 16px; left: 0;
}
}
@media screen and (max-width: 450px) {
.content,
.contact,
.right-frame {
padding: 12px;
} }
.first-letter { .first-letter {
@ -238,10 +256,6 @@
} }
} }
.contact {
padding: 16px 0;
}
.first-letter { .first-letter {
padding-left: 16px; padding-left: 16px;
} }

View file

@ -16,6 +16,8 @@ import { UpdateNotifierService } from '../../services/update-notifier.service';
styleUrl: './contacts.component.scss', styleUrl: './contacts.component.scss',
}) })
export class ContactsComponent implements OnInit, OnDestroy { export class ContactsComponent implements OnInit, OnDestroy {
private readonly CONTACT_VIEW_BREAKPOINT = 950;
allUsers: User[] = []; allUsers: User[] = [];
currentUser: User | null = null; currentUser: User | null = null;
selectedUserId: string | null = null; selectedUserId: string | null = null;
@ -132,7 +134,10 @@ export class ContactsComponent implements OnInit, OnDestroy {
@HostListener('window:resize', ['$event']) @HostListener('window:resize', ['$event'])
onResize() { onResize() {
if (window.innerWidth <= 1000 && this.selectedUserId != undefined) { if (
window.innerWidth <= this.CONTACT_VIEW_BREAKPOINT &&
this.selectedUserId != undefined
) {
this.showAllUsers = false; this.showAllUsers = false;
} else { } else {
this.showAllUsers = true; this.showAllUsers = true;

View file

@ -55,14 +55,21 @@ app-sidebar-mobile {
} }
} }
@media screen and (max-width: 910px) { @media screen and (max-width: 800px) {
.main-content { .main-content {
padding: 32px; padding: 32px;
}
}
@media screen and (max-width: 700px) {
.main-content {
top: 80px;
left: 0; left: 0;
bottom: 80px; bottom: 80px;
} }
app-header { app-header {
height: 80px;
left: 0; left: 0;
} }
@ -71,16 +78,6 @@ app-sidebar-mobile {
} }
} }
@media screen and (max-width: 700px) {
.main-content {
top: 80px;
}
app-header {
height: 80px;
}
}
@media screen and (max-width: 450px) { @media screen and (max-width: 450px) {
.main-content { .main-content {
padding: 16px; padding: 16px;

View file

@ -204,14 +204,6 @@
} }
} }
@media screen and (max-width: 910px) {
section {
display: flex;
flex-direction: column;
align-items: center;
}
}
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
.header { .header {
flex-direction: column; flex-direction: column;
@ -274,7 +266,7 @@
} }
} }
@media screen and (max-width: 520px) { @media screen and (max-width: 560px) {
.summary-container { .summary-container {
height: fit-content; height: fit-content;
} }
@ -334,7 +326,7 @@
} }
} }
@media screen and (max-width: 450px) { @media screen and (max-width: 470px) {
.header { .header {
.title { .title {
font-size: 47px; font-size: 47px;
@ -374,7 +366,7 @@
} }
} }
@media screen and (max-width: 400px) { @media screen and (max-width: 410px) {
.todo-done, .todo-done,
.urgent, .urgent,
.tasks { .tasks {
@ -414,7 +406,7 @@
} }
} }
@media screen and (max-width: 350px) { @media screen and (max-width: 360px) {
.todo-done, .todo-done,
.urgent, .urgent,
.tasks { .tasks {
@ -422,7 +414,7 @@
} }
.details { .details {
width: 75px; width: 70px;
p { p {
font-size: 10px; font-size: 10px;

View file

@ -8,7 +8,7 @@
.headline { .headline {
font-size: 20px; font-size: 20px;
padding-left: 116px; padding-left: 64px;
} }
.navbar { .navbar {
@ -56,9 +56,10 @@
/*------------- RESPONSIVE -------------*/ /*------------- RESPONSIVE -------------*/
@media screen and (max-width: 910px) { @media screen and (max-width: 700px) {
.header { .header {
width: 100%; width: 100%;
height: 80px;
} }
.headline { .headline {
@ -69,9 +70,3 @@
display: unset; display: unset;
} }
} }
@media screen and (max-width: 700px) {
.header {
height: 80px;
}
}