changeset 2805:b87848b2fa47

add support for mime-type icons to basic theme
author RogerHaase <haaserd@gmail.com>
date Sun, 05 Oct 2014 15:37:30 -0700
parents 11ee34c4c66a
children 4245f827f9f6
files MoinMoin/themes/basic/static/css/theme.css MoinMoin/themes/basic/static/custom-less/mime_type_icons.css MoinMoin/themes/basic/static/custom-less/theme.less MoinMoin/themes/basic/static/img/mime-type/moin-action.png MoinMoin/themes/basic/static/img/mime-type/moin-application.png MoinMoin/themes/basic/static/img/mime-type/moin-attach.png MoinMoin/themes/basic/static/img/mime-type/moin-audio.png MoinMoin/themes/basic/static/img/mime-type/moin-drawing.png MoinMoin/themes/basic/static/img/mime-type/moin-email.png MoinMoin/themes/basic/static/img/mime-type/moin-ftp.png MoinMoin/themes/basic/static/img/mime-type/moin-image.png MoinMoin/themes/basic/static/img/mime-type/moin-inter.png MoinMoin/themes/basic/static/img/mime-type/moin-news.png MoinMoin/themes/basic/static/img/mime-type/moin-package.png MoinMoin/themes/basic/static/img/mime-type/moin-pdf.png MoinMoin/themes/basic/static/img/mime-type/moin-telnet.png MoinMoin/themes/basic/static/img/mime-type/moin-text.png MoinMoin/themes/basic/static/img/mime-type/moin-video.png MoinMoin/themes/basic/static/img/mime-type/moin-www.png
diffstat 19 files changed, 109 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/theme.css	Sun Oct 05 13:53:22 2014 -0700
+++ b/MoinMoin/themes/basic/static/css/theme.css	Sun Oct 05 15:37:30 2014 -0700
@@ -6130,6 +6130,95 @@
 }
 /* Literal.Number.Integer.Long */
 /* end of pygments colorful.css */
+/* mime type icons */
+a.moin-www:before,
+a.moin-http:before,
+a.moin-https:before {
+  content: url("../img/mime-type/moin-www.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-file:before,
+a.moin-ftp:before {
+  content: url("../img/mime-type/moin-ftp.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-nntp:before,
+a.moin-news:before {
+  content: url("../img/mime-type/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/mime-type/moin-telnet.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mailto:before {
+  content: url("../img/mime-type/moin-email.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-attachment:before {
+  content: url("../img/mime-type/moin-attach.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-interwiki:before {
+  content: url("../img/mime-type/moin-inter.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-action:before {
+  content: url("../img/mime-type/moin-action.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-text:before {
+  content: url("../img/mime-type/moin-text.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-image:before {
+  content: url("../img/mime-type/moin-image.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-audio:before {
+  content: url("../img/mime-type/moin-audio.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-video:before {
+  content: url("../img/mime-type/moin-video.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-application:before {
+  content: url("../img/mime-type/moin-application.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-pdf:before {
+  content: url("../img/mime-type/moin-pdf.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-package:before {
+  content: url("../img/mime-type/moin-package.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+a.moin-mime-drawing:before {
+  content: url("../img/mime-type/moin-drawing.png");
+  margin: 0 .2em;
+  vertical-align: middle;
+}
+/* end of mime type icons */
 /* start of basic theme custom css for moin2 */
 @media screen and (min-width: 480px) {
   .moin-pull-right {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/static/custom-less/mime_type_icons.css	Sun Oct 05 15:37:30 2014 -0700
@@ -0,0 +1,18 @@
+/* mime type icons */
+a.moin-www:before,
a.moin-http:before,
a.moin-https:before {
    content: url("../img/mime-type/moin-www.png");
    margin: 0 .2em;
    vertical-align: middle;
+}
a.moin-file:before,
a.moin-ftp:before {
    content: url("../img/mime-type/moin-ftp.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-nntp:before,
a.moin-news:before {
    content: url("../img/mime-type/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/mime-type/moin-telnet.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mailto:before {
    content: url("../img/mime-type/moin-email.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-attachment:before {
    content: url("../img/mime-type/moin-attach.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-interwiki:before {
    content: url("../img/mime-type/moin-inter.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-action:before {
    content: url("../img/mime-type/moin-action.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-text:before {
    content: url("../img/mime-type/moin-text.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-image:before {
    content: url("../img/mime-type/moin-image.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-audio:before {
    content: url("../img/mime-type/moin-audio.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-video:before {
    content: url("../img/mime-type/moin-video.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-application:before {
    content: url("../img/mime-type/moin-application.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-pdf:before {
    content: url("../img/mime-type/moin-pdf.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-package:before {
    content: url("../img/mime-type/moin-package.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+a.moin-mime-drawing:before {
    content: url("../img/mime-type/moin-drawing.png");
    margin: 0 .2em;
    vertical-align: middle;
}
+/* end of mime type icons */
--- a/MoinMoin/themes/basic/static/custom-less/theme.less	Sun Oct 05 13:53:22 2014 -0700
+++ b/MoinMoin/themes/basic/static/custom-less/theme.less	Sun Oct 05 15:37:30 2014 -0700
@@ -15,6 +15,8 @@
 @import (less) "colorful.css";
 /* end of pygments colorful.css */
 
+@import (less) "mime_type_icons.css";
+
 /* start of basic theme custom css for moin2 */
 
 @grid-float-breakpoint: @screen-xs;
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-action.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-application.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-attach.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-audio.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-drawing.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-email.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-ftp.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-image.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-inter.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-news.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-package.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-pdf.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-telnet.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-text.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-video.png has changed
Binary file MoinMoin/themes/basic/static/img/mime-type/moin-www.png has changed