Skip to content

Commit

Permalink
Merge pull request #40 from murad-hubib/MCKIN-7067RTLCSS
Browse files Browse the repository at this point in the history
RTL CSS for Polls & Survey
  • Loading branch information
mtyaka authored Mar 14, 2018
2 parents 1603aab + 776313f commit f4337d3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions poll/public/css/poll.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f4337d3

Please sign in to comment.