ldc-jeusselin/resources/sass/work.scss
2021-02-17 09:41:42 +01:00

352 lines
No EOL
7.2 KiB
SCSS
Vendored

// :root{
// --padding: 20px;
// }
// .work--head,
// .work--head--detail,
// .milaceanous--bloc,
// .work--main,
// .bloc--txt,
// .business,
// .sub-business,
// .geo--bloc,
// .silo,
// .silo--blocs,
// .logistique,
// .sub-logistique,
// .logistique--bloc
// {flex-direction: column;}
.work--head--detail{
grid-template-areas:
"img"
"txt"
"mov";
grid-gap: 10px;
justify-content: center;
align-items: flex-start;
& > div {
flex: 1;
min-width: 200px;
max-width: 300px;
}
.detail--img{grid-area: img;}
.detail--txt{grid-area: txt;}
.detail--video{grid-area: mov;}
}
.work--head,
.milaceanous--bloc,
.work--main,
.bloc--txt,
.business,
.sub-business,
.geo--bloc,
.silo,
.silo--blocs,
.logistique,
.sub-logistique,
.logistique--bloc
{flex-direction: column;}
.work--head--detail{
img{width: 100%;}
}
.work--head--detail > div:nth-child(n){
margin-top: 10px;
}
.detail--video{
position: relative;
grid-template-columns: repeat(3, 1fr);
grid-gap: 10px;
.video-player{
position: absolute;
left: 0; top: 0;
width: 100%;
height: fit-content;
background-color: #fff;
padding: 20px;
z-index: -1;
opacity: 0;
transition: opacity .3s;
&.active{
opacity: 1;
z-index: 10;
}
img{
width: 100%;
margin-bottom: 10px;
}
#close-cross{
position: absolute;
right: 0; top: 0;
transform: translate(50%, -50%);
width: 25px; height: 25px;
.cls-1{transition: .5s;}
&:hover {
cursor: pointer;
.cls-1{fill: #000;}
}
}
}
}
.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,
.sub-business,
.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;}
.sub-business, .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%;
margin-right: 10px;
}
.bloc--txt{
& > 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;}
// & div:not(:first-child){margin-left: 20px;}
}
.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%;}
.geo--bloc{
position: relative;
left: 20%;
max-width: 60%;
}
.logistique--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(3, 1fr);
grid-template-areas: "img txt mov";
grid-gap: 2rem;
// & > div{max-width: unset;}
// & div:not(:first-child){margin-left: 20px;}
}
.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,
.sub-business,
.silo,
.logistique--bloc{
padding: 20px;
}
.milaceanous--bloc{
max-width: unset;
width: 100%;
}
.sub-business, .silo--blocs{
flex-direction: row;
}
.geo--bloc{
position: unset;
padding: 0 20px 0 0;
margin-bottom: 0;
border-top: none;
height: fit-content;
max-width: unset;
flex: 1;
}
.geo--bloc:not(:first-child){
border-top: none;
}
.geo--bloc:nth-child(odd){
padding-left: 20px;
border-left: 1px solid $primary;
}
.geo--bloc:first-child{
padding-left: 0;
border-left: none;
}
.silo--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;}
}
.logistique--bloc .bloc--img{
width: 33%;
}
}
// ********
// * ***** *
// * * * *
// *** * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * *
// * **************
// * *
// *****************
@media only screen and (min-width: 1440px) {
}
// ************
// * ****
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * *
// ********* *
// ***** *
// ** *
// ** *
// ********** *
// * ***
// ************
@media only screen and (min-width: 1920px) {
}