292 lines
5.3 KiB
SCSS
Vendored
292 lines
5.3 KiB
SCSS
Vendored
.actus--main,
|
|
.actus--row,
|
|
.actus--col,
|
|
.actus--first
|
|
{flex-direction: column;}
|
|
|
|
.actus--first, .actus--chrono{
|
|
padding: 20px;
|
|
margin: 10px 0 20px;
|
|
background-color: $blanc;
|
|
}
|
|
|
|
.actus--first{
|
|
// todo : à implémenter
|
|
// display: none;
|
|
// height: 14vw;
|
|
|
|
.first--img {
|
|
overflow: hidden;
|
|
min-width: 14vw;
|
|
padding-bottom: 20px;
|
|
text-align: center;
|
|
|
|
img{
|
|
// width: 100%;
|
|
// max-width: fit-content;
|
|
max-width: 79vw;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.first--txt{
|
|
width:100%;
|
|
|
|
.post-subtitle{
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
.post--txt{margin-bottom: .5vw;}
|
|
.second-btn{margin: 10px 0;}
|
|
}
|
|
.first--btn{align-items: flex-end;}
|
|
}
|
|
|
|
.actus--footer{
|
|
justify-content: space-between;
|
|
padding: 0 40px 30px;
|
|
|
|
> div{
|
|
padding-top: 20px;
|
|
border-color: $blanc;
|
|
border-top: 2px solid;
|
|
}
|
|
|
|
.prev, .next{
|
|
position: relative;
|
|
width: 5%;
|
|
}
|
|
|
|
.prev a, .next a{
|
|
position: absolute;
|
|
bottom: 0;
|
|
font-size: 4rem;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.prev a{
|
|
left: 0;
|
|
}
|
|
.next a{right: 0;}
|
|
|
|
.pagination{
|
|
width: 100%;
|
|
justify-content: center;
|
|
|
|
span{
|
|
background-color: $second-btn-color;
|
|
color: #000;
|
|
}
|
|
|
|
a,span{
|
|
padding: 0.2rem .5rem;
|
|
border-radius: 50%;
|
|
margin: 0 20px;
|
|
font-size: 2rem;
|
|
line-height: 2rem;
|
|
transition: background-color .5s;
|
|
|
|
&:hover{
|
|
background-color: $second-btn-color;
|
|
color: #000;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.actus--chrono{
|
|
grid-gap: 10px;
|
|
grid-template-rows: min-content auto auto;
|
|
|
|
.post-title{
|
|
// height: 4rem;
|
|
-webkit-line-clamp: 3;
|
|
}
|
|
|
|
.chrono--txt{
|
|
height: 5rem;
|
|
-webkit-line-clamp: 4;
|
|
}
|
|
div:last-child{text-align: right;}
|
|
}
|
|
|
|
// PAGE SINGLE ACTU
|
|
.news--main{
|
|
display: grid;
|
|
grid-gap: 10px;
|
|
grid-template-areas:
|
|
"title"
|
|
"img"
|
|
"txt"
|
|
"img-r";
|
|
|
|
.news--img{
|
|
grid-area: img;
|
|
|
|
img{
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.news--img-r{
|
|
grid-area: img-r;
|
|
|
|
img{
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
.post-title{grid-area: title;}
|
|
.news--txt{grid-area: txt;}
|
|
}
|
|
|
|
// *************************
|
|
// ** **
|
|
// *************************
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// ** **
|
|
// *******
|
|
|
|
@media only screen and (width >=768px) {
|
|
// PAGE SINGLE ACTU
|
|
.news--main{
|
|
grid-template-areas:
|
|
"img title title"
|
|
"img txt txt"
|
|
". . img-r";
|
|
// grid-template-columns: 340px auto 780px;
|
|
grid-template-rows: 1.5em auto;
|
|
|
|
.news--img{
|
|
margin: 0 20px 10px 0;
|
|
float: left;
|
|
}
|
|
|
|
.news--img-r{
|
|
justify-self: flex-end;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ****
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// ****
|
|
|
|
@media only screen and (width >=1024px) {
|
|
.actus--col{
|
|
width:50%;
|
|
}
|
|
|
|
.actus--row, .actus--first{
|
|
flex-direction: row;
|
|
}
|
|
|
|
.actus--row{
|
|
> div{flex: 1;}
|
|
> div:not(:first-child){margin-left: 20px;}
|
|
}
|
|
|
|
.actus--first{
|
|
height: 14vw;
|
|
// & > div{flex: 1;}
|
|
> div:not(:first-child){margin-left: 20px;}
|
|
|
|
.first--img{
|
|
padding-bottom: 0;
|
|
text-align: initial;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: initial;
|
|
}
|
|
}
|
|
|
|
.first--txt{
|
|
grid-template-rows: min-content auto auto;
|
|
|
|
div{text-align: left;}
|
|
.post--txt{-webkit-line-clamp: 6;}
|
|
.second-btn{margin: 0;}
|
|
}
|
|
}
|
|
|
|
.actus--chrono .post-title {
|
|
-webkit-line-clamp: 2;
|
|
}
|
|
|
|
.actus--footer{
|
|
.prev, .next{
|
|
position: relative;
|
|
flex: 1;
|
|
}
|
|
|
|
.prev a::after, .next a::before{
|
|
position: absolute;
|
|
top: 50%;
|
|
width: max-content;
|
|
font-size: 1rem;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.prev a::after{
|
|
left: calc(100% + 10px);
|
|
content: " Résultats précédents";
|
|
}
|
|
|
|
.next a::before{
|
|
right: calc(100% + 10px);
|
|
content: "Résultats suivants ";
|
|
}
|
|
|
|
.prev a, .next a{
|
|
font-size: 1.5rem;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.pagination{
|
|
a,span{
|
|
padding: 0.2rem .5rem;
|
|
font-size: 1rem;
|
|
line-height: 1rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ********
|
|
// * ***** *
|
|
// * * * *
|
|
// *** * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * *
|
|
// * **************
|
|
// * *
|
|
// *****************
|
|
@media only screen and (width >= 1440px) {
|
|
.news--main {
|
|
grid-template-columns: 340px auto 780px;
|
|
}
|
|
}
|