From 033828d51c1c1e1cba3ff8f5ba777d81757f0c67 Mon Sep 17 00:00:00 2001 From: cha0s Date: Mon, 25 Jan 2021 09:00:29 -0600 Subject: [PATCH] ui: user-select: none --- app/src/react/components/project/index.scss | 15 +++++++++------ app/src/react/index.scss | 1 + app/src/react/scss/tabs.scss | 6 ++++-- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/src/react/components/project/index.scss b/app/src/react/components/project/index.scss index 534da1b..0e3f513 100644 --- a/app/src/react/components/project/index.scss +++ b/app/src/react/components/project/index.scss @@ -8,12 +8,15 @@ overflow: auto; padding: 1em; } - .m-tree > .m-node { - > .children { - margin-left: -20px; - } - > .inner { - display: none; + .m-tree { + user-select: none; + > .m-node { + > .children { + margin-left: -20px; + } + > .inner { + display: none; + } } } .m-node { diff --git a/app/src/react/index.scss b/app/src/react/index.scss index c86a487..a8b13bf 100644 --- a/app/src/react/index.scss +++ b/app/src/react/index.scss @@ -163,6 +163,7 @@ button, .button { button, input[type="checkbox"], input[type="checkbox"] + label { cursor: pointer; + user-select: none; } select { diff --git a/app/src/react/scss/tabs.scss b/app/src/react/scss/tabs.scss index c837ab1..42d3676 100644 --- a/app/src/react/scss/tabs.scss +++ b/app/src/react/scss/tabs.scss @@ -1,11 +1,13 @@ .react-tabs__tab { + background-color: #222; + color: white; border: none; border-left: 1px solid rgba(255, 255, 255, 0.1); bottom: 0; - padding: 1em; - background-color: #222; color: white; + padding: 1em; font-family: monospace; + user-select: none; &:first-child { border: none; }