More subtle notice

This commit is contained in:
Arvid Andersson
2015-11-19 07:52:45 +01:00
parent 290c51f476
commit 683de95028
2 changed files with 14 additions and 27 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ $(document).ready(function() {
$(highlightedElement).addClass('copied');
setTimeout(function(){
$(highlightedElement).removeClass('copied');
},1500);
},800);
_gaq.push(['_trackEvent', 'Emojis', 'Copy', text]);
});
@@ -67,7 +67,7 @@ $(document).ready(function() {
_gaq.push(['_trackEvent', 'Emojis', 'Copy', $(this).text().trim()]);
setTimeout(function(){
$(highlightedElement).removeClass('copied');
},1500);
},800);
} else {
// copying was not successfull or denied by the user or browser preferences
// see Firefox about:config "dom.allow_cut_copy"
+12 -25
View File
@@ -17,12 +17,12 @@ a { color: inherit; }
@-webkit-keyframes fadeOut {
0% { opacity: 1; }
80% { opacity: 1; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes fadeOut {
0% { opacity: 1; }
80% { opacity: 1; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@@ -36,43 +36,30 @@ ul {
width: 330px;
margin-bottom: .5em;
cursor: pointer; }
li div.hover .name,
li:hover div .name {
color: #000;
text-shadow: 0px 0px 2px #ccc; }
li:hover {
margin-left: -4px;
margin-right: 4px;
}
li div:after {
font-family: "Helvetica Neue", helvetica, arial, sans-serif;
margin-left: 5px;
padding: 4px;
font-size: 11px;
font-weight: bold;
background-color: #EEE;
background-image: linear-gradient(to bottom, #FCFCFC 0px, #EEE 100%);
background-repeat: no-repeat;
border: 1px solid #D5D5D5;
user-select: none;
-ms-user-select: none; }
li div.clipboardError:after {
content: 'Could not copy emoji, your browser does not support it';
content: 'Your browser does not support copy';
padding-right: 20px;
color: #B00;
background-image: url('graphics/emojis/mask.png'), linear-gradient(to bottom, #FCFCFC 0px, #EEE 100%);
background-repeat: no-repeat, no-repeat;
background-position: right center, 0 0;
background-size: 17px 17px, auto;
-webkit-animation-duration: 1.5s;
-webkit-animation-name: fadeOut;
-webkit-animation-iteration-count: 1;
animation-duration: 6s;
animation-name: fadeOut;
animation-iteration-count: 1; }
li div.copied:after {
content: 'copied';
color: #0B0;
-webkit-animation-duration: 1.5s;
-webkit-animation-name: fadeOut;
-webkit-animation-iteration-count: 1;
animation-duration: 1.5s;
li div.copied:after {
content: 'Copied';
color: #63bf8a;
overflow: hidden;
animation-duration: .8s;
animation-name: fadeOut;
animation-iteration-count: 1; }
li img {