ldc-jeusselin/resources/sass/work.scss
2021-05-26 10:27:40 +02:00

335 lines
7.2 KiB
SCSS
Vendored

// :root{
// --padding: 20px;
// }
.work--head,
.milaceanous--bloc,
.work--main,
.bloc--txt,
.business,
.secteur-commercial--blocs,
.geo--bloc,
.silo,
.secteur-silos--blocs,
.logistique,
.sub-logistique,
.logistique--bloc
{flex-direction: column;}
.work .fancybox{
position: relative;
&:hover div{opacity: 1;}
div{
position: absolute;
left: 0; right: 0;
/*top: 10px; */
bottom: 10px;
background: no-repeat center/contain url(../images/play.png);
opacity: 1;
transition: opacity .5s;
}
}
.work--head--detail{
grid-template-areas:
"img"
"mov";
grid-gap: 10px;
justify-content: center;
align-items: flex-start;
img{width: 100%;}
& > div {
flex: 1;
min-width: 200px;
max-width: 300px;
}
.detail--img{grid-area: img;}
.detail--txt{grid-area: txt;}
.detail--video{
grid-area: mov;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
align-items: center;
grid-gap: 10px;
height: 100%;
position: relative;
div{
width: 100%;
align-self: flex-start;
display: flex;
flex-direction: column;
a{
align-self: center;
img {
width: 100px;
}
}
p {
text-align: center;
margin: 0;
font-family: "Open_Sans";
}
p:first-child {
font-weight: bold;
}
p.function {
font-size: 0.875rem;
font-weight: normal;
}
}
}
}
.work--main{
background-color: $primary;
& > div:not(:last-child){margin-bottom: 20px;}
}
.milaceanous{
grid-template-columns: 1fr;
grid-template-areas:
"t1"
"t2"
"t3"
"t4"
"t5"
"t6"
"t7";
grid-gap: 20px;
justify-content: center;
}
.milaceanous--bloc,
.secteur-commercial--blocs,
.silo,
.logistique--bloc{
padding: 10px;
}
.milaceanous--bloc{
background-color: $blanc;
min-width: 280px;
height: fit-content;
}
.milaceanous > div:nth-child(1){grid-area: t1;}
.milaceanous > div:nth-child(2){grid-area: t2;}
.milaceanous > div:nth-child(3){grid-area: t3;}
.milaceanous > div:nth-child(4){grid-area: t4;}
.milaceanous > div:nth-child(5){grid-area: t5;}
.milaceanous > div:nth-child(6){grid-area: t6;}
.milaceanous > div:nth-child(7){grid-area: t7;}
.secteur-commercial--blocs, .silo, .logistique--bloc{
background-color: $blanc;
&:not(:last-child){margin-bottom: 20px;}
}
.geo--bloc{
padding-top: 20px;
&:not(:last-child){
margin-bottom: 20px;
}
}
.work--main .bloc--img{
align-items: center;
&:not(:last-child) {padding-bottom: 10px;}
img{
width: 100px;
border-radius: 50%;
}
.bloc--txt{
margin-left: 10px;
& > p {margin: 0;}
& p:first-child{font-weight: bold;}
& .function{
font-family: "Open_Sans";
font-size: .875rem;
font-weight: normal;
}
}
}
.business, .silo, .logistique{background-color: $blanc;}
.geo--bloc:not(:first-child)
{border-top: 1px solid $primary;}
@media only screen and (min-width:420px) {
}
// *************************
// ** **
// *************************
// ** **
// ** **
// ** **
// ** **
// ** **
// ** **
// ** **
// *******
@media only screen and (min-width:768px) {
.work--head--detail{
grid-template-columns: repeat(2, 1fr);
grid-template-areas:
//"txt txt"
"img mov";
& > div{max-width: unset;}
.detail--video a > div:not(:last-child){
height: 2vw;
}
}
.milaceanous{
grid-template-columns: repeat(2, 1fr);
grid-template-areas:
"t1 t1"
"t2 t3"
"t4 t3"
"t4 t5"
"t6 t5"
"t6 t5"
"t6 t7";
justify-items: center;
}
.milaceanous--bloc{max-width: 50%;}
.logistique--bloc, .secteur-logistique--blocs .geo--bloc {
flex-direction: row;
flex-wrap: wrap;
.paragraph-title{width: 100%;}
.bloc--img{width: 50%;}
}
}
// ****
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// ****
@media only screen and (min-width:1024px) {
.work--head--detail{
grid-template-columns: repeat(2, 1fr);
grid-template-areas: "img mov";
grid-gap: 2rem;
}
.milaceanous{
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(7, 1fr);
grid-template-areas:
"t1 t4 t6"
"t1 t4 t6"
"t2 t4 t6"
"t2 t5 t7"
"t3 t5 t7"
"t3 t5 ."
"t3 t5 .";
align-items: flex-start;
}
.milaceanous--bloc,
.secteur-commercial--blocs,
.silo,
.logistique--bloc{
padding: 20px;
}
.milaceanous--bloc{
max-width: unset;
width: 100%;
}
.secteur-commercial--blocs, .secteur-silos--blocs{
flex-direction: row;
}
.geo--bloc{
position: unset;
padding-top: 0;
// margin-bottom: 0;
height: fit-content;
max-width: unset;
flex: 1;
&:nth-child(n){
border-top: none;
}
}
.business .geo--bloc:nth-child(2),
.business .geo--bloc:nth-child(3),
.secteur-silos--blocs .geo--bloc:nth-child(2),
.secteur-silos--blocs .geo--bloc:nth-child(3),
.secteur-silos--blocs .geo--bloc:nth-child(5),
.secteur-silos--blocs .geo--bloc:nth-child(7){
padding-left: 20px;
border-left: 1px solid #fdebc2;
}
.secteur-silos--blocs {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-template-areas:
"s1 s2 s3"
"s1 s2 s3"
"s4 s5 s3"
"s6 s7 .";
.geo--bloc:nth-child(1){grid-area: s1;}
.geo--bloc:nth-child(2){grid-area: s2;}
.geo--bloc:nth-child(3){grid-area: s3;}
.geo--bloc:nth-child(4){grid-area: s4;}
.geo--bloc:nth-child(5){grid-area: s5;}
.geo--bloc:nth-child(6){grid-area: s6;}
.geo--bloc:nth-child(7){grid-area: s7;}
}
.secteur-logistique--blocs .geo--bloc .bloc--img{
width: 33%;
}
}
// ********
// * ***** *
// * * * *
// *** * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * **************
// * *
// *****************
@media only screen and (min-width: 1440px) {
}
// ************
// * ****
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * *
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * ***
// ************
@media only screen and (min-width: 1920px) {
}