diff --git a/src/main/java/com/commafeed/backend/feeds/FeedUtils.java b/src/main/java/com/commafeed/backend/feeds/FeedUtils.java index 55b29b04..0b4fd967 100644 --- a/src/main/java/com/commafeed/backend/feeds/FeedUtils.java +++ b/src/main/java/com/commafeed/backend/feeds/FeedUtils.java @@ -65,6 +65,10 @@ public class FeedUtils { "sub", "sup", "table", "tbody", "td", "tfoot", "th", "thead", "tr", "u", "ul"); + whitelist.addAttributes("div", "dir"); + whitelist.addAttributes("pre", "dir"); + whitelist.addAttributes("code", "dir"); + whitelist.addAttributes("table", "dir"); whitelist.addAttributes("a", "href", "title"); whitelist.addAttributes("blockquote", "cite"); whitelist.addAttributes("col", "span", "width"); diff --git a/src/main/webapp/sass/components/_entry-list.scss b/src/main/webapp/sass/components/_entry-list.scss index fa6398b7..57ddc892 100644 --- a/src/main/webapp/sass/components/_entry-list.scss +++ b/src/main/webapp/sass/components/_entry-list.scss @@ -15,6 +15,10 @@ padding-left: 25px; } +.rtl .entry-header, .rtl .entry-body-content, .rtl.entry-name { + direction: rtl; +} + #feed-accordion .entry { border-bottom: 1px solid #CCCCCC; } @@ -85,6 +89,10 @@ display: block; } +#feed-accordion .entry-header { + max-width: 650px; +} + #feed-accordion .entry-body-content { max-width: 650px; color: black; diff --git a/src/main/webapp/sass/generic/_misc.scss b/src/main/webapp/sass/generic/_misc.scss index 2b792671..f0896564 100644 --- a/src/main/webapp/sass/generic/_misc.scss +++ b/src/main/webapp/sass/generic/_misc.scss @@ -6,10 +6,6 @@ display: block; } -.rtl { - direction: rtl; -} - .bs-fb ul { margin-bottom: 0px; } diff --git a/src/main/webapp/vendor/bootstrap/bootstrap.no-icons.min.css b/src/main/webapp/vendor/bootstrap/bootstrap.no-icons.min.css index 2193839c..cd945bb3 100644 --- a/src/main/webapp/vendor/bootstrap/bootstrap.no-icons.min.css +++ b/src/main/webapp/vendor/bootstrap/bootstrap.no-icons.min.css @@ -144,6 +144,7 @@ h3 small{font-size:14px;} h4 small{font-size:14px;} .page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eeeeee;} ul,ol{padding:0;margin:0 0 10px 25px;} +.rtl ul, .rtl ol{padding:0;margin:0 25px 10px 0px;} ul ul,ul ol,ol ol,ol ul{margin-bottom:0;} li{line-height:20px;} ul.unstyled,ol.unstyled{margin-left:0;list-style:none;}