changeset 1495:9909752a8a9d

Foobar theme moin-diff styling
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Sun, 24 Jun 2012 10:21:13 +0530
parents a14d21395b9d
children ea9650bc0fd3
files MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/main.styl MoinMoin/themes/foobar/static/css/stylus/moin_diff.styl
diffstat 3 files changed, 57 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 10:16:10 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Sun Jun 24 10:21:13 2012 +0530
@@ -163,6 +163,16 @@
 a.moin-mime-pdf:before{content:url("../img/moin-pdf.png");margin:0 .2em;vertical-align:middle}
 a.moin-mime-package:before{content:url("../img/moin-package.png");margin:0 .2em;vertical-align:middle}
 a.moin-mime-drawing:before{content:url("../img/moin-drawing.png");margin:0 .2em;vertical-align:middle}
+.moin-diff{width:99%;table-layout:fixed;margin:.3em}
+.moin-diff-header{vertical-align:top;font-size:92%}
+.moin-diff-info{margin:.33em .25em}
+.moin-diff-info-value{white-space:normal}
+.moin-diff-info-caption{display:inline-block;min-width:5em}
+.moin-diff-line-number{background-color:#ffe6e6}
+.moin-diff-added{background-color:#e0ffe0;vertical-align:top;width:50%;white-space:pre-wrap;word-wrap:break-word;font-family:monospace;}
+.moin-diff-added span{background-color:#80ff80}
+.moin-diff-removed{background-color:#ffffe0;vertical-align:top;width:50%;white-space:pre-wrap;word-wrap:break-word;font-family:monospace;}
+.moin-diff-removed span{background-color:#ffff80}
 body{color:#000;background-color:#d6d5d0;font-family:sans-serif;background-image:url("../img/base.png")}
 div p{margin:.5em .2em}
 #moin-global-tray{float:left;width:16.666666666666668%;padding:.5%;overflow:hidden}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 10:16:10 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Sun Jun 24 10:21:13 2012 +0530
@@ -24,6 +24,9 @@
 // mime type icons
 @import "mime_type_icons"
 
+// moin diff styling
+@import "moin_diff"
+
 font_family = sans-serif
 main_font_size = 1em
 small_font_size = main_font_size * 0.8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/foobar/static/css/stylus/moin_diff.styl	Sun Jun 24 10:21:13 2012 +0530
@@ -0,0 +1,44 @@
+// shows changes made as a side by side difference.
+
+.moin-diff
+    width 99%
+    table-layout fixed
+    margin .3em
+
+.moin-diff-header
+    vertical-align top
+    font-size 92%
+
+.moin-diff-info
+    margin .33em .25em
+
+.moin-diff-info-value
+    white-space normal
+
+.moin-diff-info-caption
+    display inline-block
+    min-width 5em
+
+.moin-diff-line-number
+    background-color #ffe6e6
+
+.moin-diff-added
+    background-color #E0FFE0
+    vertical-align top
+    width 50%
+    white-space pre-wrap
+    word-wrap break-word
+    font-family monospace
+    span
+        background-color #80FF80
+
+.moin-diff-removed
+    background-color #FFFFE0
+    vertical-align top
+    width 50%
+    white-space pre-wrap
+    word-wrap break-word
+    font-family monospace
+    span
+        background-color #FFFF80
+    
\ No newline at end of file