From 7e352f9ac4987185b8fbb01cf523294e62c06958 Mon Sep 17 00:00:00 2001 From: Robert Luxemburg Date: Sun, 22 Feb 2015 17:09:33 +0530 Subject: [PATCH] some non-webkit css --- static/js/gridView.js | 1 + static/js/statusIcon.js | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/static/js/gridView.js b/static/js/gridView.js index 4611aa7..154d8fb 100644 --- a/static/js/gridView.js +++ b/static/js/gridView.js @@ -36,6 +36,7 @@ oml.ui.gridView = function() { backgroundImage: '-webkit-linear-gradient(top, ' + color.slice(0, 2).map(function(rgba) { return 'rgba(' + rgba.join(', ') + ')'; }).join(', ') + ')', + MozTransform: 'rotate(45deg)', WebkitTransform: 'rotate(45deg)' }) .html( diff --git a/static/js/statusIcon.js b/static/js/statusIcon.js index 307c140..fa8c3b8 100644 --- a/static/js/statusIcon.js +++ b/static/js/statusIcon.js @@ -2,8 +2,6 @@ oml.ui.statusIcon = function(user, index) { - // FIXME: not only '-webkit' - var status = getStatus(user), that = Ox.Element({ tooltip: Ox._({ @@ -65,10 +63,14 @@ oml.ui.statusIcon = function(user, index) { transferring: 'Transferring' }[status]) }).css({ - background: '-webkit-linear-gradient(bottom, ' + color + ')', + background: '-moz-linear-gradient(bottom, ' + color + ')' + }).css({ + background: '-webkit-linear-gradient(bottom, ' + color + ')' }); that.find('div').css({ - background: '-webkit-linear-gradient(top, ' + color + ')', + background: '-moz-linear-gradient(top, ' + color + ')' + }).css({ + background: '-webkit-linear-gradient(top, ' + color + ')' }); }