changeset 1562:1f99fc3a2c5a

Modernized theme mime-type-icons moved out of main.styl
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Tue, 24 Jul 2012 04:46:27 +0530
parents d20cb2be4ef6
children ba61130ddb2d
files MoinMoin/themes/modernized/static/css/common.css MoinMoin/themes/modernized/static/css/stylus/main.styl MoinMoin/themes/modernized/static/css/stylus/mime_type_icons.styl
diffstat 3 files changed, 107 insertions(+), 87 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/modernized/static/css/common.css	Tue Jul 24 04:45:03 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/common.css	Tue Jul 24 04:46:27 2012 +0530
@@ -95,6 +95,22 @@
 .center { text-align: center; }
 .right { text-align: right; }
 .justify { text-align: justify; }
+a.moin-www:before,a.moin-http:before,a.moin-https:before{content:url("../img/moin-www.png");margin:0 .2em;vertical-align:middle}
+a.moin-file:before,a.moin-ftp:before{content:url("../img/moin-ftp.png");margin:0 .2em;vertical-align:middle}
+a.moin-nntp:before,a.moin-news:before{content:url("../img/moin-news.png");margin:0 .2em;vertical-align:middle}
+a.moin-telnet:before,a.moin-ssh:before,a.moin-irc:before,a.moin-ircs:before{content:url("../img/moin-telnet.png");margin:0 .2em;vertical-align:middle}
+a.moin-mailto:before{content:url("../img/moin-email.png");margin:0 .2em;vertical-align:middle}
+a.moin-attachment:before{content:url("../img/moin-attach.png");margin:0 .2em;vertical-align:middle}
+a.moin-interwiki:before{content:url("../img/moin-inter.png");margin:0 .2em;vertical-align:middle}
+a.moin-action:before{content:url("../img/moin-action.png");margin:0 .2em;vertical-align:middle}
+a.moin-mime-text:before{content:url("../img/moin-text.png");margin:0 .2em;vertical-align:middle}
+a.moin-mime-image:before{content:url("../img/moin-image.png");margin:0 .2em;vertical-align:middle}
+a.moin-mime-audio:before{content:url("../img/moin-audio.png");margin:0 .2em;vertical-align:middle}
+a.moin-mime-video:before{content:url("../img/moin-video.png");margin:0 .2em;vertical-align:middle}
+a.moin-mime-application:before{content:url("../img/moin-application.png");margin:0 .2em;vertical-align:middle}
+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}
 html{color:#000;font-family:sans-serif}
 div,p{margin:1em 0}
 sub{vertical-align:sub}
@@ -314,22 +330,6 @@
 ul.moin-tags li.weight7{font-size:160%}
 ul.moin-tags li.weight8{font-size:180%}
 ul.moin-tags li.weight9{font-size:200%}
-a.moin-www:before,a.moin-http:before,a.moin-https:before{content:url("../img/moin-www.png");margin:0 .2em}
-a.moin-file:before,a.moin-ftp:before{content:url("../img/moin-ftp.png");margin:0 .2em}
-a.moin-nntp:before,a.moin-news:before{content:url("../img/moin-news.png");margin:0 .2em}
-a.moin-telnet:before,a.moin-ssh:before,a.moin-irc:before,a.moin-ircs:before{content:url("../img/moin-telnet.png");margin:0 .2em}
-a.moin-mailto:before{content:url("../img/moin-email.png");margin:0 .2em}
-a.moin-attachment:before{content:url("../img/moin-attach.png");margin:0 .2em}
-a.moin-interwiki:before{content:url("../img/moin-inter.png");margin:0 .2em}
-a.moin-action:before{content:url("../img/moin-action.png");margin:0 .2em}
-a.moin-mime-text:before{content:url("../img/moin-text.png");margin:0 .2em}
-a.moin-mime-image:before{content:url("../img/moin-image.png");margin:0 .2em}
-a.moin-mime-audio:before{content:url("../img/moin-audio.png");margin:0 .2em}
-a.moin-mime-video:before{content:url("../img/moin-video.png");margin:0 .2em}
-a.moin-mime-application:before{content:url("../img/moin-application.png");margin:0 .2em}
-a.moin-mime-pdf:before{content:url("../img/moin-pdf.png");margin:0 .2em}
-a.moin-mime-package:before{content:url("../img/moin-package.png");margin:0 .2em}
-a.moin-mime-drawing:before{content:url("../img/moin-drawing.png");margin:0 .2em}
 #moin-flash{margin:0}
 .moin-flash{margin:0;padding:6px 6px 6px 38px;background-color:#f0f2f5;border-bottom:1px solid #ccc;background-repeat:no-repeat;background-position:16px center}
 .moin-flash-hint{background-image:url("../img/smileys/idea.png")}
--- a/MoinMoin/themes/modernized/static/css/stylus/main.styl	Tue Jul 24 04:45:03 2012 +0530
+++ b/MoinMoin/themes/modernized/static/css/stylus/main.styl	Tue Jul 24 04:46:27 2012 +0530
@@ -15,6 +15,9 @@
 // user styles used by moin wiki parser (and maybe others) like red/green/solid/dashed/comment...
 @import "userstyles.css"
 
+// mime type icons
+@import "mime_type_icons"
+
 html
   color: black
   font-family: sans-serif
@@ -978,77 +981,6 @@
 ul.moin-tags li.weight9
   font-size: 200%
 
-a.moin-www:before,
-a.moin-http:before,
-a.moin-https:before
-  content: url(../img/moin-www.png)
-  margin: 0 0.2em
-
-a.moin-file:before,
-a.moin-ftp:before
-  content: url(../img/moin-ftp.png)
-  margin: 0 0.2em
-
-a.moin-nntp:before,
-a.moin-news:before
-  content: url(../img/moin-news.png)
-  margin: 0 0.2em
-
-a.moin-telnet:before,
-a.moin-ssh:before,
-a.moin-irc:before,
-a.moin-ircs:before
-  content: url(../img/moin-telnet.png)
-  margin: 0 0.2em
-
-a.moin-mailto:before
-  content: url(../img/moin-email.png)
-  margin: 0 0.2em
-
-a.moin-attachment:before
-  content: url(../img/moin-attach.png)
-  margin: 0 0.2em
-
-a.moin-interwiki:before
-  content: url(../img/moin-inter.png)
-  margin: 0 0.2em
-
-a.moin-action:before
-  content: url(../img/moin-action.png)
-  margin: 0 0.2em
-
-a.moin-mime-text:before
-  content: url(../img/moin-text.png)
-  margin: 0 0.2em
-
-a.moin-mime-image:before
-  content: url(../img/moin-image.png)
-  margin: 0 0.2em
-
-a.moin-mime-audio:before
-  content: url(../img/moin-audio.png)
-  margin: 0 0.2em
-
-a.moin-mime-video:before
-  content: url(../img/moin-video.png)
-  margin: 0 0.2em
-
-a.moin-mime-application:before
-  content: url(../img/moin-application.png)
-  margin: 0 0.2em
-
-a.moin-mime-pdf:before
-  content: url(../img/moin-pdf.png)
-  margin: 0 0.2em
-
-a.moin-mime-package:before
-  content: url(../img/moin-package.png)
-  margin: 0 0.2em
-
-a.moin-mime-drawing:before
-  content: url(../img/moin-drawing.png)
-  margin: 0 0.2em
-
 #moin-flash
   margin: 0
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/modernized/static/css/stylus/mime_type_icons.styl	Tue Jul 24 04:46:27 2012 +0530
@@ -0,0 +1,88 @@
+// mime type icons added before respective mime types
+
+a.moin-www:before,
+a.moin-http:before,
+a.moin-https:before
+  content: url(../img/moin-www.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-file:before,
+a.moin-ftp:before
+  content: url(../img/moin-ftp.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-nntp:before,
+a.moin-news:before
+  content: url(../img/moin-news.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-telnet:before,
+a.moin-ssh:before,
+a.moin-irc:before,
+a.moin-ircs:before
+  content: url(../img/moin-telnet.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mailto:before
+  content: url(../img/moin-email.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-attachment:before
+  content: url(../img/moin-attach.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-interwiki:before
+  content: url(../img/moin-inter.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-action:before
+  content: url(../img/moin-action.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-text:before
+  content: url(../img/moin-text.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-image:before
+  content: url(../img/moin-image.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-audio:before
+  content: url(../img/moin-audio.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-video:before
+  content: url(../img/moin-video.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-application:before
+  content: url(../img/moin-application.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-pdf:before
+  content: url(../img/moin-pdf.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-package:before
+  content: url(../img/moin-package.png)
+  margin: 0 0.2em
+  vertical-align: middle
+
+a.moin-mime-drawing:before
+  content: url(../img/moin-drawing.png)
+  margin: 0 0.2em
+  vertical-align: middle
\ No newline at end of file