index-main/assets/css/components/_modal-share.scss
Julie Blanc bd97c1c33e
All checks were successful
Deploy / Deploy to Production (push) Successful in 11s
report + harmonize panel-left
2026-01-23 17:38:08 +01:00

146 lines
3.3 KiB
SCSS
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.modal--share{
width: 240px;
padding-bottom: var(--padding-inner);
.socials{
display: block;
list-style: none;
li{
font-size: var(--fs-normal);
border-bottom: var(--border-light);
&:first-of-type{
border-top: var(--border-light);
}
a{
display: flex;
align-items: center;
gap: 2ch;
text-decoration: none;
}
.icon {
width: 16px;
height: 16px;
svg{
width: 100%;
height: 100%;
}
}
.text{
position: relative;
top: 2px;
}
}
}
.copy-link{
display: flex;
gap: 0.5ch;
padding: 0 var(--padding-inner);
height: var(--h-block);
width: 100%;
.copy-link__field{
flex-grow: 1;
display: grid;
grid-template-columns: var(--h-block) 1fr;
}
.icon{
display: flex;
width: var(--h-block);
height: 100%;
align-items: center;
justify-content: center;
position: relative;
// top: -2px;
grid-row: 1;
grid-column: 1;
}
.icon svg{
width: 12px;
}
input{
font-size: var(--fs-small);
font-family: var(--font);
background: none;
border: none;
color: var(--color-txt);
padding-top: 2px;
grid-column: 1/end;
grid-row: 1;
padding-left: var(--h-block);
padding-right: 0.5ch;
border: var(--border-light);
border-radius: var(--radius-btn);
height: var(--h-block);
&:focus{
border-color: var(--color-txt);
outline: none;
}
&.is-copied{
color: var(--color-accent)!important;
}
}
.copy-link__btn{
background-color: var(--color-txt);
color: var(--color-bg);
border-radius: var(--radius-btn);
padding: 0 1ch;
font-size: var(--fs-small);
padding-top: 2px;
white-space: nowrap;
text-align: center;
width: 8ch!important;
&::after{
content: "\00a0";
}
&:hover{
background-color: var(--color-accent);
}
}
}
}
// SHAREACTIONS --------------------------------------------------
// ----------------------------------------------------------------
#share-banner__content,
#share-banner__aside,
#share-banner__desktop{
display: none;
}
#share-banner__content ~ .modal--share,
#share-banner__aside ~ .modal--share,
#share-banner__desktop ~ .modal--share{
opacity: 0;
pointer-events: none;
transition: opacity .2s ease-in;
}
#share-banner__content:checked ~ .modal--share,
#share-banner__aside:checked ~ .modal--share,
#share-banner__desktop:checked ~ .modal--share{
opacity: 1;
pointer-events: auto;
}