Skip to content

Commit fbad4be

Browse files
feat: do not allow user to select text on webpage.
1 parent 7637f9f commit fbad4be

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

css/game.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
color: #fff;
3+
user-select: none;
34
}
45

56
.container h2 {

css/highscores.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
body {
22
color: #fff;
3+
user-select: none;
34
}
45

56
#highScoresList {

css/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
:root {
44
background-color: rgb(29, 26, 26);
5+
user-select: none;
56
}
67

78
* {

css/rating.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
body {
22
background-color: darkgray;
3+
user-select: none;
34
}

css/rules.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
body {
2+
width: 80%;
3+
margin: 0 auto;
4+
user-select: none;
5+
}
6+
17
h1 {
28
color: red;
39
}
@@ -15,11 +21,6 @@ h2 {
1521
color: green;
1622
}
1723

18-
body {
19-
width: 80%;
20-
margin: 0 auto;
21-
}
22-
2324
footer {
2425
display: flex;
2526
flex-wrap: wrap;

css/suggestion.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body {
33
background-color: #fff; /*#f6f6f6, EBEBD3, fafafa*/
44
font-family: Bungee Outline;
55
font-weight: 900;
6-
6+
user-select: none;
77
overflow: hidden;
88
animation: blur 0.5s ease-out;
99
}
@@ -325,5 +325,5 @@ body {
325325

326326
/* Track */
327327
::-webkit-scrollbar-track {
328-
background: #cccs;
328+
background: #ccc;
329329
}

css/topics.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
body {
2+
user-select: none;
3+
}
4+
15
.hide {
26
display: none;
37
/* width: 0; */

0 commit comments

Comments
 (0)