Skip to content

Commit

Permalink
Remove padding from .figure
Browse files Browse the repository at this point in the history
Added clamp to make the gap responsive
  • Loading branch information
martinlschumann committed Dec 19, 2024
1 parent e9f52e1 commit e3fe203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ styles: true
.image-container {
display: grid; /* Use grid layout */
grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
gap: 20px; /* Add spacing between rows and columns */
gap: clamp(5px, 2vw, 15px);; /* Add spacing between rows and columns */
margin: 0; /* Remove default margin */
padding: 0; /* Remove default padding */
}

.figure {
margin: 0;
}

.image {
width: 100%;
height: auto
Expand Down

0 comments on commit e3fe203

Please sign in to comment.