MDL-72919 core_course: Improve add weeks styling
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
}
|
||||
}}
|
||||
{{#showaddsection}}
|
||||
<div id="changenumsections" class="mdl-left">
|
||||
<div id="changenumsections" class="mdl-left py-2">
|
||||
{{#increase}}
|
||||
<a href="{{{url}}}" class="increase-sections">
|
||||
{{#pix}}t/switch_plus, moodle, {{#str}} increasesections, moodle {{/str}}{{/pix}}
|
||||
@@ -59,7 +59,7 @@
|
||||
data-action="addSection"
|
||||
{{#insertafter}} data-id="{{id}}" {{/insertafter}}
|
||||
>
|
||||
{{#pix}} t/add, moodle {{/pix}} {{title}}
|
||||
{{title}}
|
||||
</a>
|
||||
{{/addsections}}
|
||||
</div>
|
||||
|
||||
@@ -217,7 +217,7 @@ Feature: Course index depending on role
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I click on "Side panel" "button"
|
||||
And I click on "Open course index drawer" "button"
|
||||
When I click on "Add topic after" "link" in the "Topic 4" "section"
|
||||
When I click on "Add topic" "link" in the "Topic 4" "section"
|
||||
Then I should see "Topic 5" in the "courseindex-content" "region"
|
||||
|
||||
@javascript
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['addsections'] = 'Add topic after';
|
||||
$string['addsections'] = 'Add topic';
|
||||
$string['currentsection'] = 'This topic';
|
||||
$string['editsection'] = 'Edit topic';
|
||||
$string['editsectionname'] = 'Edit topic name';
|
||||
|
||||
@@ -79,13 +79,13 @@ Feature: Sections can be edited and deleted in topics format
|
||||
|
||||
@javascript
|
||||
Scenario: Adding sections at the end of a topics format
|
||||
When I click on "Add topic after" "link" in the "Topic 5" "section"
|
||||
When I click on "Add topic" "link" in the "Topic 5" "section"
|
||||
Then I should see "Topic 6" in the "Topic 6" "section"
|
||||
And I should see "Test choice name" in the "Topic 5" "section"
|
||||
|
||||
@javascript
|
||||
Scenario: Adding sections between topics in topics format
|
||||
When I click on "Add topic after" "link" in the "Topic 4" "section"
|
||||
When I click on "Add topic" "link" in the "Topic 4" "section"
|
||||
Then I should see "Topic 6" in the "Topic 6" "section"
|
||||
And I should not see "Test choice name" in the "Topic 5" "section"
|
||||
And I should see "Test choice name" in the "Topic 6" "section"
|
||||
|
||||
@@ -1311,3 +1311,7 @@ $activity-item-hover: theme-color-level('primary', -10) !default;
|
||||
width: 100%;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#changenumsections {
|
||||
border-top: $border-width solid $activity-item-border;
|
||||
}
|
||||
@@ -14622,6 +14622,9 @@ span.editinstructions {
|
||||
cursor: pointer;
|
||||
background-color: #cfe2f2; }
|
||||
|
||||
#changenumsections {
|
||||
border-top: 1px solid #3584c9; }
|
||||
|
||||
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
||||
:target {
|
||||
scroll-margin-top: 70px; }
|
||||
|
||||
@@ -14622,6 +14622,9 @@ span.editinstructions {
|
||||
cursor: pointer;
|
||||
background-color: #cfe2f2; }
|
||||
|
||||
#changenumsections {
|
||||
border-top: 1px solid #3584c9; }
|
||||
|
||||
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
||||
:target {
|
||||
scroll-margin-top: 60px; }
|
||||
|
||||
Reference in New Issue
Block a user