from(#f6f6f6), to(#e3e3e3));
border: 1px solid #bebebe;
border-bottom-color: #a0a0a0;
+ position: relative;
+ }
+
+ div.shortcut .preview img {
+ width: 100%;
+ height: 98%;
+ cursor: pointer;
}
div.shortcut .preview.new .add {
top: -14px;
left: -14px;
background: url(res://close.png);
- position: relative;
+ position: absolute;
cursor: pointer;
+ visibility: hidden;
+ opacity: 0;
+ -webkit-transition: opacity 0.15s;
+ }
+
+ div.shortcut:hover .cross {
+ visibility: visible;
+ opacity: 1;
+ -webkit-transition-delay: 0.5s;
}
.box.added {
g_string_append_printf (markup,
"<div class=\"shortcut\" id=\"s%d\"><div class=\"preview\">"
- "<a href=\"%s\"><img style=\"width: 100%%;\" "
- "src=\"data:image/png;base64,%s\"></a><a class=\"cross\" "
- "href=\"#\" onclick='javascript:clearShortcut(\"s%d\");' ></a>"
- "</div><div class=\"title\" "
- "onclick='javascript:renameShortcut(\"s%d\");'>%s</div></div>\n",
- slot, uri, encoded, slot, slot, title);
+ "<a class=\"cross\" href=\"#\" onclick='clearShortcut(\"s%d\");'></a>"
+ "<a href=\"%s\"><img src=\"data:image/png;base64,%s\"></a>"
+ "</div><div class=\"title\" onclick='renameShortcut(\"s%d\");'>%s</div></div>\n",
+ slot, slot, uri, encoded, slot, title);
g_free (title);
g_free (encoded);
{
g_string_append_printf (markup,
"<div class=\"shortcut\" id=\"s%d\"><div class=\"preview new\">"
- "<a class=\"add\" href=\"#\" onclick='javascript:return "
- " getAction(\"s%d\");'></a></div>"
- "<div class=\"title\">%s</div></div>\n",
+ "<a class=\"add\" href=\"#\" onclick='return getAction(\"s%d\");'></a>"
+ "</div><div class=\"title\">%s</div></div>\n",
slot, slot, _("Click to add a shortcut"));
}