Skip to content

Commit 5505cef

Browse files
committed
fixed duplicate background-color in css
1 parent 01e81bb commit 5505cef

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

rubycon.it/_includes/speakers.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ <h3 class="text-white text-2xl font-bold">{{ speaker.full_name }}</h3>
3535
%}
3636

3737
<script>
38-
window.onload = () => {
38+
document.addEventListener('DOMContentLoaded', () => {
3939
gsap.registerPlugin(Draggable);
4040

4141
const track = document.querySelector('.speakers-track');
42-
track.innerHTML += track.innerHTML;
42+
track.innerHTML += track.innerHTML; //temporary cause few speakers
4343

4444
const contentWidth = track.scrollWidth / 2;
4545

@@ -84,6 +84,6 @@ <h3 class="text-white text-2xl font-bold">{{ speaker.full_name }}</h3>
8484
// DESKTOP hover
8585
track.addEventListener("pointerenter", () => isPaused = true);
8686
track.addEventListener("pointerleave", () => isPaused = false);
87-
}
87+
})
8888
</script>
8989

rubycon.it/assets/css/style.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ section:nth-of-type(even):not(#newsletter) {
284284
}
285285
@media screen and (max-width: 600px) {
286286
.my-card{
287-
background-color: variables.$background-secondary;
288287
width: 300px;
289288
}
290289
}

0 commit comments

Comments
 (0)