This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes marquee { | |
0% { | |
transform: translateX(0); | |
} | |
100% { | |
transform: translateX(var(--offset)); | |
} | |
} | |
.c-marquee { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.c-cover { | |
--height: 100dvh; | |
--safe-height: var(--height, var(--vh)); | |
--container-width: 100vw; | |
--container-height: var(--safe-height); | |
position: relative; | |
height: var(--container-height); | |
overflow: hidden; | |
width: var(--container-width); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class DOMAnimations { | |
/** | |
* Masque un élément avec un effet de repli | |
* @param {HTMLElement} element | |
* @param {Number} duration | |
* @returns {Promise<boolean>} | |
*/ | |
static slideUp(element, duration = 500) { | |
return new Promise((resolve) => { | |
if (window.getComputedStyle(element).display === 'none') resolve() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register CPT | |
* | |
* @return void | |
*/ | |
function clean($string) { | |
$string = str_replace(' ', '-', $string); // Replaces all spaces with hyphens. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.card { | |
$t: &; | |
&:hover { | |
#{$t}__title { | |
color: green; | |
} | |
} | |
&__title { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$bps: ( | |
"phone-sm": 20em /* 320px; dinosaurs */, | |
"phone-md": 23.4em /* 374; Iphone 6 -> X */, | |
"phone-lg": 25.625em /* 410px; Pixel2 */, | |
"tab": 37.5em /* 600x; Ipad */, | |
"tab-lg": 56.25em /* 900px; Ipad Pro:1024px */, | |
"desktop": 75em /* 1200px */, | |
"desktop-md": 85.375em /* 1366px; 1366×768 (8.44%) */, | |
"desktop-lg": 112.5em /* 1800px; 1920×1080 (8.89%) */, | |
"desktop-xlg": 137.5em /* 2200px, 4K 24"+ */, |