changeset 1563:ba61130ddb2d

Modernized theme moin-diff moved out of main.styl
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Tue, 24 Jul 2012 04:48:18 +0530
parents 1f99fc3a2c5a
children 048495e3513c
files MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/main.styl MoinMoin/themes/modernized/static/css/stylus/moin_diff.styl
diffstat 3 files changed, 56 insertions(+), 53 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/modernized/static/css/common.css	Tue Jul 24 04:46:27 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Tue Jul 24 04:48:18 2012 +0530
@@ -111,6 +111,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}
+.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:#c0c0c0}
+.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}
 html{color:#000;font-family:sans-serif}
 div,p{margin:1em 0}
 sub{vertical-align:sub}
@@ -308,16 +318,6 @@
 .popup-body input.blank{border-color:#f00;border-width:2px}
 .popup-container{margin:0}
 #lightbox{background:#fff;opacity:.7;filter:alpha;position:absolute;left:0;top:0;width:100%;height:100%;z-index:9;margin:0;display:none}
-.moin-diff{width:99%;table-layout:fixed}
-.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:#c0c0c0}
-.moin-diff-added{background-color:#e0ffe0;vertical-align:top;width:50%;white-space:pre-wrap;word-wrap:break-word;font-family:monospace}
-.moin-diff-removed{background-color:#ffffe0;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 span{background-color:#ffff80}
 ul.moin-tags{list-style:none}
 ul.moin-tags li{display:inline}
 ul.moin-tags li.weight0{font-size:50%}
--- a/MoinMoin/themes/modernized/static/css/stylus/main.styl	Tue Jul 24 04:46:27 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/main.styl	Tue Jul 24 04:48:18 2012 +0530
@@ -18,6 +18,9 @@
 // mime type icons
 @import "mime_type_icons"
 
+// moin diff styling
+@import "moin_diff"
+
 html
   color: black
   font-family: sans-serif
@@ -902,49 +905,6 @@
   margin: 0
   display: none
 
-.moin-diff
-  width: 99%
-  table-layout: fixed
-
-.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: #C0C0C0
-
-.moin-diff-added
-  background-color: #E0FFE0
-  vertical-align: top
-  width: 50%
-  white-space: pre-wrap
-  word-wrap: break-word
-  font-family: monospace
-
-.moin-diff-removed
-  background-color: #FFFFE0
-  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 span
-  background-color: #FFFF80
-
 ul.moin-tags
   list-style: none
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/modernized/static/css/stylus/moin_diff.styl	Tue Jul 24 04:48:18 2012 +0530
@@ -0,0 +1,43 @@
+// shows changes made as a side by side difference.
+
+.moin-diff
+    width 99%
+    table-layout fixed
+
+.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 #C0C0C0
+
+.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