isotope && page agenda

This commit is contained in:
2020-09-08 23:58:13 +02:00
parent 6690a1ec7d
commit 93c5e32689
18 changed files with 372 additions and 56 deletions
@@ -87,13 +87,13 @@ function isotope() {
var $grid = $('.grid').isotope({
percentPosition: true,
masonry: {
columnWidth: '.item'
columnWidth: '.thumbnails'
},
itemSelector: '.item',
itemSelector: '.thumbnails',
stagger: 30
});
$('.filter-button-group li').on( 'click', function(evt) {
$('.cat-list li').on( 'click', function(evt) {
var filterValue = $(this).attr('data-filter');
$grid.isotope({ filter: filterValue });
});
@@ -117,7 +117,7 @@ $( document ).ready(function() {
slides();
// masonry();
// paralax();
// isotope();
isotope();
// drag();
// click_nav();
click_nav();
});
@@ -19,10 +19,26 @@
figcaption{
position: absolute;
text-align:center;
bottom: 0;
bottom: 3rem;
left: 0;
right: 0;
z-index: 999;
color: $colorWhite;
h1{
text-transform: uppercase;
font-size: 2rem;
line-height: 1.2;
}
h2{
font-size: 1.5rem;
line-height: 1.2;
}
@media screen and (min-width: 576px) {
& > * {
font-size: 2rem;
line-height: 1.2;
}
}
}
}
}
@@ -1,2 +1,3 @@
@import "header.scss";
@import "thumbnails.scss";
@import "hero.scss";
@@ -2,7 +2,9 @@
$colorWhite: white;
$colorYellow:#ffcc00;
$colorBlack:black;
$colorBlue:#009ee0ff;
$colorBlack:black;
$heightLogo: 115px;
$heightLogoHover: 100px;
@@ -32,9 +32,26 @@ li,ul,ol{
@include reset-list;
}
footer, iframe, #content{
footer, iframe{
display: none!important;
}
.wrap-btn{
margin-top: 2rem;
@media screen and (min-width: 576px) {
margin-top: 5rem;
}
a.btn{
border: 5px solid black;
transform: rotate(0deg) scale(1);
transition: 0.3s transform ease;
&:hover{
transform: rotate(-15deg) scale(1.05);
transition: 0.3s transform ease;
}
}
}
// @import "bootstrap/scss/bootstrap-grid.scss";
// @import "normalize.css/normalize.css";
@@ -0,0 +1,33 @@
&.agenda{
main{
padding-top: 10rem;
section{
&.filter{
margin-bottom: 2rem;
}
}
.cat-list{
li{
border: 5px solid black;
padding: 0.5rem 1rem;
margin-left: 1rem;
}
}
.thumbnails{
margin-bottom: 2rem;
.wrap_content{
display: flex;
flex-direction: column;
justify-content: center;
margin-top: -6rem;
height: 150px;
}
&:hover {
.wrap_content{
margin-top: -7rem;
}
}
}
}
}
@@ -1,3 +1,153 @@
&.accueil{
}
main{
& > section{
&:first-of-type{
padding-top: 5rem;
}
padding: 2.5rem 0;
@media screen and (min-width: 576px) {
&:first-of-type{
padding-top: 10rem;
}
padding: 5rem 0;
}
h4{
font-size: 1.2rem;
line-height: 1.2;
@media screen and (min-width: 576px) {
font-size: 1.5rem;
line-height: 1.2;
}
}
&#section_proch{
& > div{
& > .row{
justify-content: center;
}
}
.thumbnails{
.wrap_content{
margin-top: -6rem;
}
&:hover {
.wrap_content{
margin-top: -7rem;
}
}
}
}
&#section_projets{
.projets{
h3{
text-align: center;
color: red;
}
& > div{
border:10px solid red;
padding: 1rem;
h4{
font-size: 1rem;
line-height: 1.2;
color: red;
}
& > div{
p{
&:last-of-type{
margin-bottom: 0;
}
}
}
}
&:not(:last-of-type){
margin-bottom: 2rem;
}
}
}
&#section_tpsF{
& > div{
& > .row{
justify-content: center;
&:first-of-type{
min-height: 500px;
}
}
}
h3{
color: $colorBlue;
font-size: 1.5rem;
line-height: 1.2;
}
article{
height: auto;
}
.date{
margin: 1rem;
span{
display: block;
color: $colorBlue;
font-size: 1rem;
line-height: 1.2;
time{
color:inherit;
}
}
}
.thumbnails{
.wrap_content{
margin-top: -10rem;
}
&:hover {
.wrap_content{
margin-top: -11rem;
}
}
}
}
}
}
a.btn{
display: block;
margin: auto;
}
}
.thumbnails{
&:not(:last-of-type){
margin-bottom: 3rem;
@media screen and (min-width: 576px) {
margin-bottom: 0rem;
}
}
figure{
position: relative;
overflow: hidden;
img{
transform: scale(1);
transition: 0.3s transform ease;
}
}
.wrap_content{
border: 5px solid black;
padding: 1rem;
position: relative;
margin: 0 2rem;
background: white;
transition: 0.2s margin-top ease;
text-align: center;
& * {
color : $colorBlack;
}
}
&:hover {
figure{
img{
transform: scale(1.1);
transition: 1s transform ease;
}
}
.wrap_content{
transition: 0.2s margin-top ease;
}
}
}
@@ -1 +1,2 @@
@import "home.scss";
@import "home.scss";
@import "agenda.scss";