Skip to content

Commit

Permalink
Merge pull request #3758 from NoelDeMartin/MOBILE-4340
Browse files Browse the repository at this point in the history
MOBILE-4340 quiz: Fix cloze answers rendering
  • Loading branch information
dpalou authored Jul 27, 2023
2 parents a0467da + 98866de commit 5d1ec85
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion src/theme/components/format-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ core-rich-text-editor .core-rte-editor {

input[type=radio],
input[type=checkbox] {
position: relative;
position: relative !important;

--color: var(--text-color);
--color-checked: var(--color);
Expand Down Expand Up @@ -358,6 +358,9 @@ core-rich-text-editor .core-rte-editor {
top: 2px;
}

.form-check-inline .form-check-input {
flex-shrink: 0;
}

// Atto styles
// -------------------------
Expand Down Expand Up @@ -436,6 +439,14 @@ core-rich-text-editor .core-rte-editor {
// Bootstrap 4 Styles
// -------------------------

// _reboot.scss
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}

// _media.scss
.media {
display: flex;
Expand Down Expand Up @@ -482,6 +493,44 @@ core-rich-text-editor .core-rte-editor {
}
}

// _forms.scss
.form-check {
position: relative;
display: block;
padding-left: 1.25rem;
}

.form-check-input {
position: absolute;
margin-top: .3rem;
margin-left: -1.25rem;

&[disabled] ~ .form-check-label,
&:disabled ~ .form-check-label {
color: $gray-600;
}

}

.form-check-label {
margin-bottom: 0;
}

.form-check-inline {
display: inline-flex;
align-items: center;
padding-left: 0;
margin-right: .75rem;

.form-check-input {
position: static;
margin-top: 0;
margin-right: .3125rem;
margin-left: 0;
}

}

// utilities/_align.scss
.align-baseline { vertical-align: baseline !important; } // Browser default
.align-top { vertical-align: top !important; }
Expand Down

0 comments on commit 5d1ec85

Please sign in to comment.