Merge pull request '[11] Now viewport shows sensible number of images per row during resize. 4 images maximum with 1 image minimum' (#23) from 11-max-4 into develop
Reviewed-on: #23
This commit is contained in:
commit
aac2727acf
@ -1,13 +1,12 @@
|
|||||||
.photo-grid {
|
.photo-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: space-evenly;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
margin-left: 50px;
|
|
||||||
margin-right: 50px;
|
|
||||||
.photo-grid-thumb-container {
|
.photo-grid-thumb-container {
|
||||||
max-width: 30%;
|
margin: 10px 0;
|
||||||
margin: 10px;
|
|
||||||
.photo-grid-thumb {
|
.photo-grid-thumb {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
@ -18,3 +17,38 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 1500px) {
|
||||||
|
.photo-grid {
|
||||||
|
.photo-grid-thumb-container {
|
||||||
|
width: 23%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media only screen and (max-width: 1499px) and (min-width: 1000px) {
|
||||||
|
.photo-grid {
|
||||||
|
.photo-grid-thumb-container {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 999px) and (min-width: 700px) {
|
||||||
|
.photo-grid {
|
||||||
|
.photo-grid-thumb-container {
|
||||||
|
width: 44%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 699px) {
|
||||||
|
.photo-grid {
|
||||||
|
.photo-grid-thumb-container {
|
||||||
|
|
||||||
|
margin: 10px 10px 0 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
import PhotoGrid from '../photoDisplays/PhotoGrid';
|
import PhotoGrid from '../photoDisplays/PhotoGrid';
|
||||||
|
import './Portfolio.scss';
|
||||||
|
|
||||||
const images = [{
|
const images = [{
|
||||||
id: 0,
|
id: 0,
|
||||||
|
|||||||
6
src/sections/Portfolio.scss
Normal file
6
src/sections/Portfolio.scss
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@media only screen and (min-width: 700px) {
|
||||||
|
.portfolio-section {
|
||||||
|
padding-left: 100px;
|
||||||
|
padding-right: 100px;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user