Skip to content

Commit

Permalink
fixed responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
AMS003010 committed Jun 30, 2024
1 parent eda690a commit c067dc4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<a href="about.html" class="btn--about">About Us</a>
<!-- Profile dropdown button -->
<div class="profile-menu">
<button class="profile-btn">
<img src="profilepic.jpg" alt="Profile Picture" class="profile-pic">
<button class="profile-btn" style="top: 10rem;">
<!-- <img src="./images/profilepic.jpg" alt="Profile Picture" class="profile-pic"> -->
</button>
<!-- Dropdown menu -->
<div class="dropdown-content">
Expand Down Expand Up @@ -52,7 +52,7 @@

<div class="ui__game"></div>

<div class="ui__texts">
<div class="ui__texts" id="ui_texts">
<h1 class="text text--title">
<span>Let's</span>
<span>Solve!</span>
Expand Down Expand Up @@ -110,7 +110,7 @@ <h1 class="text text--title">
</div>
</div>

<div class="theme-selector">
<div class="theme-selector" id="theme_selector_id">
<label for="theme">Choose Theme:</label>
<select id="theme">
<option value="default">Default</option>
Expand Down
2 changes: 0 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,6 @@ class World extends Animation {
}


function RoundedBoxGeometry( size, radius, radiusSegments ) {
=======
// script.js

document.addEventListener('DOMContentLoaded', () => {
Expand Down
24 changes: 24 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -614,4 +614,28 @@ body {

.profile-menu:hover .dropdown-content {
display: block;
}

@media screen and (max-width: 430px) {
#ui_texts {
font-size: 3.5rem;
}

#theme_selector_id {
font-size: 3rem;
}

.profile-btn {
margin-right: 14rem;
margin-top: 12rem;
width: 7rem;
height: 7rem;
}

.btn--tr {
top: 1.8em;
right: 0.5em;
opacity: 1;
pointer-events: auto;
}
}

0 comments on commit c067dc4

Please sign in to comment.