Skip to content

Commit

Permalink
mobileness improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Karen Ullrich committed Oct 22, 2024
1 parent c215bb4 commit f764da4
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,38 @@ body {
height: 100vh;
backdrop-filter: brightness(0.3); /* Adjust brightness for better text visibility */
}

/* Add mobile-specific styles */
@media only screen and (max-width: 768px) {
body {
height: auto; /* Remove fixed height for mobile devices */
}
.machine-grid {
grid-template-columns: repeat(3, 100px); /* Reduce number of columns for smaller screens */
grid-gap: 5px; /* Reduce gap between elements for smaller screens */
}
.machine-slot {
padding: 10px; /* Reduce padding for smaller screens */
font-size: 1.2rem; /* Reduce font size for smaller screens */
}
}
header {
text-align: center;
margin-bottom: 20px;
backdrop-filter: brightness(0.8); /* Ensure header text is visible */
}

h1 {
color: #FF1493; /* LED pink */
font-size: 3rem;
}

.vending-machine {
display: flex;
justify-content: center;
}

.machine-grid {
display: grid;
grid-template-columns: repeat(5, 100px);
grid-gap: 10px;
}

.machine-slot {
background-color: #000;
color: #FF1493; /* LED pink */
Expand All @@ -47,12 +56,9 @@ h1 {
text-decoration: none;
transition: transform 0.3s;
}

.machine-slot:hover {
transform: scale(1.1);
}

footer {
margin-top: 20px;
font-size: 1.2rem;
}

0 comments on commit f764da4

Please sign in to comment.