Commits

Owen Nelson committed ed31c5c

added striped background to preview area and cleaned up some styles for admin and inline display (refs #1).

Comments (0)

Files changed (2)

wmd/static/wmd/images/stripe.gif

Added
New image

wmd/static/wmd/wmd.css

 
-.wmd-panel
+.wmd-panel,
+.wmd-button-bar,
+.wmd-preview,
+.wmd-preview img
 {
-/*	margin-left: 25%;
-	margin-right: 25%;
-	width: 50%;
-*/
-	min-width: 500px;
+    min-width: 300px;
+    max-width: 800px;
 }
 
 #wmd-editor
 	background-color: Aquamarine;
 }
 
-.wmd-button-bar 
+.wmd-button-bar
 {
+    /*
 	width: 100%;
-	/*
-	background-color: Silver; 
+	background-color: Silver;
 	*/
+    display: block;
+    clear: both;
 }
 
 .wmd-input 
 
 .wmd-preview 
 { 
-	background-color: LightGray; 
+    background: url(images/stripe.gif) repeat;
+    padding:  30px;
+    border:  dotted #ccc 1px;
+    margin-top: 10px;
+    max-width: 740px;
+
+}
+
+.wmd-preview * {
+    /* some elements have ``background: inherit`` so this prevents the background image tiling incorrectly */
+    background-image: none;
 }
 
 .wmd-output