Commits

Roger Haase committed cb2f379

CSS fixup: add moin- prefix; delete unused; subdue styling for error messages and TOC box shadow

Comments (0)

Files changed (4)

MoinMoin/converter/highlight.py

                         new_childs.append(text)
 
                         text = child[match.start():match.end()]
-                        attrib = {html.class_: 'highlight'}
+                        attrib = {html.class_: 'moin-highlight'}
                         e = moin_page.strong(attrib=attrib, children=[text])
                         new_childs.append(e)
 

MoinMoin/converter/html_out.py

                 ret = html.span(children=error)
             else:
                 ret = html.span(children=('Error', ))
-            ret.set(html.class_, 'error')
+            ret.set(html.class_, 'moin-error')
             return ret
 
         # XXX: Move handling of namespace-less attributes into emeraldtree
                 ret = html.p(children=error)
             else:
                 ret = html.p(children=('Error', ))
-            ret.set(html.class_, 'error')
+            ret.set(html.class_, 'moin-error')
             return ret
 
         # XXX: Move handling of namespace-less attributes into emeraldtree

MoinMoin/converter/include.py

                         loop = self.stack[self.stack.index(p_href):]
                         loop = [u'{0}'.format(ref.path[1:]) for ref in loop if ref is not None] + [page.name]
                         msg = u'Error: Transclusion loop via: ' + u', '.join(loop)
-                        attrib = {getattr(html, 'class'): 'error'}
+                        attrib = {getattr(html, 'class'): 'moin-error'}
                         strong = ET.Element(html.strong, attrib, (msg, ))
                         included_elements.append(strong)
                         continue

MoinMoin/themes/modernized/static/css/common.css

 .moin-hr6 { height: 12px; }
 
 /* eye catchers */
-.warning,
-.error { color: red; background: #888; } /* obsolete , find and change to moin-warning, moin-error */
-.moin-warning,
-.moin-error { color: red; }
-strong.highlight { background-color: #CCE0FF; padding: 1px; }
+.moin-error { color: red; background: #DDD; padding: 4px; }
+.moin-highlight { background-color: #CCE0FF; padding: 1px; }
 
 /* pre */
 pre { border: 1px solid #AEBDCC; background-color: #F3F5F7; padding: 5px; clear: both;
 div.moin-table-of-contents { border: 1px solid #BBB; color: black; background: #fff;
             font-size: 80%; margin: 0.5em 0 0.75em 1em; padding: 0.5em 0.75em 0.5em 0.5em; text-indent: -1em;
             max-width: 35%; text-align: left; float: right; clear: both;
-            box-shadow: 10px 10px 5px #679; border-radius: 15px; }
+            box-shadow: 3px 3px 6px #679; border-radius: 15px; }
 .moin-table-of-contents ol { margin: 0; padding: 0 0 0 .92em; }
 .moin-table-of-contents li { margin: .12em 0 0 0; padding: 0; list-style:none; }
 .moin-table-of-contents-heading { font-weight: bold; padding: 0; margin: 0 0 0.5em 1em; letter-spacing: 0.075em; }