Commit 7362e267 by Brian Talbot

xmodule - Capa/HTML: adds in standard text-justification class names authors can…

xmodule - Capa/HTML: adds in standard text-justification class names authors can use within table cells
parent 97b738bc
...@@ -365,7 +365,7 @@ section.problem { ...@@ -365,7 +365,7 @@ section.problem {
li { li {
display:inline; display:inline;
margin-left: 50px; margin-left: 50px;
&:first-child { &:first-child {
margin-left: 0px; margin-left: 0px;
} }
...@@ -440,6 +440,21 @@ section.problem { ...@@ -440,6 +440,21 @@ section.problem {
border-collapse: collapse; border-collapse: collapse;
table-layout: auto; table-layout: auto;
td, th {
&.cont-justified-left {
text-align: left !important; // nasty, but needed to override the bad specificity of the xmodule css selectors
}
&.cont-justified-right {
text-align: right !important; // nasty, but needed to override the bad specificity of the xmodule css selectors
}
&.cont-justified-center {
text-align: center !important; // nasty, but needed to override the bad specificity of the xmodule css selectorsstyles
}
}
th { th {
text-align: left; text-align: left;
font-weight: bold; font-weight: bold;
...@@ -780,7 +795,7 @@ section.problem { ...@@ -780,7 +795,7 @@ section.problem {
.result-correct { .result-correct {
background: url('../images/correct-icon.png') left 20px no-repeat; background: url('../images/correct-icon.png') left 20px no-repeat;
.result-actual-output { .result-actual-output {
color: #090; color: #090;
} }
...@@ -788,7 +803,7 @@ section.problem { ...@@ -788,7 +803,7 @@ section.problem {
.result-incorrect { .result-incorrect {
background: url('../images/incorrect-icon.png') left 20px no-repeat; background: url('../images/incorrect-icon.png') left 20px no-repeat;
.result-actual-output { .result-actual-output {
color: #B00; color: #B00;
} }
...@@ -857,7 +872,7 @@ section.problem { ...@@ -857,7 +872,7 @@ section.problem {
input[type=radio]:checked + label { input[type=radio]:checked + label {
background: #666; background: #666;
color: white; color: white;
} }
input[class='score-selection'] { input[class='score-selection'] {
......
// HTML component display: // HTML component display:
* { * {
line-height: 1.4em; line-height: 1.4em;
} }
...@@ -92,7 +92,7 @@ ul { ...@@ -92,7 +92,7 @@ ul {
a { a {
&:link, &:visited, &:hover, &:active { &:link, &:visited, &:hover, &:active {
color: #1d9dd9; color: #1d9dd9;
} }
} }
img { img {
...@@ -116,20 +116,31 @@ code { ...@@ -116,20 +116,31 @@ code {
} }
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
font-size: 16px; font-size: 16px;
}
th { td, th {
background: #eee; margin: 20px 0;
font-weight: bold; padding: 10px;
border: 1px solid #ccc;
font-size: 14px;
&.cont-justified-left {
text-align: left !important; // nasty, but needed to override the bad specificity of the xmodule css selectors
}
&.cont-justified-right {
text-align: right !important; // nasty, but needed to override the bad specificity of the xmodule css selectors
}
&.cont-justified-center {
text-align: center !important; // nasty, but needed to override the bad specificity of the xmodule css selectorsstyles
}
}
} }
table td, th { th {
margin: 20px 0; background: #eee;
padding: 10px; font-weight: bold;
border: 1px solid #ccc; }
text-align: left;
font-size: 14px;
}
\ No newline at end of file
...@@ -138,3 +138,15 @@ table td, th { ...@@ -138,3 +138,15 @@ table td, th {
text-align: left; text-align: left;
font-size: 14px; font-size: 14px;
} }
table td.cont-justified-left, table th.cont-justified-left {
text-align: left;
}
table td.cont-justified-right, table th.cont-justified-right {
text-align: right;
}
table td.cont-justified-center, table th.cont-justified-center {
text-align: center;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment