Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

699 Update responsive design up to 200% zoom #727

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions frontend/src/components/LevelSelectionBox/LevelSelectionBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,36 @@
.level-selection-box button:last-child {
font-size: 1rem;
}

@media (max-width: 1230px) {
.level-selection-box button {
font-size: 0.8rem;
padding: 1rem;
}
}

@media (max-width: 1015px) {
.level-selection-box button {
font-size: 0.8rem;
height: 0.5rem;
}
}

@media (max-width: 940px) {
.level-selection-box button {
font-size: 0.7rem;
}
.level-selection-box button:last-child {
width: auto;
font-size: 0.6rem;
}
}

@media (max-width: 760px) {
.level-selection-box button {
font-size: 0.6rem;
}
.level-selection-box {
align-items: center;
}
}
78 changes: 78 additions & 0 deletions frontend/src/components/MainComponent/MainHeader.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,81 @@
justify-content: flex-end;
gap: 1.5rem;
}

/* Media Query for .game-container */
@media (max-width: 1230px) {
.main-header {
height: 5rem;
padding: 0rem 0rem;
}

.main-header .themed-button {
padding: 0.5rem;
height: 2.5rem;
gap: 0.25rem;
font-size: 0.8rem;
}

.main-header-left,
.main-header-middle,
.main-header-right {
flex-grow: 1;
}

.main-header-middle .main-header-level {
font-size: 1rem;
}

.level-selection-box {
font-size: 0.5rem;
}
}

@media (max-width: 1015px) {
.main-header .themed-button {
gap: 0.25rem;
font-size: 0.8rem;
}

.main-header-middle {
gap: 1rem;
flex-shrink: 1;
}
.main-header {
padding: 0rem 0rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be shortened

Suggested change
padding: 0rem 0rem;
padding: 0;

height: 3.5rem;
}
.main-header-right {
gap: 0rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be shortened to

Suggested change
gap: 0rem;
gap: 0;

}
}

@media (max-width: 940px) {
.main-header-left > .titleLogo {
height: 50%;
}
.main-header-left {
width: auto;
}
.main-header-right {
justify-content: space-evenly;
width: auto;
}
.main-header .themed-button {
font-size: 0.5rem;
}
.main-header {
height: 3.5rem;
}
}

@media (max-width: 760px) {
.main-header .themed-button {
font-size: 0.5rem;
padding: 0.4rem 0.4rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
padding: 0.4rem 0.4rem;
padding: 0.4rem;

height: 1.8rem;
}
.main-header {
height: 3rem;
}
}
6 changes: 6 additions & 0 deletions frontend/src/components/ThemedButtons/ThemedButton.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@
background-color: var(--action-button-disabled-background-colour);
color: var(--action-button-disabled-text-colour);
}

@media (max-width: 760px) {
.themed-button img {
display: none;
}
Comment on lines +20 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of hiding icons to make space

}