photo gallery css update
This commit is contained in:
+27
-16
@@ -118,6 +118,18 @@ article .header {
|
|||||||
display: inline;
|
display: inline;
|
||||||
margin: 0 0.6rem;
|
margin: 0 0.6rem;
|
||||||
}
|
}
|
||||||
|
.gallery {
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo {
|
||||||
|
margin-top: 5px;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo > img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
@media (min-width: 640px) {
|
||||||
@@ -149,6 +161,21 @@ article .header {
|
|||||||
float: left;
|
float: left;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
|
.gallery {
|
||||||
|
display:flex;
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photo {
|
||||||
|
flex-basis: 50%;
|
||||||
|
}
|
||||||
|
.photo > img {
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@@ -170,19 +197,3 @@ code {
|
|||||||
padding: .1rem .3rem .2rem;
|
padding: .1rem .3rem .2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gallery {
|
|
||||||
display:flex;
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
gap: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.photo {
|
|
||||||
flex-basis: 33%;
|
|
||||||
}
|
|
||||||
.photo > img {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user