changeset 2809:870ac800e15a

add support for userstyles classes to basic theme
author RogerHaase <haaserd@gmail.com>
date Mon, 06 Oct 2014 08:49:25 -0700
parents f7adf5b6c5ab
children 1839da8e279e
files MoinMoin/themes/basic/static/css/theme.css MoinMoin/themes/basic/static/custom-less/theme.less MoinMoin/themes/basic/static/custom-less/userstyles.css MoinMoin/themes/modernized/static/css/stylus/userstyles.css MoinMoin/themes/modernized/static/css/theme.css
diffstat 5 files changed, 105 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/static/css/theme.css	Sun Oct 05 21:47:58 2014 -0700
+++ b/MoinMoin/themes/basic/static/css/theme.css	Mon Oct 06 08:49:25 2014 -0700
@@ -5934,6 +5934,77 @@
   /* to align text with big graphic */
 }
 /* end of admonitions.css */
+/* start of userstyles - css clases that are defined for use in wiki markup: {{{#!wiki solid  */
+.comment {
+  color: #555;
+  background-color: #DDF;
+}
+.red {
+  background-color: #FCC;
+}
+.green {
+  background-color: #CFC;
+}
+.blue {
+  background-color: #CCF;
+}
+.yellow {
+  background-color: #FFF29F;
+}
+.orange {
+  background-color: #FFD59B;
+}
+.solid {
+  border: 2px solid #000;
+  padding: 2px;
+  clear: both;
+}
+.dashed {
+  border: 2px dashed #AEBDCC;
+  padding: 2px;
+  clear: both;
+}
+.dotted {
+  border: 2px dotted #AEBDCC;
+  padding: 2px;
+  clear: both;
+}
+.left {
+  text-align: left;
+}
+.center {
+  text-align: center;
+}
+.right {
+  text-align: right;
+}
+.justify {
+  text-align: justify;
+}
+.monospaced {
+  font-family: monospace;
+}
+/* position transcluded image or object - the left, center, right rules in userstyles are compatible with the rules below */
+.moin-item-wrapper.left {
+  float: left;
+}
+.moin-item-wrapper.center {
+  width: 100%;
+  text-align: center;
+}
+.moin-item-wrapper.right {
+  float: right;
+}
+.moin-item-wrapper.middle {
+  vertical-align: middle;
+}
+.moin-item-wrapper.top {
+  vertical-align: top;
+}
+.moin-item-wrapper.bottom {
+  vertical-align: bottom;
+}
+/* end of userstyles */
 /* start of pygments colorful.css */
 .hll {
   background-color: #ffffcc;
--- a/MoinMoin/themes/basic/static/custom-less/theme.less	Sun Oct 05 21:47:58 2014 -0700
+++ b/MoinMoin/themes/basic/static/custom-less/theme.less	Mon Oct 06 08:49:25 2014 -0700
@@ -13,6 +13,8 @@
 @import (less) "admonitions.css";
 /* end of admonitions.css */
 
+@import (less) "userstyles.css";
+
 /* start of pygments colorful.css */
 @import (less) "colorful.css";
 /* end of pygments colorful.css */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/static/custom-less/userstyles.css	Mon Oct 06 08:49:25 2014 -0700
@@ -0,0 +1,24 @@
+/* start of userstyles - css clases that are defined for use in wiki markup: {{{#!wiki solid  */
+.comment { color: #555; background-color: #DDF; }
+.red { background-color: #FCC; }
+.green { background-color: #CFC; }
+.blue { background-color: #CCF; }
+.yellow { background-color: #FFF29F; }
+.orange { background-color: #FFD59B; }
+.solid { border: 2px solid #000; padding: 2px; clear: both; }
+.dashed { border: 2px dashed #AEBDCC; padding: 2px; clear: both; }
+.dotted { border: 2px dotted #AEBDCC; padding: 2px; clear: both; }
+.left { text-align: left; }
+.center { text-align: center; }
+.right { text-align: right; }
+.justify { text-align: justify; }
+.monospaced { font-family: monospace; }
+
+/* position transcluded image or object - the left, center, right rules in userstyles are compatible with the rules below */
+.moin-item-wrapper.left { float: left; }
+.moin-item-wrapper.center { width: 100%; text-align: center; }
+.moin-item-wrapper.right { float: right; }
+.moin-item-wrapper.middle { vertical-align: middle; }
+.moin-item-wrapper.top { vertical-align: top; }
+.moin-item-wrapper.bottom { vertical-align: bottom; }
+/* end of userstyles */
--- a/MoinMoin/themes/modernized/static/css/stylus/userstyles.css	Sun Oct 05 21:47:58 2014 -0700
+++ b/MoinMoin/themes/modernized/static/css/stylus/userstyles.css	Mon Oct 06 08:49:25 2014 -0700
@@ -1,4 +1,4 @@
-/* wiki parser  - no moin- prefix added here, these classes are used within pages: {{{#!wiki solid  */
+/* start of userstyles - css clases that are defined for use in wiki markup: {{{#!wiki solid  */
 .comment { color: #555; background-color: #DDF; }
 .red { background-color: #FCC; }
 .green { background-color: #CFC; }
@@ -13,10 +13,12 @@
 .right { text-align: right; }
 .justify { text-align: justify; }
 .monospaced { font-family: monospace; }
-/* position image or object - the left, center, right rules above are either consistent with or harmless to the rules below */
+
+/* position transcluded image or object - the left, center, right rules in userstyles are compatible with the rules below */
 .moin-item-wrapper.left { float: left; }
 .moin-item-wrapper.center { width: 100%; text-align: center; }
 .moin-item-wrapper.right { float: right; }
 .moin-item-wrapper.middle { vertical-align: middle; }
 .moin-item-wrapper.top { vertical-align: top; }
 .moin-item-wrapper.bottom { vertical-align: bottom; }
+/* end of userstyles */
--- a/MoinMoin/themes/modernized/static/css/theme.css	Sun Oct 05 21:47:58 2014 -0700
+++ b/MoinMoin/themes/modernized/static/css/theme.css	Mon Oct 06 08:49:25 2014 -0700
@@ -231,7 +231,7 @@
 #moin-content div.warning{background-image:url("../img/admonitions/warning.png")}
 #moin-content div.attention,#moin-content div.caution,#moin-content div.danger,#moin-content div.error,#moin-content div.hint,#moin-content div.important,#moin-content div.note,#moin-content div.tip,#moin-content div.warning{color:#000;background-color:#f9f9ff;background-repeat:no-repeat;background-position:8px 8px;border:1px solid #e5e5e5;margin:10px 30px 10px 30px;min-height:64px;padding-left:64px;clear:both;}
 #moin-content div.attention p,#moin-content div.caution p,#moin-content div.danger p,#moin-content div.error p,#moin-content div.hint p,#moin-content div.important p,#moin-content div.note p,#moin-content div.tip p,#moin-content div.warning p{margin-top:8px}
-/* wiki parser  - no moin- prefix added here, these classes are used within pages: {{{#!wiki solid  */
+/* start of userstyles - css clases that are defined for use in wiki markup: {{{#!wiki solid  */
 .comment { color: #555; background-color: #DDF; }
 .red { background-color: #FCC; }
 .green { background-color: #CFC; }
@@ -246,13 +246,15 @@
 .right { text-align: right; }
 .justify { text-align: justify; }
 .monospaced { font-family: monospace; }
-/* position image or object - the left, center, right rules above are either consistent with or harmless to the rules below */
+
+/* position transcluded image or object - the left, center, right rules in userstyles are compatible with the rules below */
 .moin-item-wrapper.left { float: left; }
 .moin-item-wrapper.center { width: 100%; text-align: center; }
 .moin-item-wrapper.right { float: right; }
 .moin-item-wrapper.middle { vertical-align: middle; }
 .moin-item-wrapper.top { vertical-align: top; }
 .moin-item-wrapper.bottom { vertical-align: bottom; }
+/* end of userstyles */
 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}