[gimp-web/header-image] Add !important to js generated style for bg img
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/header-image] Add !important to js generated style for bg img
- Date: Mon, 16 Jan 2017 19:30:35 +0000 (UTC)
commit cf284ca5de575e19f568c7de24415495c4bba206
Author: Pat David <patdavid gmail com>
Date: Mon Jan 16 13:30:17 2017 -0600
Add !important to js generated style for bg img
content/js/rotateHeaderImg.js | 3 +--
themes/newgimp/static/css/home.css | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/content/js/rotateHeaderImg.js b/content/js/rotateHeaderImg.js
index 84036e1..8cbd14b 100644
--- a/content/js/rotateHeaderImg.js
+++ b/content/js/rotateHeaderImg.js
@@ -54,11 +54,10 @@ himage.onload = function() {
// on the head element (CSP might bork if we do it to the
// element directly as inline (even after load?)
var css = "#banner {"
- css += "background-image: linear-gradient(rgba(44,52,80,0.5), rgba(44,62,80,0.5)), url('"+ image.file
+"');";
+ css += "background-image: linear-gradient(rgba(44,52,80,0.5), rgba(44,62,80,0.5)), url('"+ image.file
+"') !important;";
css += "background-size: cover;";
css += "background-position: 0;";
css += "}";
-
var style = document.createElement('style');
style.type = 'text/css';
style.appendChild( document.createTextNode( css ) );
diff --git a/themes/newgimp/static/css/home.css b/themes/newgimp/static/css/home.css
index a287465..042d8e0 100644
--- a/themes/newgimp/static/css/home.css
+++ b/themes/newgimp/static/css/home.css
@@ -15,7 +15,7 @@ p {
#banner {
min-height: 350px;
background-image: linear-gradient(rgba(44,52,80,0.5), rgba(44,62,80,0.5));
- /*background-image: linear-gradient(rgba(44,52,80,0.5), rgba(44,62,80,0.5)),
url('/theme/images/Niagara_Rainbow.jpg'); */
+ /* background-image: linear-gradient(rgba(44,52,80,0.5), rgba(44,62,80,0.5)),
url('/theme/images/Niagara_Rainbow.jpg'); */
background-position: 0;
background-size: cover;
transition: opacity 0.5s ease;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]