Skip to content

Commit

Permalink
Dark mode: tarteaucitron (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored and julien-deramond committed Oct 26, 2023
1 parent 937d7a2 commit 2b66fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion site/assets/js/tac.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
window.addEventListener('tac.open_alert', () => {
const alert = document.getElementById('tarteaucitronAlertBig')

alert.setAttribute('data-bs-theme', 'dark');
alert.setAttribute('data-bs-theme', 'dark')

document.getElementById('tarteaucitronCloseAlert').classList.add('btn', 'btn-sm', 'btn-secondary', 'ms-lg-2')
alert.querySelector('.tarteaucitronAllow').classList.add('btn', 'btn-sm', 'btn-success', 'mx-sm-2', 'ms-lg-auto', 'my-2', 'my-lg-0')
Expand Down
8 changes: 4 additions & 4 deletions site/assets/scss/_tarteaucitron.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[role="heading"] {
display: block;
font-weight: $font-weight-bold;
color: $black;
color: $modal-content-color;
}

@include media-breakpoint-up(sm) {
Expand Down Expand Up @@ -112,15 +112,15 @@
}

@include tac("Info") {
padding: $modal-inner-padding 0;
padding: $spacer * .5 0;
margin-bottom: $spacer;
font-weight: $font-weight-bold;
}

@include tac("Name", true) {
float: left;
font-size: $font-size-sm;
color: var(--bs-secondary-color);
color: var(--bs-placeholder-color);
}

@include tac("Ask", true) {
Expand All @@ -135,7 +135,7 @@
@include tac("MainLine", true) {
padding-bottom: $spacer;
margin-bottom: $spacer;
border-bottom: $modal-content-border-width solid $gray-400;
border-bottom: $modal-content-border-width solid $modal-content-border-color;
}

@include tac("Services") {
Expand Down

0 comments on commit 2b66fc5

Please sign in to comment.