Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from cuhacking/drag
Browse files Browse the repository at this point in the history
Disable drag and user-select on text
  • Loading branch information
Wal Wal authored Jun 7, 2019
2 parents a44fa6d + b4f0dfd commit 930b67e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,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%
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class App extends Component {

promoText() {
if (this.state.isNight)
return <img src={darkPromo} alt='cuHacking2020, coming soon.'/>;
return <img id='promo' draggable={false} src={darkPromo} alt='cuHacking2020, coming soon.'/>;
else
return <img src={lightPromo} alt='cuHacking2020, coming soon.'/>;
return <img id='promo' draggable={false} src={lightPromo} alt='cuHacking2020, coming soon.'/>;
}

render() {
Expand Down

0 comments on commit 930b67e

Please sign in to comment.