Skip to content

Commit

Permalink
Merge branch 'MDL-72455-master' of git://github.com/bmbrands/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov authored and stronk7 committed Oct 5, 2021
2 parents 85c1947 + 61bacfb commit a4a59a4
Show file tree
Hide file tree
Showing 20 changed files with 472 additions and 152 deletions.
3 changes: 2 additions & 1 deletion admin/tool/componentlibrary/hugo/dist/css/docs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions admin/tool/componentlibrary/hugo/dist/css/docs.css.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion admin/tool/componentlibrary/hugo/scss/_componentlibrary.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.path-admin-tool-componentlibrary {
#page-header,
#maincontent {
#maincontent,
.secondarynavigation {
display: none;
}
#region-main {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<label for="searchinput-componentlibrary">
<span class="sr-only">Search component library</span>
</label>
<input type="text" id="searchinput-componentlibrary" class="form-control" placeholder="Search"
<input type="text" id="searchinput-componentlibrary" class="form-control rounded" placeholder="Search"
aria-label="Search component library" name="clsearch" data-region="input" autocomplete="off">
<ul class="dropdown-menu w-100">
</ul>
Expand Down
20 changes: 10 additions & 10 deletions lib/templates/emoji/picker.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -39,79 +39,79 @@
>
<div class="card-header px-1 pt-1 pb-0 d-flex justify-content-between flex-shrink-0">
<button
class="btn btn-outline-secondary icon-no-margin category-button selected"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0 selected"
data-action="show-category"
data-category="Recent"
title="{{#str}} emojicategoryrecent, core {{/str}}"
>
{{#pix}} i/emojicategoryrecent, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Smileys & Emotion"
title="{{#str}} emojicategorysmileysemotion, core {{/str}}"
>
{{#pix}} i/emojicategorysmileysemotion, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="People & Body"
title="{{#str}} emojicategorypeoplebody, core {{/str}}"
>
{{#pix}} i/emojicategorypeoplebody, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Animals & Nature"
title="{{#str}} emojicategoryanimalsnature, core {{/str}}"
>
{{#pix}} i/emojicategoryanimalsnature, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Food & Drink"
title="{{#str}} emojicategoryfooddrink, core {{/str}}"
>
{{#pix}} i/emojicategoryfooddrink, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Travel & Places"
title="{{#str}} emojicategorytravelplaces, core {{/str}}"
>
{{#pix}} i/emojicategorytravelplaces, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Activities"
title="{{#str}} emojicategoryactivities, core {{/str}}"
>
{{#pix}} i/emojicategoryactivities, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Objects"
title="{{#str}} emojicategoryobjects, core {{/str}}"
>
{{#pix}} i/emojicategoryobjects, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Symbols"
title="{{#str}} emojicategorysymbols, core {{/str}}"
>
{{#pix}} i/emojicategorysymbols, core {{/pix}}
</button>
<button
class="btn btn-outline-secondary icon-no-margin category-button"
class="btn btn-outline-secondary icon-no-margin category-button rounded-0"
data-action="show-category"
data-category="Flags"
title="{{#str}} emojicategoryflags, core {{/str}}"
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/search_input_auto.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
data-region="input"
data-action="search"
id="searchinput"
class="form-control withclear"
class="form-control withclear rounded"
placeholder="{{$placeholder}}{{#str}} search, core {{/str}}{{/placeholder}}"
name="search"
value="{{$value}}{{/value}}"
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/search_input_navbar.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</form>
</div>
<a
class="btn btn-open nav-link"
class="btn btn-open rounded-0 nav-link"
data-toggle="collapse"
data-action="opensearch"
href="#searchform-navbar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
}}

<div
class="section border-0 card"
class="section border-0 card rounded-0"
data-region="{{$region}}{{/region}}"
>
<div id="{{$region}}{{/region}}-toggle" class="card-header p-0" data-region="toggle">
<div id="{{$region}}{{/region}}-toggle" class="card-header rounded-0 p-0" data-region="toggle">
<button
class="btn btn-link w-100 text-left p-1 p-sm-2 d-flex align-items-center overview-section-toggle {{^expanded}}collapsed{{/expanded}}"
class="btn btn-link w-100 text-left p-1 p-sm-2 d-flex rounded-0 align-items-center overview-section-toggle {{^expanded}}collapsed{{/expanded}}"
data-toggle="collapse"
data-target="#{{$region}}{{/region}}-target-{{uniqid}}"
aria-expanded="{{#expanded}}true{{/expanded}}{{^expanded}}false{{/expanded}}"
Expand Down
6 changes: 5 additions & 1 deletion theme/boost/scss/moodle/atto.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ div.editor_atto_toolbar {
border: 1px solid $input-border-color;
width: 100%;
padding: 0 0 9px 0;
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}

div.editor_atto_toolbar button {
Expand Down Expand Up @@ -218,6 +220,8 @@ div.editor_atto_content:hover .atto_control {
.editor_atto_content.form-control {
width: 100%;
border-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

/** Atto fields do not have form-control because that would break the layout of the editor.
Expand All @@ -232,4 +236,4 @@ div.editor_atto_content:hover .atto_control {
}
div.editor_atto_toolbar button .icon {
color: $gray-700;
}
}
2 changes: 2 additions & 0 deletions theme/boost/scss/moodle/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ $card-gutter : $card-deck-margin * 2;
height: 7rem;
background-position: center;
background-size: cover;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.dashboard-card-footer {
padding: 0.8rem;
Expand Down
5 changes: 5 additions & 0 deletions theme/boost/scss/moodle/filemanager.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
.fp-navbar {
border-color: $input-border-color;
border-bottom: 0;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}

.file-picker .fp-content {
Expand Down Expand Up @@ -607,6 +609,7 @@ a.ygtvspacer:hover {
.filemanager-container {
min-height: 140px;
border: 1px solid $input-border-color;
@include border-radius();
}

.filemanager .fp-content {
Expand All @@ -618,6 +621,8 @@ a.ygtvspacer:hover {
.filemanager-container,
.filepicker-filelist {
overflow: hidden;
border-top-left-radius: 0;
border-top-right-radius: 0;
}

.file-picker .yui3-datatable-header {
Expand Down
4 changes: 0 additions & 4 deletions theme/boost/scss/moodle/grade.scss
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,6 @@
*/
.path-grade-report-grader {
.gradeparent {
table {
@include border-radius($border-radius);
}

tr .cell,
.floater .cell {
background-color: $pagination-bg;
Expand Down
8 changes: 4 additions & 4 deletions theme/boost/scss/moodle/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
left: 0;
z-index: 2;
.btn {
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 0.375rem;
width: 2.5rem;
color: $white;
Expand All @@ -79,8 +79,8 @@
right: 0;
z-index: 2;
.btn {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
padding: 0.375rem;
width: 2.5rem;
color: $white;
Expand Down
19 changes: 11 additions & 8 deletions theme/boost/scss/moodle/message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,17 @@ $message-day-color: color-yiq($message-app-bg) !default;
}
}
}
.list-group .list-group-item {
border-left: 0;
border-right: 0;
&:first-child {
border-top: 0;
}
&:last-child {
border-bottom: 0;
.list-group {
border-radius: 0;
.list-group-item {
border-left: 0;
border-right: 0;
&:first-child {
border-top: 0;
}
&:last-child {
border-bottom: 0;
}
}
}
.last-message {
Expand Down
7 changes: 0 additions & 7 deletions theme/boost/scss/moodle/modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1063,13 +1063,6 @@ div#dock {
}
}

// Usermenu
.usermenu {
.login {
line-height: 2.25rem;
}
}

.userloggedinas,
.userswitchedrole,
.loginfailures {
Expand Down
20 changes: 18 additions & 2 deletions theme/boost/scss/moodle/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,20 @@
display: flex;
align-items: center;
}
.dropdown-toggle::after {
display: none;
.dropdown {
display: flex;
align-items: center;
.dropdown-toggle {
padding-top: 0;
padding-bottom: 0;
border-radius: 0;
display: flex;
align-items: center;
height: 100%;
}
.dropdown-toggle::after {
display: none;
}
}
.dropdown-menu {
min-width: 235px;
Expand Down Expand Up @@ -73,6 +85,10 @@
}
}
}
.login {
display: flex;
align-items: center;
}
}
.langmenu {
.dropdown-menu {
Expand Down
6 changes: 6 additions & 0 deletions theme/boost/scss/moodle/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
}

.simplesearchform {
@if $enable-rounded {
.input-group input.form-control {
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
}
}
.btn {
padding-left: 0.5rem;
padding-right: 0.5rem;
Expand Down
1 change: 0 additions & 1 deletion theme/boost/scss/preset/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ $warning-outline: #a6670e;
$table-accent-bg: rgba($black, .03) !default;

// Options
$enable-rounded: false !default;
$enable-responsive-font-sizes: true !default;

// Body
Expand Down
Loading

0 comments on commit a4a59a4

Please sign in to comment.