Commit cc7762e0 by frances botsford

Merge pull request #7593 from jolyonb/jolyonb/inline-div

CSS: Fixing spans inside inline divs (capa)
parents 35503ebd 0c05f005
// capa - styling // capa - styling
// ==================== // ====================
// Table of Contents // Table of Contents
// * +Variables - Capa // * +Variables - Capa
// * +Extends - Capa // * +Extends - Capa
// * +Mixins - Status Icon - Capa // * +Mixins - Status Icon - Capa
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
// * +Problem - Image Input Overrides // * +Problem - Image Input Overrides
// +Variables - Capa // +Variables - Capa
// ==================== // ====================
$annotation-yellow: rgba(255,255,10,0.3); $annotation-yellow: rgba(255,255,10,0.3);
$color-copy-tip: rgb(100,100,100); $color-copy-tip: rgb(100,100,100);
$correct: $green-d1; $correct: $green-d1;
$incorrect: $red; $incorrect: $red;
// +Extends - Capa // +Extends - Capa
// ==================== // ====================
// Duplicated from _mixins.scss due to xmodule compilation, inheritance issues // Duplicated from _mixins.scss due to xmodule compilation, inheritance issues
%use-font-awesome { %use-font-awesome {
font-family: FontAwesome; font-family: FontAwesome;
...@@ -36,9 +36,9 @@ $incorrect: $red; ...@@ -36,9 +36,9 @@ $incorrect: $red;
} }
// +Mixins - Status Icon - Capa // +Mixins - Status Icon - Capa
// ==================== // ====================
@mixin status-icon($color: $gray, $fontAwesomeIcon: "\f00d"){ @mixin status-icon($color: $gray, $fontAwesomeIcon: "\f00d"){
&:after { &:after {
@extend %use-font-awesome; @extend %use-font-awesome;
@include margin-left(17px); @include margin-left(17px);
...@@ -49,7 +49,7 @@ $incorrect: $red; ...@@ -49,7 +49,7 @@ $incorrect: $red;
} }
// +Resets - Deprecate Please // +Resets - Deprecate Please
// ==================== // ====================
h2 { h2 {
margin-top: 0; margin-top: 0;
margin-bottom: ($baseline*0.75); margin-bottom: ($baseline*0.75);
...@@ -123,7 +123,7 @@ div.problem-progress { ...@@ -123,7 +123,7 @@ div.problem-progress {
} }
// +Problem - Base // +Problem - Base
// ==================== // ====================
div.problem { div.problem {
@media print { @media print {
display: block; display: block;
...@@ -141,7 +141,7 @@ div.problem { ...@@ -141,7 +141,7 @@ div.problem {
} }
// +Problem - Choice Group // +Problem - Choice Group
// ==================== // ====================
div.problem { div.problem {
.choicegroup { .choicegroup {
@include clearfix(); @include clearfix();
...@@ -163,7 +163,7 @@ div.problem { ...@@ -163,7 +163,7 @@ div.problem {
@include status-icon($correct, "\f00c"); @include status-icon($correct, "\f00c");
border: 2px solid $correct; border: 2px solid $correct;
// keep green for correct answers on hover. // keep green for correct answers on hover.
&:hover { &:hover {
border-color: $correct; border-color: $correct;
} }
...@@ -173,7 +173,7 @@ div.problem { ...@@ -173,7 +173,7 @@ div.problem {
@include status-icon($incorrect, "\f00d"); @include status-icon($incorrect, "\f00d");
border: 2px solid $incorrect; border: 2px solid $incorrect;
// keep red for incorrect answers on hover. // keep red for incorrect answers on hover.
&:hover { &:hover {
border-color: $incorrect; border-color: $incorrect;
} }
...@@ -206,10 +206,10 @@ div.problem { ...@@ -206,10 +206,10 @@ div.problem {
} }
} }
// +Problem - Status Indicators // +Problem - Status Indicators
// ==================== // ====================
// Summary status indicators shown after the input area // Summary status indicators shown after the input area
div.problem { div.problem {
.indicator-container { .indicator-container {
...@@ -240,8 +240,8 @@ div.problem { ...@@ -240,8 +240,8 @@ div.problem {
} }
// +Problem - Misc, Unclassified Mess // +Problem - Misc, Unclassified Mess
// ==================== // ====================
div.problem { div.problem {
ol.enumerate { ol.enumerate {
li { li {
&:before { &:before {
...@@ -422,7 +422,7 @@ div.problem { ...@@ -422,7 +422,7 @@ div.problem {
background: #f1f1f1; background: #f1f1f1;
} }
} }
} }
// Hides equation previews in symbolic response problems when printing // Hides equation previews in symbolic response problems when printing
[id^='display'].equation { [id^='display'].equation {
...@@ -577,6 +577,12 @@ div.problem { ...@@ -577,6 +577,12 @@ div.problem {
} }
} }
div.inline {
> span {
display: inline;
}
}
ul { ul {
margin-bottom: lh(); margin-bottom: lh();
margin-left: .75em; margin-left: .75em;
...@@ -699,10 +705,10 @@ div.problem { ...@@ -699,10 +705,10 @@ div.problem {
} }
// +Problem - Text Input, Numerical Input // +Problem - Text Input, Numerical Input
// ==================== // ====================
.problem { .problem {
.capa_inputtype.textline, .inputtype.formulaequationinput { .capa_inputtype.textline, .inputtype.formulaequationinput {
input { input {
@include box-sizing(border-box); @include box-sizing(border-box);
border: 2px solid $gray-l4; border: 2px solid $gray-l4;
...@@ -723,7 +729,7 @@ div.problem { ...@@ -723,7 +729,7 @@ div.problem {
// CASE: incorrect answer // CASE: incorrect answer
> .incorrect { > .incorrect {
input { input {
border: 2px solid $incorrect; border: 2px solid $incorrect;
} }
...@@ -734,8 +740,8 @@ div.problem { ...@@ -734,8 +740,8 @@ div.problem {
// CASE: correct answer // CASE: correct answer
> .correct { > .correct {
input { input {
border: 2px solid $correct; border: 2px solid $correct;
} }
...@@ -747,7 +753,7 @@ div.problem { ...@@ -747,7 +753,7 @@ div.problem {
// CASE: unanswered // CASE: unanswered
> .unanswered { > .unanswered {
input { input {
border: 2px solid $gray-l4; border: 2px solid $gray-l4;
} }
...@@ -760,7 +766,7 @@ div.problem { ...@@ -760,7 +766,7 @@ div.problem {
// +Problem - Option Input (Dropdown) // +Problem - Option Input (Dropdown)
// ==================== // ====================
.problem { .problem {
.inputtype.option-input { .inputtype.option-input {
margin: (-$baseline/2) 0 $baseline; margin: (-$baseline/2) 0 $baseline;
...@@ -781,8 +787,8 @@ div.problem { ...@@ -781,8 +787,8 @@ div.problem {
} }
// +Problem - CodeMirror // +Problem - CodeMirror
// ==================== // ====================
div.problem { div.problem {
.CodeMirror { .CodeMirror {
border: 1px solid black; border: 1px solid black;
...@@ -836,7 +842,7 @@ div.problem { ...@@ -836,7 +842,7 @@ div.problem {
} }
// +Problem - Actions // +Problem - Actions
// ==================== // ====================
div.problem .action { div.problem .action {
margin-top: $baseline; margin-top: $baseline;
...@@ -877,8 +883,8 @@ div.problem .action { ...@@ -877,8 +883,8 @@ div.problem .action {
} }
// +Problem - Misc, Unclassified Mess Part 2 // +Problem - Misc, Unclassified Mess Part 2
// ==================== // ====================
div.problem { div.problem {
hr { hr {
float: none; float: none;
clear: both; clear: both;
...@@ -907,7 +913,7 @@ div.problem { ...@@ -907,7 +913,7 @@ div.problem {
padding: lh(); padding: lh();
border: 1px solid $gray-l3; border: 1px solid $gray-l3;
} }
.detailed-solution { .detailed-solution {
> p:first-child { > p:first-child {
@extend %t-strong; @extend %t-strong;
...@@ -1159,7 +1165,7 @@ div.problem { ...@@ -1159,7 +1165,7 @@ div.problem {
// +Problem - Rubric // +Problem - Rubric
// ==================== // ====================
div.problem { div.problem {
.rubric { .rubric {
tr { tr {
...@@ -1216,7 +1222,7 @@ div.problem { ...@@ -1216,7 +1222,7 @@ div.problem {
} }
// +Problem - Annotation // +Problem - Annotation
// ==================== // ====================
div.problem { div.problem {
.annotation-input { .annotation-input {
margin: 0 0 1em 0; margin: 0 0 1em 0;
...@@ -1318,7 +1324,7 @@ div.problem { ...@@ -1318,7 +1324,7 @@ div.problem {
} }
// +Problem - Choice Text Group // +Problem - Choice Text Group
// ==================== // ====================
div.problem { div.problem {
.choicetextgroup { .choicetextgroup {
@extend .choicegroup; @extend .choicegroup;
......
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