From 1b80c204be885588f7cbe95610e3677f2f886801 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 5 Feb 2020 16:15:42 +0100 Subject: [PATCH 1/1] Make verse numbers, footnote anchors, themes, dynamic inserts unselectable. Fixes #4006, fixes #2363. --- src/annoy/static/annoy/banner.scss | 4 ++++ src/wolnelektury/static/css/new.book.css | 8 ++++++++ src/wolnelektury/static/scss/book_text/numbering.scss | 4 ++++ src/wolnelektury/static/scss/book_text/themes.scss | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/src/annoy/static/annoy/banner.scss b/src/annoy/static/annoy/banner.scss index e0e0f62d2..b36fbe11f 100644 --- a/src/annoy/static/annoy/banner.scss +++ b/src/annoy/static/annoy/banner.scss @@ -230,6 +230,10 @@ .dynamic-insert { background: orange; margin: 1em 0; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; &.with-image { min-height: 120px; diff --git a/src/wolnelektury/static/css/new.book.css b/src/wolnelektury/static/css/new.book.css index db78b533f..38df87c21 100644 --- a/src/wolnelektury/static/css/new.book.css +++ b/src/wolnelektury/static/css/new.book.css @@ -104,6 +104,10 @@ p { padding-left: 2px; position: relative; top: -4px; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; } #footnotes { @@ -115,6 +119,10 @@ p { float: left; width: 2.5em; clear: both; + user-select: auto; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; } #footnotes div { diff --git a/src/wolnelektury/static/scss/book_text/numbering.scss b/src/wolnelektury/static/scss/book_text/numbering.scss index e31b49403..8a69e80f0 100644 --- a/src/wolnelektury/static/scss/book_text/numbering.scss +++ b/src/wolnelektury/static/scss/book_text/numbering.scss @@ -48,6 +48,10 @@ padding: 2px; text-align: center; color: #ccc; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; &:before { display: none; diff --git a/src/wolnelektury/static/scss/book_text/themes.scss b/src/wolnelektury/static/scss/book_text/themes.scss index 26ed14bdb..f56b818f6 100644 --- a/src/wolnelektury/static/scss/book_text/themes.scss +++ b/src/wolnelektury/static/scss/book_text/themes.scss @@ -80,6 +80,10 @@ nav #menu-themes { letter-spacing: 0; text-transform: none; text-decoration: none; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; @include min-screen(600px) { @include theme-showing; -- 2.20.1