From 776313f544495b5c2fdbe2302c95ad38abe4d910 Mon Sep 17 00:00:00 2001 From: murad Date: Tue, 6 Mar 2018 17:08:34 +0500 Subject: [PATCH] RTL CSS for Polls & Survey --- poll/public/css/poll.css | 36 ++++++++++++++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/poll/public/css/poll.css b/poll/public/css/poll.css index 9cf7124..f16b8af 100644 --- a/poll/public/css/poll.css +++ b/poll/public/css/poll.css @@ -373,3 +373,39 @@ th.survey-answer { line-height: 24px; } } + + /*RTL specified CSS for polls & survey*/ + +.rtl .poll-input-container, .rtl .poll-answer-text{ + padding-left: .5em; + padding-right: 0; +} + +.rtl .poll-result-input-container input{ + margin: 0 0 0 .5em; +} + +.rtl .poll-answer-label{ + margin-left: 0; + padding-left: 0; + margin-right: .2em; + padding-right: .5em; +} + +.rtl .poll-percent-container{ + padding-right: .2em; + padding-left: 0; +} + +.rtl .survey-table .survey-row .survey-question{ + text-align: right; +} + +.rtl .survey-table tr td:first-child, .rtl .survey-table tr th:first-child{ + border-right: 0; + border-left: 1px solid #ccc; +} + +.rtl .survey-table tr td:last-child, .rtl .survey-table tr th:last-child{ + border-left: 0; +} diff --git a/setup.py b/setup.py index b3102b6..6d02332 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def package_data(pkg, roots): setup( name='xblock-poll', - version='1.4.0', + version='1.5.0', description='An XBlock for polling users.', packages=[ 'poll',