Prevent avatar images from being selected

This commit is contained in:
Ruan 2015-08-11 09:32:08 +02:00
parent 003293c527
commit b9483aa6d3
4 changed files with 14 additions and 5 deletions

12
includes/css/custom.css Normal file
View File

@ -0,0 +1,12 @@
body {
padding-top: 70px;
}
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@ -1,3 +0,0 @@
body {
padding-top: 70px;
}

View File

@ -4,7 +4,7 @@
<meta name="author" content="LiteBans">
<link rel="shortcut icon" href="includes/img/minecraft.ico">
<link href="includes/css/bootstrap.css" rel="stylesheet">
<link href="includes/css/navbar-fixed-top.css" rel="stylesheet">
<link href="includes/css/custom.css" rel="stylesheet">
<style>
html {
background-image: url('includes/img/377759.png');

View File

@ -45,7 +45,7 @@ class Page {
}
function get_avatar($name) {
return "<img src='https://cravatar.eu/avatar/$name/25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;'/>$name";
return "<img class='noselect' src='https://cravatar.eu/avatar/$name/25' style='margin-bottom:5px;margin-right:5px;border-radius:2px;'/>$name";
}
function get_name($uuid) {