Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
KTrain5169 authored Sep 26, 2024
1 parent 075fc4c commit c5b3dac
Showing 1 changed file with 25 additions and 55 deletions.
80 changes: 25 additions & 55 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,73 +6,43 @@ body {
margin: 0;
padding: 20px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}

/* Bold title */
b {
font-size: 28px;
font-size: 24px;
margin-bottom: 15px;
display: block;
}

/* Styling for links */
a {
color: #ff91a4;
text-decoration: none;
font-size: 18px;
}

a:hover {
text-decoration: underline;
}

/* Remove default list styling */
ul {
list-style: none;
padding: 0;
margin: 20px 0;
/* Flexbox container for images */
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px; /* Space between images */
padding: 20px;
}

/* Style the list items */
ul li {
/* Style for each image */
.gallery img {
max-width: 100%; /* Responsive scaling */
height: auto;
border-radius: 8px;
max-height: 300px; /* Optional: Limit max height for images */
object-fit: cover;
background-color: #282828;
border-radius: 5px;
padding: 10px;
margin: 10px 0;
transition: background-color 0.3s ease;
padding: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
transition: transform 0.2s ease-in-out;
}

/* Change background color on hover */
ul li:hover {
background-color: #ff91a4;
color: #181818;
.gallery img:hover {
transform: scale(1.05); /* Slight zoom effect on hover */
}

ul li a {
color: inherit; /* Match the text color of the li */
/* For smaller screens */
@media (max-width: 768px) {
.gallery {
flex-direction: column; /* Stack images vertically on small screens */
}
}

ul li a:hover {
text-decoration: none;
}

/* Ensure everything stacks vertically */
html, body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100%;
margin: 0;
padding: 0;
}

br {
margin-bottom: 10px;
}

0 comments on commit c5b3dac

Please sign in to comment.