Skip to content

Commit f4337d3

Browse files
authored
Merge pull request #40 from murad-hubib/MCKIN-7067RTLCSS
RTL CSS for Polls & Survey
2 parents 1603aab + 776313f commit f4337d3

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

poll/public/css/poll.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,39 @@ th.survey-answer {
373373
line-height: 24px;
374374
}
375375
}
376+
377+
/*RTL specified CSS for polls & survey*/
378+
379+
.rtl .poll-input-container, .rtl .poll-answer-text{
380+
padding-left: .5em;
381+
padding-right: 0;
382+
}
383+
384+
.rtl .poll-result-input-container input{
385+
margin: 0 0 0 .5em;
386+
}
387+
388+
.rtl .poll-answer-label{
389+
margin-left: 0;
390+
padding-left: 0;
391+
margin-right: .2em;
392+
padding-right: .5em;
393+
}
394+
395+
.rtl .poll-percent-container{
396+
padding-right: .2em;
397+
padding-left: 0;
398+
}
399+
400+
.rtl .survey-table .survey-row .survey-question{
401+
text-align: right;
402+
}
403+
404+
.rtl .survey-table tr td:first-child, .rtl .survey-table tr th:first-child{
405+
border-right: 0;
406+
border-left: 1px solid #ccc;
407+
}
408+
409+
.rtl .survey-table tr td:last-child, .rtl .survey-table tr th:last-child{
410+
border-left: 0;
411+
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def package_data(pkg, roots):
4444

4545
setup(
4646
name='xblock-poll',
47-
version='1.4.0',
47+
version='1.5.0',
4848
description='An XBlock for polling users.',
4949
packages=[
5050
'poll',

0 commit comments

Comments
 (0)