1. Ahmad Khayyat
  2. mezzanine-pagedown

Commits

Ahmad Khayyat  committed 047c2a0

RTL styling for preview

  • Participants
  • Parent commits c0eab40
  • Branches default

Comments (0)

Files changed (1)

File mezzanine_pagedown/static/mezzanine_pagedown/css/pagedown.css

View file
  • Ignore whitespace
 .wmd-preview table { border-collapse: collapse; border-spacing: 0; }
 .wmd-preview td { vertical-align: top; }
 
+/* RTL */
+
+html[dir="rtl"] .wmd-preview ul,
+html[dir="rtl"] .wmd-preview ol,
+html[dir="rtl"] .wmd-preview dd {
+    padding: 0 2em 0 0 !important;
+}
+
+html[dir="rtl"] .wmd-preview blockquote{
+    padding-left: 0;
+    padding-right: 1em;
+}
+
+pre { direction: ltr; }