Disable text selection

This commit is contained in:
Manos Katsomallos 2024-01-05 13:17:01 +02:00
parent 490557727f
commit 518a38b922

View File

@ -1,11 +1,6 @@
body, html { body, html {
scroll-behavior: smooth; scroll-behavior: smooth;
background-color: black; background-color: black;
}
* {
padding: 0;
margin: 0;
/* Disable text selection */ /* Disable text selection */
-webkit-user-select: none; /* Safari */ -webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */ -moz-user-select: none; /* Firefox */
@ -13,6 +8,11 @@ body, html {
user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Safari */ user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Safari */
} }
* {
padding: 0;
margin: 0;
}
body { body {
margin: auto; margin: auto;
max-width: 1080px; max-width: 1080px;