Skip to content

Commit

Permalink
www: More adaptive
Browse files Browse the repository at this point in the history
Signed-off-by: xplshn <[email protected]>
  • Loading branch information
xplshn committed Nov 5, 2024
1 parent 8de7093 commit 357fe8e
Showing 1 changed file with 48 additions and 14 deletions.
62 changes: 48 additions & 14 deletions www/style.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
body {
font-family: system-ui, -apple-system, sans-serif;
line-height: 1.5;
color: #333;
background: #f5f5f5;
display: flex;
flex-direction: column;
min-height: 100vh;
Expand All @@ -19,8 +17,6 @@ body {
}

.card figure {
width: 75px;
height: 75px;
display: flex;
margin-left: 0.85rem;
align-items: center;
Expand All @@ -35,19 +31,18 @@ body {

.card-body {
flex: 1;
margin-left: 0.5rem; /* Adjust space between image and text */
margin-left: 0.5rem;
}

.card-title {
font-size: 1.1rem;
font-weight: bold;
margin-bottom: 0.25rem;
color: #333;

}

.card-desc {
font-size: 0.9rem;
color: #666;
}

.see-more-btn {
Expand All @@ -57,14 +52,53 @@ body {
margin-right: auto;
}

@media (max-width: 768px) {
/* Mobile-first approach with more specific media queries */
@media (max-width: 600px) {
.card {
padding: 0.5rem; /* Adjust padding for smaller screens */
flex-direction: column;
padding: 0.5rem;
}

.card figure {
width: 40px; /* Adjust the width for smaller screens */
height: 40px; /* Adjust the height for smaller screens */
width: 60px;
height: 60px;
}

.card-body {
margin-left: 0; /* Remove margin for smaller screens */
}

.card-title {
font-size: 1rem;
}

.card-desc {
font-size: 0.85rem;
}
}

@media (min-width: 601px) and (max-width: 1024px) {
.card {
padding: 1rem;
}

.card figure {
width: 50px;
height: 50px;
}

.card-title {
font-size: 1.05rem;
}

.card-desc {
font-size: 0.9rem;
}
}

@media (max-width: 768px) {
.card {
padding: 0.5rem; /* Adjust padding for smaller screens */
}

.card-title {
Expand All @@ -83,7 +117,7 @@ body {
}

.details-content {
background-color: #fff;

padding: 2rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand All @@ -106,7 +140,7 @@ body {
}

.modal-box {
background-color: #fff;

padding: 2rem;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Expand All @@ -120,7 +154,7 @@ body {
.error, .no-results {
text-align: center;
padding: 2rem;
color: #6c757d;

}

/* Handle overflow text */
Expand Down

0 comments on commit 357fe8e

Please sign in to comment.