Fix bootstrap CSS issues in Safari and Chrome
This commit is contained in:
@ -84,7 +84,7 @@ configureEditors: function () {
|
|||||||
if (result.stderr && !result.score) {
|
if (result.stderr && !result.score) {
|
||||||
return 'card bg-danger text-white';
|
return 'card bg-danger text-white';
|
||||||
} else if (result.score < 1) {
|
} else if (result.score < 1) {
|
||||||
return 'card bg-warning';
|
return 'card bg-warning text-white';
|
||||||
} else {
|
} else {
|
||||||
return 'card bg-success text-white';
|
return 'card bg-success text-white';
|
||||||
}
|
}
|
||||||
|
@ -15,15 +15,24 @@ i.fa {
|
|||||||
pre {
|
pre {
|
||||||
background-color: #FAFAFA;
|
background-color: #FAFAFA;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: .25rem!important;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.caret {
|
span.caret {
|
||||||
margin-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btn {
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
|
padding: 0.125rem !important;
|
||||||
|
height: 1.25rem !important;
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
line-height: initial;
|
line-height: initial;
|
||||||
@ -32,6 +41,11 @@ span.caret {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-link {
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
.attribute-row + .attribute-row {
|
.attribute-row + .attribute-row {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
@ -45,10 +45,6 @@ button i.fa-spin {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
button {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
||||||
|
|
||||||
button, .btn-group {
|
button, .btn-group {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
button.btn class=local_assigns.fetch(:classes, 'btn-primary btn-lg') *local_assigns.fetch(:data, {}) disabled=local_assigns.fetch(:disabled, false) id=id title=local_assigns[:title] type='button'
|
button.btn class=local_assigns.fetch(:classes, 'btn-primary') *local_assigns.fetch(:data, {}) disabled=local_assigns.fetch(:disabled, false) id=id title=local_assigns[:title] type='button'
|
||||||
i.fa.fa-circle-o-notch.fa-spin
|
i.fa.fa-circle-o-notch.fa-spin
|
||||||
i class=(label.present? ? icon : "#{icon} m-0")
|
i class=(label.present? ? icon : "#{icon} m-0")
|
||||||
= label
|
= label
|
||||||
|
@ -40,7 +40,7 @@ div.h-100 id='output_sidebar_uncollapsed' class='d-none col-sm-12 enforce-bottom
|
|||||||
canvas#turtlecanvas.d-none width=400 height=400
|
canvas#turtlecanvas.d-none width=400 height=400
|
||||||
div.enforce-big-top-margin
|
div.enforce-big-top-margin
|
||||||
#hint
|
#hint
|
||||||
.card.bg-warning
|
.card.bg-warning.text-white
|
||||||
.card-header = t('exercises.implement.hint')
|
.card-header = t('exercises.implement.hint')
|
||||||
.card-body
|
.card-body
|
||||||
div.enforce-big-top-margin
|
div.enforce-big-top-margin
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#editor-column.col-md-12
|
#editor-column.col-md-12
|
||||||
.exercise.clearfix
|
.exercise.clearfix
|
||||||
div
|
div
|
||||||
span.badge.badge-pill.float-right.score
|
span.badge.badge-pill.badge-primary.float-right.score
|
||||||
|
|
||||||
h1 id="exercise-headline"
|
h1 id="exercise-headline"
|
||||||
i class="fa fa-chevron-down" id="description-symbol"
|
i class="fa fa-chevron-down" id="description-symbol"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
= form_for(@uef) do |f|
|
= form_for(@uef) do |f|
|
||||||
div
|
div
|
||||||
span.badge.badge-pill.float-right.score
|
span.badge.badge-pill.badge-primary.float-right.score
|
||||||
|
|
||||||
h1 id="exercise-headline"
|
h1 id="exercise-headline"
|
||||||
= t('activerecord.models.user_exercise_feedback.one') + " "
|
= t('activerecord.models.user_exercise_feedback.one') + " "
|
||||||
|
Reference in New Issue
Block a user