From b6bd946dcd8c150ad9e052b12b9b6327a98e1930 Mon Sep 17 00:00:00 2001 From: brunosimon Date: Thu, 7 Sep 2017 14:26:46 +0200 Subject: [PATCH] :lipstick: Site > Prevent text selection --- site/src/components/alert/style.styl | 1 + site/src/components/application/style.styl | 1 + site/src/components/chat/style.styl | 9 +++++++++ site/src/components/file/style.styl | 2 ++ site/src/components/files-tree/style.styl | 1 + site/src/components/landing/style.styl | 1 + site/src/components/projects-hub/style.styl | 1 + site/src/components/versions/style.styl | 3 ++- site/src/components/viewer/style.styl | 1 + 9 files changed, 19 insertions(+), 1 deletion(-) diff --git a/site/src/components/alert/style.styl b/site/src/components/alert/style.styl index edd1c93..b08a1dc 100644 --- a/site/src/components/alert/style.styl +++ b/site/src/components/alert/style.styl @@ -6,6 +6,7 @@ width 62px height 40px background #24263A + user-select none .stroke position absolute diff --git a/site/src/components/application/style.styl b/site/src/components/application/style.styl index db24525..161b4b5 100644 --- a/site/src/components/application/style.styl +++ b/site/src/components/application/style.styl @@ -29,6 +29,7 @@ a width 290px height 80px background #393855 + user-select none a display block diff --git a/site/src/components/chat/style.styl b/site/src/components/chat/style.styl index e000975..9e8e68e 100644 --- a/site/src/components/chat/style.styl +++ b/site/src/components/chat/style.styl @@ -15,6 +15,7 @@ background #24263A font-size 14px white-space nowrap + user-select none .stroke position absolute @@ -59,6 +60,7 @@ padding-left 14px line-height 40px font-size 14px + user-select none .stroke position absolute @@ -136,11 +138,18 @@ .user-label opacity 0.7 + pointer-events none + user-select none .user-name + width 185px + padding-left 1px outline none border none + &:hover + background rgba(255, 255, 255, 0.075) + .question position absolute bottom 0 diff --git a/site/src/components/file/style.styl b/site/src/components/file/style.styl index 12d010a..6aa3901 100644 --- a/site/src/components/file/style.styl +++ b/site/src/components/file/style.styl @@ -15,6 +15,8 @@ header background #1E202F a + user-select none + &.active background #26283B diff --git a/site/src/components/files-tree/style.styl b/site/src/components/files-tree/style.styl index 8f522f5..afd5d78 100644 --- a/site/src/components/files-tree/style.styl +++ b/site/src/components/files-tree/style.styl @@ -6,6 +6,7 @@ overflow-y scroll background #26283B color #ffffff + user-select none .search display block diff --git a/site/src/components/landing/style.styl b/site/src/components/landing/style.styl index df3999b..4b10f20 100644 --- a/site/src/components/landing/style.styl +++ b/site/src/components/landing/style.styl @@ -24,6 +24,7 @@ height 100% background #2D2D49 font-family 'DINNextRoundedLTPro' + user-select none .url color #fff diff --git a/site/src/components/projects-hub/style.styl b/site/src/components/projects-hub/style.styl index 8674928..0ae74e8 100644 --- a/site/src/components/projects-hub/style.styl +++ b/site/src/components/projects-hub/style.styl @@ -8,6 +8,7 @@ background #2F2E4B color #ffffff z-index 1 + user-select none .single-project padding-left 20px diff --git a/site/src/components/versions/style.styl b/site/src/components/versions/style.styl index aab12e4..66152c3 100644 --- a/site/src/components/versions/style.styl +++ b/site/src/components/versions/style.styl @@ -5,4 +5,5 @@ width 202px bottom 0 overflow hidden - background #1E202F \ No newline at end of file + background #1E202F + user-select none \ No newline at end of file diff --git a/site/src/components/viewer/style.styl b/site/src/components/viewer/style.styl index 3ee975e..616847d 100644 --- a/site/src/components/viewer/style.styl +++ b/site/src/components/viewer/style.styl @@ -33,6 +33,7 @@ left 0 right 0 width 65px + user-select none .line position relative