gallery in home page for media queries
This commit is contained in:
parent
c5ffdd0723
commit
8d4ca91ebe
File diff suppressed because one or more lines are too long
|
@ -1,9 +1,9 @@
|
|||
.bfr_category_tags {
|
||||
font-family: $header-font-family;
|
||||
position: relative;
|
||||
top:-1rem;
|
||||
text-align: center;
|
||||
z-index: 100;
|
||||
// position: relative;
|
||||
// top:-1rem;
|
||||
// text-align: center;
|
||||
// z-index: 100;
|
||||
.tag-cloud-link::before {
|
||||
content: '#';
|
||||
// display: inline-block;
|
||||
|
@ -28,5 +28,3 @@
|
|||
display:block;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -18,16 +18,14 @@
|
|||
background-image: url('../images/biofriction-logo-moving-trans-loosy-100.gif');
|
||||
}
|
||||
|
||||
.bfr_category_tags {
|
||||
// display:flex;
|
||||
// justify-content:center;
|
||||
max-width: calc(66vw - 4rem);
|
||||
margin: 0 auto;
|
||||
a {
|
||||
display:inline-block;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
}
|
||||
// .bfr_category_tags {
|
||||
// max-width: calc(66vw - 4rem);
|
||||
// margin: 0 auto;
|
||||
// a {
|
||||
// display:inline-block;
|
||||
// margin-bottom: auto;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -166,47 +166,92 @@ $grid-column-width:$grid-row-width/$grid-column-count;
|
|||
.bfr_category_title{
|
||||
display:none;
|
||||
}
|
||||
|
||||
// homepage 2021
|
||||
.homepage-2021 { //&.main-container
|
||||
@include breakpoint(small) {
|
||||
.entry-content {
|
||||
display:flex;
|
||||
flex-flow: row;
|
||||
flex-wrap: wrap;
|
||||
|
||||
position: relative;
|
||||
& > * {
|
||||
flex-basis: 51%;
|
||||
float:left;
|
||||
clear:both;
|
||||
margin-left: $global-margin;
|
||||
}
|
||||
}
|
||||
.fp-gallery {
|
||||
flex-basis: 45%;
|
||||
max-width: 45%;
|
||||
margin-left: auto;
|
||||
position:absolute;
|
||||
top:0;
|
||||
right: $global-margin;
|
||||
right: 0;
|
||||
// .fp-gallery-item {
|
||||
// }
|
||||
// .fp-gallery-icon {
|
||||
// }
|
||||
img {
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
border-radius: $button-radius;
|
||||
}
|
||||
}
|
||||
@include breakpoint(small) {
|
||||
$homepage2021-gallery-square-side: $global-margin*8;
|
||||
$homepage2021-gallery-square-size: $homepage2021-gallery-square-side+$global-margin;
|
||||
.entry-content {
|
||||
min-height: $homepage2021-gallery-square-size*14;
|
||||
& > * {
|
||||
max-width: 55%;
|
||||
}
|
||||
}
|
||||
.fp-gallery {
|
||||
max-width: 40%;
|
||||
.fp-gallery-item {
|
||||
display:flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
width: $homepage2021-gallery-square-side;
|
||||
}
|
||||
// .fp-gallery-icon {
|
||||
// }
|
||||
img {
|
||||
height: $homepage2021-gallery-square-side;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include breakpoint(medium) {
|
||||
.fp-gallery {
|
||||
max-height: 90vw;
|
||||
overflow: hidden;
|
||||
$homepage2021-gallery-square-side: $global-margin*8;
|
||||
$homepage2021-gallery-square-size: $homepage2021-gallery-square-side+$global-margin;
|
||||
.entry-content {
|
||||
min-height: $homepage2021-gallery-square-size*7;
|
||||
& > * {
|
||||
max-width: 48%;
|
||||
}
|
||||
}
|
||||
.fp-gallery {
|
||||
max-width: 45%;
|
||||
.fp-gallery-item {
|
||||
width:40%;
|
||||
width: $homepage2021-gallery-square-side;
|
||||
}
|
||||
// .fp-gallery-icon {
|
||||
// }
|
||||
img {
|
||||
height: $homepage2021-gallery-square-side;
|
||||
}
|
||||
}
|
||||
}
|
||||
@include breakpoint(xlarge) {
|
||||
.fp-gallery {
|
||||
$homepage2021-gallery-square-side: $global-margin*9;
|
||||
$homepage2021-gallery-square-size: $homepage2021-gallery-square-side+$global-margin;
|
||||
.entry-content {
|
||||
min-height: $homepage2021-gallery-square-size*6;
|
||||
& > * {
|
||||
max-width: 48%;
|
||||
}
|
||||
}
|
||||
.fp-gallery {
|
||||
max-width: 45%;
|
||||
.fp-gallery-item {
|
||||
width:26%;
|
||||
width: $homepage2021-gallery-square-side;
|
||||
}
|
||||
// .fp-gallery-icon {
|
||||
// }
|
||||
img {
|
||||
height: $homepage2021-gallery-square-side;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue