modal share checkbox
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 5s
All checks were successful
Deploy / Deploy to pre-production (push) Successful in 5s
This commit is contained in:
parent
5914178e2f
commit
ee6408f05f
6 changed files with 49 additions and 7 deletions
|
|
@ -117,4 +117,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Action
|
||||
|
||||
#share-banner{ display: none; }
|
||||
#share-banner ~ .modal--share{
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity .2s ease-in;
|
||||
}
|
||||
|
||||
#share-banner:checked ~ .modal--share{
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
|
@ -582,6 +582,21 @@ button:disabled {
|
|||
background-color: var(--color-accent);
|
||||
}
|
||||
|
||||
#share-banner {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#share-banner ~ .modal--share {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.2s ease-in;
|
||||
}
|
||||
|
||||
#share-banner:checked ~ .modal--share {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
[data-template=subscription-newsletter] .p__baseline-big,
|
||||
[data-template=thanks] .p__baseline-big,
|
||||
[data-template=support] .p__baseline-big,
|
||||
|
|
@ -1003,9 +1018,11 @@ body main {
|
|||
align-items: center;
|
||||
gap: calc(var(--spacing) * 0.25);
|
||||
}
|
||||
.page-enquete #banner--page .btn--group > button {
|
||||
.page-enquete #banner--page .btn--group > button,
|
||||
.page-enquete #banner--page .btn--group > label {
|
||||
width: 100%;
|
||||
max-width: 160px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.page-enquete #nav--page ul {
|
||||
list-style: none;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -100,9 +100,11 @@
|
|||
gap: calc(var(--spacing)*0.25);
|
||||
|
||||
|
||||
> button{
|
||||
> button,
|
||||
> label {
|
||||
width: 100%;
|
||||
max-width: 160px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
export function copyLink() {
|
||||
let buttons = document.querySelectorAll('.copy-link button');
|
||||
buttons.forEach(function (button, index) {
|
||||
console.log(button);
|
||||
let link = button.parentNode.querySelector("input").value;
|
||||
|
||||
button.addEventListener('click', function() {
|
||||
|
|
@ -16,4 +15,9 @@ export function copyLink() {
|
|||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function shareModal() {
|
||||
let buttons = document.querySelectorAll('.btn__share');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,9 +42,13 @@
|
|||
|
||||
<div class="btn--group">
|
||||
<button class="btn--bold"><a href="#">Lire le rapport</a></button>
|
||||
<button class="btn--bold-inline no-link">Partager</button>
|
||||
<div class="modal--share" w3-include-html="/components/modal-share.html"></div>
|
||||
<label for="share-banner" class="btn--bold-inline no-link">Partager</label>
|
||||
</div>
|
||||
|
||||
<input type="checkbox" id="share-banner">
|
||||
<div class="modal--share" w3-include-html="/components/modal-share.html"></div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue