Compare commits

..

No commits in common. "a762d15768c232e6864e9a89a4e8aceae0853aaa" and "a5262a8c2b1624385b521d5baeca81f4a12043ae" have entirely different histories.

9 changed files with 5 additions and 54 deletions

View File

@ -14,8 +14,7 @@
/* ########### FORMS ############ */
@import './forms/forms.css';
@import './forms/form-contributions.css';
@import './forms/form-contact.css';
@import './forms/form_contributions.css';
/* ########### COMPONENTS ############ */
@import './components/buttons.css';

View File

@ -1,7 +1,4 @@
a[target='_blank'] {
@apply external-link;
}
.external-link {
&:after {
@apply content-[''] w-7 h-7 ml-2 inline-block;
background-image: url('../resources/img/carhop-fleche-lien-externe-full--green.svg');
@ -12,24 +9,6 @@ a[target='_blank'] {
background-position: center;
}
}
.underlined-link {
transition: all 0.3s ease-out;
@apply underline underline-offset-8;
text-decoration-thickness: 1px;
&--white {
@apply decoration-white;
&:hover {
@apply decoration-carhop-green-300;
}
}
&--green {
@apply decoration-carhop-green-700;
&:hover {
@apply decoration-carhop-green-400;
}
}
}
.internal-link-with-icon {
@apply flex items-center;
transition: transform 0.3s ease-out;

View File

@ -107,14 +107,6 @@
}
}
&--bg-dark {
.wp-block-carhop-blocks-cta {
&:after {
filter: brightness(41);
}
}
}
> *:not(.chapter-section__background) {
z-index: 2;
}

View File

@ -53,13 +53,6 @@
h3 + p {
@apply !mt-3;
}
p > a {
transition: all 0.3s ease-out;
@apply underline underline-offset-8;
text-decoration-thickness: 1px;
@apply underlined-link underlined-link--white;
}
ul {
list-style: disc;

View File

@ -2,9 +2,6 @@
/* margin-top: -30px !important; */
margin-bottom: 20px !important;
a {
@apply underlined-link underlined-link--white;
}
.gfield_description {
@apply !text-xl !font-light;
@apply max-w-3xl pb-4;

View File

@ -45,6 +45,10 @@ article > *:not(.entry-content),
}
.site-content {
a {
/* @apply underline underline-offset-4;
text-decoration-thickness: 1px; */
}
p,
li {
strong {

View File

@ -1,10 +1,8 @@
import menuInit from './header';
import initFooterShapes from './footer';
import handleScrollTop from './utilities/scroll-top';
import handleInsidePageScrolling from './page-scrolling';
window.addEventListener('load', function () {
// menuInit();
initFooterShapes();
handleScrollTop();
handleInsidePageScrolling();
});

View File

@ -1,11 +0,0 @@
export default function HandleInsidePageScrolling() {
const insideLinks = document.querySelectorAll('a[href^="#"]');
insideLinks.forEach((link) => {
link.addEventListener('click', (e) => {
e.preventDefault();
const target = document.querySelector(link.getAttribute('href'));
target?.scrollIntoView({ behavior: 'smooth' });
});
});
}