From 7139e0e4c4874257363136355319bb4cf6759fd9 Mon Sep 17 00:00:00 2001 From: Alexandre Chazal Date: Tue, 27 Sep 2022 18:35:03 +0200 Subject: [PATCH] feat(SVG): make icons non draggable and selectable --- assets/scss/style.scss | 8 ++++++++ layouts/index.html | 2 +- layouts/partials/social-icons.html | 2 +- layouts/partials/svg.html | 8 ++++---- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 7f1fb58..ffc30aa 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -965,6 +965,14 @@ a.footnote-ref { animation: toxicGlow 5s ease-in-out infinite; } +.toxicGlow img { + user-select: none; + -moz-user-select: none; + -webkit-user-drag: none; + -webkit-user-select: none; + -ms-user-select: none; +} + @keyframes toxicGlow { 0% { background-position: 80% 50%; diff --git a/layouts/index.html b/layouts/index.html index 1957615..3b1c66f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -32,7 +32,7 @@ class="toxicGlow"
All the fun lies right here
- +