Skip to content

Commit

Permalink
Update index.css
Browse files Browse the repository at this point in the history
  • Loading branch information
reflecthub authored Nov 23, 2024
1 parent 91a2425 commit 7767901
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ button:focus {
.menu-links {
height: auto !important; /* Dynamic height */
overflow: visible !important; /* Prevent clipping */
max-height: 40vh;
max-height: 20vh;
}

/* For screens smaller than 768px (tablets and smaller) */
Expand All @@ -29,17 +29,23 @@ button:focus {
}
@media (max-width: 930px) {
.menu-links {
height: 20vh !important; /* Limit height to 50% of the viewport height */
height: 40vh !important; /* Limit height to 50% of the viewport height */
overflow-y: scroll !important; /* Add vertical scroll if needed */
}
}
@media (max-width: 1144px) {
.menu-links {
height: 10vh !important; /* Limit height to 50% of the viewport height */
overflow-y: scroll !important; /* Add vertical scroll if needed */
}
}

@media (max-width: 480px) {
.menu-links {
height: 40vh !important; /* Adjust height for smaller screens */
overflow-x: auto !important; /* Allow horizontal scrolling if content overflows */
overflow-y: auto !important; /* Enable vertical scrolling */
width: 100% !important; /* Ensure full width of the container */
height: 40vh !important;
/* overflow-x: auto !important; Allow horizontal scrolling if content overflows */
overflow-y: scroll !important;
width: 100% !important;
}
}

Expand Down Expand Up @@ -86,7 +92,7 @@ button:focus {
overflow: hidden; /* Prevent overflow */
word-wrap: break-word; /* Break long words into the next line if they don't fit */
white-space: normal; /* Allow wrapping of text */
height: auto; /* Ensure the box expands based on content height */
max-height: auto; /* Ensure the box expands based on content height */
pointer-events: none;
}
/* change width of info box to 30 rem for mobile screens */
Expand Down Expand Up @@ -192,6 +198,7 @@ button:focus {

.menu-links.show {
display: flex;
flex-direction: row;
opacity: 1;
}

Expand Down Expand Up @@ -802,6 +809,10 @@ body {
background-color: #7c0b6f;
color: #ffffff;
}
#div7 {
background-color: #7c0b6f;
color: #ffffff;
}


/* Table Styling */
Expand Down

0 comments on commit 7767901

Please sign in to comment.