From 93c4045f86233c85eda8605a4b65e313983ac949 Mon Sep 17 00:00:00 2001 From: derek Date: Fri, 7 Jun 2019 19:10:38 -0400 Subject: [PATCH 1/2] Disable drag and user-select on text --- src/index.css | 7 +++++++ src/index.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/index.css b/src/index.css index 4f11a68..bc07926 100644 --- a/src/index.css +++ b/src/index.css @@ -27,6 +27,13 @@ --promo: url(assets/images/promoText-white.svg); } +.noSelect { + user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; +} + a { display: inline-flex; text-decoration: none; diff --git a/src/index.js b/src/index.js index 690b4ae..e7284f8 100644 --- a/src/index.js +++ b/src/index.js @@ -26,9 +26,9 @@ class App extends Component { promoText() { if (this.state.isNight) - return cuHacking2020, coming soon.; + return cuHacking2020, coming soon.; else - return cuHacking2020, coming soon.; + return cuHacking2020, coming soon.; } render() { From b4f0dfdbfd5a7533cf1bc724577c4a3eb492b9df Mon Sep 17 00:00:00 2001 From: Wal Date: Fri, 7 Jun 2019 19:26:24 -0400 Subject: [PATCH 2/2] Use naming convention --- src/index.css | 14 +++++++------- src/index.js | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.css b/src/index.css index bc07926..fb10a88 100644 --- a/src/index.css +++ b/src/index.css @@ -27,13 +27,6 @@ --promo: url(assets/images/promoText-white.svg); } -.noSelect { - user-select: none; - -moz-user-select: none; - -ms-user-select: none; - -webkit-user-select: none; -} - a { display: inline-flex; text-decoration: none; @@ -95,6 +88,13 @@ canvas { padding-left: 15px; } +#promo { + user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; +} + @media all and (orientation:portrait) { #content { padding-top: 10% diff --git a/src/index.js b/src/index.js index e7284f8..f147b42 100644 --- a/src/index.js +++ b/src/index.js @@ -26,9 +26,9 @@ class App extends Component { promoText() { if (this.state.isNight) - return cuHacking2020, coming soon.; + return cuHacking2020, coming soon.; else - return cuHacking2020, coming soon.; + return cuHacking2020, coming soon.; } render() {