[gimp-web] Attempt to fix the invisible Ohloh widget by hacking its <iframe/>



commit 2d70997fa400408ecd69eba2c070f353d6aff078
Author: Michael Schumacher <schumaml gmx de>
Date:   Sat Dec 28 00:59:29 2013 +0100

    Attempt to fix the invisible Ohloh widget by hacking its <iframe/>

 develop/index.htrw    |    4 ++++
 style/fixes-ohloh.css |   22 ++++++++++++++++++++++
 style/wgo.css         |   14 --------------
 3 files changed, 26 insertions(+), 14 deletions(-)
---
diff --git a/develop/index.htrw b/develop/index.htrw
index 3694ca1..6a35f43 100755
--- a/develop/index.htrw
+++ b/develop/index.htrw
@@ -1,6 +1,10 @@
 <!--#include virtual="/includes/wgo-xhtml-init.xhtml" -->
 <title>GIMP - Development</title>
 <!--#include virtual="/includes/wgo-look-feel.xhtml" -->
+<!-- fix the ohloh widget -->
+<style type="text/css">
+ import url("/style/fixes-ohloh.css");
+</style>
 <!--#include virtual="/includes/wgo-page-init.xhtml" -->
 
 <h1>Getting Involved</h1>
diff --git a/style/fixes-ohloh.css b/style/fixes-ohloh.css
new file mode 100644
index 0000000..145dd5a
--- /dev/null
+++ b/style/fixes-ohloh.css
@@ -0,0 +1,22 @@
+/* fix the ohloh widget formatting */
+div.gadget {
+       color: black;
+       background-color: white;
+}
+
+div.gadget h3 {
+       clear: none;
+}
+
+div.gadget div {
+    clear: none ! important;
+}
+
+/* hack the ohloh iframe ;) */
+iframe {
+    background-color: #fff;
+    border-radius: 10px;
+    border: thin solid #000;
+    width: 333px ! important;
+    height: 189px ! important;
+}
\ No newline at end of file
diff --git a/style/wgo.css b/style/wgo.css
index e572066..a06c64b 100644
--- a/style/wgo.css
+++ b/style/wgo.css
@@ -697,17 +697,3 @@ iframe.FlattrButton
        margin-left: 3px;
        padding-left: 8px;
 }
-
-/* fix the ohloh widget formatting */
-div.gadget {
-       color: black;
-       background-color: white;
-}
-
-div.gadget h3 {
-       clear: none;
-}
-
-div.gadget div {
-    clear: none ! important;
-}
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]