add lazyload

This commit is contained in:
2019-09-27 17:22:14 +02:00
parent b857814072
commit 8a48a6ac0f
10 changed files with 369 additions and 342 deletions
@@ -8,9 +8,10 @@
margin-right: $margI;
}
.card-header{
z-index: 999;
display: inline-flex;
width: 100%;
margin-bottom: $marg;
// margin-bottom: $marg;
& > * {
margin-right: $marg;
}
+292 -255
View File
@@ -1,273 +1,310 @@
@media screen and (max-width: 1024px){
body{
#start{
width: $Wi80-m;
#text_figli{
#item_list{
.card{
width: $Wi33-m;
#item{
width: calc(300% + (.5rem * 2));
}
}
}
}
}
}
}
@media screen and (max-width: 414px) {
body{
#start{
width: $Wi-m;
#text_figli{
p{
font-size: 1.7rem;
line-height: 2.3rem;
}
#item_list{
width: $Wi-m;
.card{
width: $Wi-m;
width: calc(100%);
margin: 0 0 0.5rem 0;
#item{
width: calc(100% + (.5rem * 3));
width: 100%;
padding: 1rem;
.content-title{
h2{
font-size: 2rem !important;
line-height: 2.5rem !important;
}
& > div{
line-height: 1rem;
}
}
}
}
}
}
}
}
// typographie
header{
a{
font-size: $txt-figli-m;
line-height: $Flhome-m;
}
}
.home{
p{
font-size: $txt-figli-m!important;
line-height: $Flhome-m!important;
}
}
.other_projets{
h3{
font-size: $txt-figli-m;
}
}
// mep
header{
width: calc( #{$Wi-m} - (#{$marg} * 2) );
}
body{
#start{
width: calc( #{$Wi-m} - (#{$marg} * 2) );
}
&:not(.home){
#start{
margin-top: $Flhome;
}
}
.sidebar-right{
display: none;
}
}
#item_list{
.card{
width: calc( #{$Wi-m} )!important;
&:nth-child(odd){
margin-right: 0;
}
.card-header{
margin-bottom: $marg;
& > * {
margin-right: $marg;
}
}
}
}
.other_projets{
margin-top: $margI;
.card{
width: $Wi-m;
&:nth-child(-1n+3){
margin-right: 0;
}
}
}
}
@media screen and (max-width: 768px) and (orientation: portrait) {
body{
#start{
width: $Wi80-m;
#text_figli{
#item_list{
.card{
width: $Wi33-m;
#item{
width: calc(300% + (.5rem * 3));
}
}
}
}
}
}
// typographie
header{
a{
font-size: 2.5rem;
line-height: 3rem;
}
}
// .home{
// p{
// font-size: $txt-figli-t!important;
// line-height: $Flhome-t!important;
// }
// }
.other_projets{
h3{
font-size: $txt-figli-t;
}
}
body{
&:not(.home){
#start{
margin-top: 5rem;
}
}
}
#item_list{
.card{
width: calc( #{$Wi-m} );
&:nth-child(odd){
margin-right: 0;
}
.card-header{
margin-bottom: $marg;
& > * {
margin-right: $marg;
}
}
}
}
}
@media screen and (max-width: 812px) and (orientation: landscape) {
// typographie
header{
a{
font-size: $txt-figli-m;
line-height: $Flhome-m;
}
}
.home{
p{
font-size: $txt-figli-m!important;
line-height: $Flhome-m!important;
}
}
.other_projets{
h3{
font-size: $txt-figli-m;
}
}
// mep
header{
width: calc( #{$Wi-m} - (#{$marg} * 2) );
}
body{
#start{
width: calc( #{$Wi-m} - (#{$marg} * 2) );
}
&:not(.home){
#start{
margin-top: $Flhome;
}
}
.sidebar-right{
display: none;
}
}
#item_list{
.card{
width: $Wi50;
&:nth-child(odd){
margin-right: $margI;
}
}
}
.other_projets{
.card{
width: $Wi33;
&:nth-child(-1n+3){
margin-right: $marg;
}
}
}
}
@media screen and (max-width: 910px) and (orientation: portrait) {
header{
a{
font-size: 2.5rem;
line-height: 3rem;
}
}
.home{
p{
font-size: $txt-figli-t!important;
line-height: $Flhome-t!important;
}
}
.other_projets{
h3{
font-size: $txt-figli-t;
}
}
body{
&:not(.home){
#start{
margin-top: 5rem;
}
}
}
}
@media screen and (max-width: 660px) {
header{
a{
font-size: $txt-figli-m;
line-height: $Flhome-m;
}
}
.home{
p{
font-size: $txt-figli-m!important;
line-height: $Flhome-m!important;
}
}
.other_projets{
h3{
font-size: $txt-figli-m;
}
}
body{
&:not(.home){
#start{
margin-top: $Flhome;
}
}
}
}
@media screen and (max-width: 1024px) and (orientation: landscape) {
body{
#start{
width: $Wi80-m;
#text_figli{
#item_list{
.card{
width: $Wi33-m;
#item{
width: calc(300% + (.5rem * 3));
}
}
}
}
}
}
}
// body{
// #start{
// width: $Wi-m;
// #text_figli{
// #item_list{
// .card{
// width: $Wi-m;
// #item{
// width: calc(100% + (.5rem * 3));
// }
// }
// }
// }
// }
// }
//
//
// // typographie
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// // mep
// header{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
//
// body{
// #start{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// .sidebar-right{
// display: none;
// }
// }
//
// #item_list{
// .card{
// width: calc( #{$Wi-m} )!important;
// &:nth-child(odd){
// margin-right: 0;
// }
// .card-header{
// margin-bottom: $marg;
// & > * {
// margin-right: $marg;
// }
// }
// }
// }
//
// .other_projets{
// margin-top: $margI;
// .card{
// width: $Wi-m;
// &:nth-child(-1n+3){
// margin-right: 0;
// }
// }
// }
// }
//
// @media screen and (max-width: 768px) {
// body{
// #start{
// width: $Wi80-m;
// #text_figli{
// #item_list{
// .card{
// width: $Wi33-m;
// #item{
// width: calc(300% + (.5rem * 3));
// }
// }
// }
// }
// }
// }
//
// // typographie
// header{
// a{
// font-size: 2.5rem;
// line-height: 3rem;
// }
// }
// // .home{
// // p{
// // font-size: $txt-figli-t!important;
// // line-height: $Flhome-t!important;
// // }
// // }
// .other_projets{
// h3{
// font-size: $txt-figli-t;
// }
// }
//
// body{
// &:not(.home){
// #start{
// margin-top: 5rem;
// }
// }
// }
//
// #item_list{
// .card{
// width: calc( #{$Wi-m} );
// &:nth-child(odd){
// margin-right: 0;
// }
// .card-header{
// margin-bottom: $marg;
// & > * {
// margin-right: $marg;
// }
// }
// }
// }
// }
//
// @media screen and (max-width: 812px) and (orientation: landscape) {
// // typographie
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// // mep
// header{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
//
// body{
// #start{
// width: calc( #{$Wi-m} - (#{$marg} * 2) );
// }
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// .sidebar-right{
// display: none;
// }
// }
//
// #item_list{
// .card{
// width: $Wi50;
// &:nth-child(odd){
// margin-right: $margI;
// }
// }
// }
//
// .other_projets{
// .card{
// width: $Wi33;
// &:nth-child(-1n+3){
// margin-right: $marg;
// }
// }
// }
// }
//
// @media screen and (max-width: 910px) and (orientation: portrait) {
// header{
// a{
// font-size: 2.5rem;
// line-height: 3rem;
// }
// }
// .home{
// p{
// font-size: $txt-figli-t!important;
// line-height: $Flhome-t!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-t;
// }
// }
// body{
// &:not(.home){
// #start{
// margin-top: 5rem;
// }
// }
// }
// }
//
// @media screen and (max-width: 660px) {
// header{
// a{
// font-size: $txt-figli-m;
// line-height: $Flhome-m;
// }
// }
// .home{
// p{
// font-size: $txt-figli-m!important;
// line-height: $Flhome-m!important;
// }
// }
// .other_projets{
// h3{
// font-size: $txt-figli-m;
// }
// }
//
// body{
// &:not(.home){
// #start{
// margin-top: $Flhome;
// }
// }
// }
// }
//
@@ -41,7 +41,7 @@ body{
}
a{
display: block;
border-radius: 15px;
border-radius: 5px;
overflow: auto;
img{
filter: grayscale(1);
@@ -53,6 +53,8 @@ body{
padding: $marg;
flex-wrap: wrap;
display: none;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
& > *{
font-size: 0.8rem;
line-height: 1rem;
@@ -70,17 +72,18 @@ body{
.card-header{
display: inline-flex;
position: absolute;
transform: translateY(-100%);
// transform: translateY(-100%);
bottom: 0;
}
}
&:last-of-type{
vertical-align: baseline!important;
}
#item{
width: calc( 500% + ( #{$marg} * 5) );
width: calc( 500% + ( #{$marg} * 4) );
padding: 2rem;
margin-top: $marg;
border-radius: 15px;
border-radius: 5px;
.content-title{
margin: 0 auto 0 auto;
display: flex;