Started building a Website with Jekyll based on Uno-Timeline
This commit is contained in:
commit
2d9e9fb878
103 changed files with 6371 additions and 0 deletions
42
_sass/_gallery.scss
Normal file
42
_sass/_gallery.scss
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
.gallery-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem; /* space between image and text */
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.gallery-item img:hover {
|
||||
transform: scale(1.03);
|
||||
}
|
||||
|
||||
.gallery-item .info {
|
||||
flex: 1; /* text takes remaining width */
|
||||
}
|
||||
|
||||
.gallery-item .info h3 {
|
||||
margin: 0;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.gallery-item .info p {
|
||||
margin: 0.3rem 0 0;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.gallery-item img {
|
||||
max-width: 220px; /* never wider than 150px */
|
||||
width: 100%; /* scale down proportionally */
|
||||
height: auto; /* keep aspect ratio */
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0; /* don’t let flexbox shrink it */
|
||||
transition: transform 0.2s ease;
|
||||
display: block; /* remove any inline gap issues */
|
||||
margin-right: 35px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue