Skip to content

Commit 76761a4

Browse files
louismaximepitonjulien-deramond
authored andcommitted
Dark mode: tarteaucitron (#2339)
1 parent c5f4736 commit 76761a4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

site/assets/js/tac.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
window.addEventListener('tac.open_alert', () => {
3030
const alert = document.getElementById('tarteaucitronAlertBig')
3131

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

3434
document.getElementById('tarteaucitronCloseAlert').classList.add('btn', 'btn-sm', 'btn-secondary', 'ms-lg-2')
3535
alert.querySelector('.tarteaucitronAllow').classList.add('btn', 'btn-sm', 'btn-success', 'mx-sm-2', 'ms-lg-auto', 'my-2', 'my-lg-0')

site/assets/scss/_tarteaucitron.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[role="heading"] {
1313
display: block;
1414
font-weight: $font-weight-bold;
15-
color: $black;
15+
color: $modal-content-color;
1616
}
1717

1818
@include media-breakpoint-up(sm) {
@@ -112,15 +112,15 @@
112112
}
113113

114114
@include tac("Info") {
115-
padding: $modal-inner-padding 0;
115+
padding: $spacer * .5 0;
116116
margin-bottom: $spacer;
117117
font-weight: $font-weight-bold;
118118
}
119119

120120
@include tac("Name", true) {
121121
float: left;
122122
font-size: $font-size-sm;
123-
color: var(--bs-secondary-color);
123+
color: var(--bs-placeholder-color);
124124
}
125125

126126
@include tac("Ask", true) {
@@ -135,7 +135,7 @@
135135
@include tac("MainLine", true) {
136136
padding-bottom: $spacer;
137137
margin-bottom: $spacer;
138-
border-bottom: $modal-content-border-width solid $gray-400;
138+
border-bottom: $modal-content-border-width solid $modal-content-border-color;
139139
}
140140

141141
@include tac("Services") {

0 commit comments

Comments
 (0)