Edit
/* scss/8-project/_p_diy.scss */
#diy-sentinel {
position: absolute;
top: 0;
//width: clamp(var(--base-unit--ss),2vw,var(--base-unit));
//background: var(--black);
height: 95%;
}
.l_width-limited--space {
max-width: 1920px;
}
.p_diy {
&__spaces-strip {
display: grid;
grid-template-columns: repeat(8, 1fr);
@media screen and (min-width: $small) {
grid-template-columns: repeat(15, 1fr);
}
position: relative;
z-index: 1;
figure {
position: relative;
img {
border-radius: 50%;
}
&:hover {
img {
border-radius: 0;
}
figcaption {
display: block;
}
}
figcaption {
position: absolute;
top: 100%;
left: 0;
right: 0;
margin-top: 0;
display: none;
}
}
}
article ul {
list-style-type: disc;
}
.diy__article {
&:not(:first-of-type) {
margin-top: 25vh;
}
&:nth-child(odd) {
[itemprop="headline"] {
grid-column-start: 2;
}
[itemprop="description"] {
grid-column-start: 2;
}
.p_diy__images {
grid-row-start: 2;
//grid-row: span 2;
}
}
[itemprop="articleBody"] {
strong {
@extend h3;
}
}
}
&__logo {}
&__feature {}
&__menu {
display: grid;
grid-template-columns: repeat(3, 1fr);
width: 61%;
margin-left: auto;
margin-right: auto;
grid-gap: 2.5vw;
transition: transform .3s ease-in-out;
@media screen and (max-width: $small) {
width: 100%;
}
.drawing--is-inactive & {
transform-origin: top center;
position: fixed;
z-index: 100;
top: my-bs(1);
@media screen and (min-width: $medium) {
top: my-bs(3);
}
left: 0;
right: 0;
transform: scale(.1);
cursor: pointer;
&:after {
content: '';
position: absolute;
left: 0;
right: 0;
top: 0;
transform: scale(1.5);
transform-origin: center bottom;
aspect-ratio: 1/1;
backdrop-filter: blur(3rem);
border-radius: 50%;
}
a {
display: none;
}
li:after {
opacity: 1;
}
// grid-template-columns: repeat(5, 1fr);
}
&.is-active {
cursor: auto;
transform: scale(1);
a {
display: block;
}
}
a {
font-weight: 400;
transition: opacity .6s;
&:hover {
text-decoration: none;
}
}
li {
position: relative;
z-index: 1;
width: 100%;
//width: 50%;
&:after {
content: '';
display: block;
position: absolute;
z-index: -1;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 50%;
opacity: .81;
transition: all 1.2s ease-in-out;
}
&:hover:after {
transform-origin: 51% 51%;
transform: scale(1.2) rotateZ(360deg);
opacity: 1;
}
display: grid;
align-content: center;
justify-content: center;
aspect-ratio: 1/1;
&:nth-child(1):after {
background-color: var(--red);
}
&:nth-child(2):after {
background-color: var(--bluepale);
}
&:nth-child(3):after {
background-color: var(--green);
}
&:nth-child(4):after {
background-color: var(--pink);
}
&:nth-child(5):after {
background-color: var(--yellow);
}
&:nth-child(6) {
display: none;
color: var(--black);
&:after {
background-color: var(--white);
}
}
}
&.is-active li:nth-child(6) {
display: inherit;
cursor: pointer;
}
&--plain {
margin-top: 25vh;
margin-bottom: 25vh;
li {
margin-bottom: initial;
&:nth-child(1) {
color: var(--red);
}
&:nth-child(2) {
color: var(--bluepale);
}
&:nth-child(3) {
color: var(--green);
}
&:nth-child(4) {
color: var(--pink);
}
&:nth-child(5) {
color: var(--yellow);
}
}
}
}
// &__images--wairarapa-diy {
// figure {
// img {
// border-radius: 50%;
// transition: all .3s ease-in-out;
// }
//
// &:hover {
// z-index: 1;
//
// img {
// border-radius: 0%;
// object-fit: contain;
// transform: scale(1.5);
// }
// }
// }
// }
&__images--performance figure img {
object-fit: contain;
}
[itemprop="articleBody"] {
details {
margin-bottom: my-bs(1.5);
}
}
// .gallery {
// aspect-ratio: 2/1;
// }
.diy_section-header {
&--spaces {
@media screen and (max-width: $small) {
+svg {
transform: scale(1.33);
}
}
@media screen and (min-width: $small) {
position: absolute;
width: 100%;
}
}
}
&__footer {
padding-top: 10vh;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: var(--base-unit--b);
&__dot {
aspect-ratio: 1/1;
border-radius: 50%;
}
@media screen and (max-width: $small) {
grid-gap: 0; //var(--base-unit--ss);
&__dot {
// width: 15vw;
// margin: 0 auto;
}
}
}
}
.bg--detailing {}