Skip to content

Commit

Permalink
Merge branch 'MDL-69395-master' of git://github.com/bmbrands/moodle i…
Browse files Browse the repository at this point in the history
…nto master
  • Loading branch information
stronk7 authored and sarjona committed Sep 17, 2020
2 parents ee8f326 + 609d8b3 commit 6e6a178
Show file tree
Hide file tree
Showing 11 changed files with 668 additions and 111 deletions.
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Expand Up @@ -2696,7 +2696,7 @@ public function render_file_picker(file_picker $fp) {
EOD;
if ($options->env != 'url') {
$html .= <<<EOD
<div id="file_info_{$client_id}" class="mdl-left filepicker-filelist border" style="position: relative">
<div id="file_info_{$client_id}" class="mdl-left filepicker-filelist" style="position: relative">
<div class="filepicker-filename">
<div class="filepicker-container">$currentfile<div class="dndupload-message">$strdndenabled <br/><div class="dndupload-arrow"></div></div></div>
<div class="dndupload-progressbars"></div>
Expand Down
1 change: 1 addition & 0 deletions theme/boost/scss/moodle.scss
Expand Up @@ -41,3 +41,4 @@ $breadcrumb-divider-rtl: "◀" !default;
@import "moodle/modal";
@import "moodle/layout";
@import "moodle/prefixes";
@import "moodle/atto";
6 changes: 3 additions & 3 deletions theme/boost/scss/moodle/admin.scss
Expand Up @@ -388,15 +388,15 @@
}
.admin_colourpicker .colourdialogue {
float: left;
border: 1px solid $state-info-border;
border: 1px solid $input-border-color;
}
.admin_colourpicker .previewcolour {
border: 1px solid $state-info-border;
border: 1px solid $input-border-color;
margin-left: 301px;
}

.admin_colourpicker .currentcolour {
border: 1px solid $state-info-border;
border: 1px solid $input-border-color;
margin-left: 301px;
border-top-width: 0;
}
Expand Down
23 changes: 20 additions & 3 deletions lib/editor/atto/styles.css → theme/boost/scss/moodle/atto.scss
Expand Up @@ -13,8 +13,6 @@
.editor_atto + textarea {
width: 100%;
padding: 0;
border: 1px solid #bbb;
border-top: none;
}

.editor_atto + textarea {
Expand All @@ -27,7 +25,7 @@ div.editor_atto_toolbar {
display: block;
background: #f2f2f2;
min-height: 35px;
border: 1px solid #bbb;
border: 1px solid $input-border-color;
width: 100%;
padding: 0 0 9px 0;
}
Expand Down Expand Up @@ -201,3 +199,22 @@ div.editor_atto_content:hover .atto_control {
.editor_atto + textarea {
box-sizing: border-box;
}

.editor_atto_content.form-control {
width: 100%;
border-top: 0;
}

/** Atto fields do not have form-control because that would break the layout of the editor.
So they need these extra styles to highlight the editor when there is a validation error. */
.has-danger .editor_atto_content.form-control,
.has-danger .editor_atto_content.form-control-danger {
@include form-validation-state('invalid', $form-feedback-invalid-color, $form-feedback-icon-invalid);
}

.open.atto_menu > .dropdown-menu {
display: block;
}
div.editor_atto_toolbar button .icon {
color: $gray-700;
}
6 changes: 0 additions & 6 deletions theme/boost/scss/moodle/core.scss
Expand Up @@ -2387,12 +2387,6 @@ $footer-link-color: $bg-inverse-link-color !default;
}
}

.open.atto_menu > .dropdown-menu {
display: block;
}
div.editor_atto_toolbar button .icon {
color: $gray-700;
}
.w-auto {
width: auto;
}
Expand Down
8 changes: 6 additions & 2 deletions theme/boost/scss/moodle/filemanager.scss
Expand Up @@ -36,11 +36,15 @@
min-height: 520px;
}
.file-picker .fp-navbar {
border-bottom: 1px solid #e5e5e5;
min-height: 40px;
padding: 4px;
}

.fp-navbar {
border-color: $input-border-color;
border-bottom: 0;
}

.file-picker .fp-content {
border-top: 0;
background: #fff;
Expand Down Expand Up @@ -602,7 +606,7 @@ a.ygtvspacer:hover {
.filepicker-filelist,
.filemanager-container {
min-height: 140px;
border-top: 0;
border: 1px solid $input-border-color;
}

.filemanager .fp-content {
Expand Down
18 changes: 0 additions & 18 deletions theme/boost/scss/moodle/forms.scss
Expand Up @@ -56,10 +56,6 @@
}
}

.editor_atto_content.form-control {
width: 100%;
}

#adminsettings .form-control[size] {
width: auto;
}
Expand Down Expand Up @@ -410,20 +406,6 @@ textarea[data-auto-rows] {
max-width: 30rem;
}

/** Atto fields do not have form-control because that would break the layout of the editor.
So they need these extra styles to highlight the editor when there is a validation error. */
/* stylelint-disable function-url-scheme-blacklist */
$form-icon-danger: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E") !default;
/* stylelint-enable function-url-scheme-blacklist */
.has-danger .editor_atto_content.form-control,
.has-danger .editor_atto_content.form-control-danger {
background-image: $form-icon-danger;
padding-right: ($input-padding-x * 3);
background-repeat: no-repeat;
background-position: center right 1rem;
background-size: 1.5rem;
}

// Styles for the JS file types browser provided by the "filetypes" element.
[data-filetypesbrowserbody] {
[aria-expanded="false"] > [role="group"],
Expand Down
4 changes: 3 additions & 1 deletion theme/boost/scss/preset/default.scss
Expand Up @@ -4,7 +4,7 @@ $gray-100: #f8f9fa !default;
$gray-200: #e9ecef !default;
$gray-300: #dee2e6 !default;
$gray-400: #ced4da !default;
$gray-500: #adb5bd !default;
$gray-500: #8f959e !default;
$gray-600: #6c757d !default;
$gray-700: #495057 !default;
$gray-800: #343a40 !default;
Expand Down Expand Up @@ -71,6 +71,8 @@ $custom-control-indicator-size: 1.25rem;

$input-btn-focus-color: rgba($primary, .75) !default;

$input-border-color: $gray-500 !default;

// stylelint-disable
$theme-colors: () !default;
$theme-colors: map-merge((
Expand Down

0 comments on commit 6e6a178

Please sign in to comment.