Skip to content

Commit

Permalink
Merge branch 'MDL-70491-400_take2' of https://github.com/lucaboesch/m…
Browse files Browse the repository at this point in the history
…oodle into MOODLE_400_STABLE
  • Loading branch information
sarjona committed Nov 17, 2022
2 parents 2700e9b + 1085ea4 commit 40d67d2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/templates/form_autocomplete_selection_items.mustache
Expand Up @@ -38,10 +38,10 @@
], "noSelectionString": "No selection" }
}}
{{#items}}
<span role="option" data-value="{{value}}" aria-selected="true" class="badge badge-info mb-3 mr-1" style="font-size: 100%">
<span role="option" data-value="{{value}}" aria-selected="true" class="badge badge-secondary m-1" style="font-size: 100%">
<span aria-hidden="true">× </span>{{{label}}}
</span>
{{/items}}
{{^items}}
<span class="mb-3 mr-1">{{noSelectionString}}</span>
<span class="m-1 h-5">{{noSelectionString}}</span>
{{/items}}
3 changes: 3 additions & 0 deletions theme/boost/scss/moodle/core.scss
Expand Up @@ -2131,6 +2131,9 @@ dd:after {
width: 330px;
vertical-align: text-bottom;
margin-bottom: 0;
&[role="combobox"] {
width: auto;
}
}
}

Expand Down
5 changes: 2 additions & 3 deletions theme/boost/scss/moodle/forms.scss
Expand Up @@ -264,7 +264,7 @@ fieldset.coursesearchbox label {
vertical-align: bottom;
}
.form-autocomplete-selection {
margin: $input-padding-y-sm;
margin: $input-padding-y-sm 0;
// Padding top and bottom, plus mb-1 and the 100% lineheight.
min-height: 2 * $input-padding-y-sm + 2 * $font-size-base;
}
Expand Down Expand Up @@ -327,8 +327,7 @@ fieldset.coursesearchbox label {
}

.form-autocomplete-selection [data-active-selection=true] {
padding: 0.5em;
font-size: large;
box-shadow: $input-btn-focus-box-shadow;
}

select.form-control {
Expand Down
9 changes: 5 additions & 4 deletions theme/boost/style/moodle.css
Expand Up @@ -11590,7 +11590,9 @@ dd:after {
.inplaceeditable.inplaceeditingon input {
width: 330px;
vertical-align: text-bottom;
margin-bottom: 0; } }
margin-bottom: 0; }
.inplaceeditable.inplaceeditingon input[role="combobox"] {
width: auto; } }
.inplaceeditable.inplaceeditingon select {
margin-bottom: 0; }

Expand Down Expand Up @@ -17559,7 +17561,7 @@ fieldset.coursesearchbox label {
vertical-align: bottom; }

.form-autocomplete-selection {
margin: 0.25rem;
margin: 0.25rem 0;
min-height: 2.375rem; }

.form-autocomplete-selection [role=option] {
Expand Down Expand Up @@ -17610,8 +17612,7 @@ fieldset.coursesearchbox label {
vertical-align: middle; }

.form-autocomplete-selection [data-active-selection=true] {
padding: 0.5em;
font-size: large; }
box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.75); }

select.form-control[size], select.form-control[multiple] {
padding-right: 0; }
Expand Down
9 changes: 5 additions & 4 deletions theme/classic/style/moodle.css
Expand Up @@ -11590,7 +11590,9 @@ dd:after {
.inplaceeditable.inplaceeditingon input {
width: 330px;
vertical-align: text-bottom;
margin-bottom: 0; } }
margin-bottom: 0; }
.inplaceeditable.inplaceeditingon input[role="combobox"] {
width: auto; } }
.inplaceeditable.inplaceeditingon select {
margin-bottom: 0; }

Expand Down Expand Up @@ -17559,7 +17561,7 @@ fieldset.coursesearchbox label {
vertical-align: bottom; }

.form-autocomplete-selection {
margin: 0.25rem;
margin: 0.25rem 0;
min-height: 2.375rem; }

.form-autocomplete-selection [role=option] {
Expand Down Expand Up @@ -17610,8 +17612,7 @@ fieldset.coursesearchbox label {
vertical-align: middle; }

.form-autocomplete-selection [data-active-selection=true] {
padding: 0.5em;
font-size: large; }
box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.75); }

select.form-control[size], select.form-control[multiple] {
padding-right: 0; }
Expand Down

0 comments on commit 40d67d2

Please sign in to comment.