Skip to content

Commit

Permalink
small changes css and template to be more specific in selectors, add …
Browse files Browse the repository at this point in the history
…sr-only text to eye icon
  • Loading branch information
Andreas Schenkel authored and Andreas Schenkel committed Jan 6, 2024
1 parent 1f699c5 commit 37652e1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
2 changes: 2 additions & 0 deletions lang/en/block_overviewmyrolesincourses.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
$string['agendanothidden'] = 'Not hidden courses';
$string['agendahidden'] = 'Hidden courses';
$string['butnotvisible'] = 'but not visible';
$string['courseisnothidden'] = 'Course is not hidden';
$string['courseishidden'] = 'Course is hidden';
$string['defaultfoldonstart'] = 'Default: Fold on start';
$string['defaultfoldonstart_desc'] = 'By default courselists are fold';
$string['defaultshowpast'] = 'Default: Show past';
Expand Down
13 changes: 9 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.overviewmyrolesincourses {
box-shadow: 0 0 5px 0 #ddd;
margin-bottom: 10px;
}

.overviewmyrolesincourses-bg-manager {
background-color: #aaa;
}
Expand Down Expand Up @@ -54,20 +59,20 @@
display: none;
}

.row.duration {
.overviewmyrolesincourses .row.duration {
margin-left: 0;
}
.row.duration .col-8 {
.overviewmyrolesincourses .row.duration .col-8 {
padding-left: 0;
}
.row.duration .col-4 {
.overviewmyrolesincourses .row.duration .col-4 {
padding-right: 10px;
}

.overviewmyrolesincourses-tools {
text-align: right;
}

.summary .no-overflow p {
.overviewmyrolesincourses .summary .no-overflow p {
margin-bottom: 0.5rem;
}
10 changes: 7 additions & 3 deletions templates/overviewmyrolesincourses.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}
}}

<div class="border shadow mb-4">
<div class="overviewmyrolesincourses">
<script>
function myFunction{{roleshortname}}() {
var element = document.getElementById("overviewmyrolesincourses-visibility-{{roleshortname}}");
Expand Down Expand Up @@ -102,8 +102,12 @@
{{#favourite}}
{{/favourite}}
{{^dimmed}}<span><i class="fa fa-eye" aria-hidden="true"></i></span>{{/dimmed}}
{{#dimmed}}<span><i class="fa fa-eye-slash" aria-hidden="true"></i></span>{{/dimmed}}
{{^dimmed}}<span><i class="fa fa-eye" aria-hidden="true"></i></span>
<span class="sr-only">{{# str }} courseisnothidden, block_overviewmyrolesincourses {{/str}}</span>
{{/dimmed}}
{{#dimmed}}<span><i class="fa fa-eye-slash" aria-hidden="true"></i></span>
<span class="sr-only">{{# str }} courseishidden, block_overviewmyrolesincourses {{/str}}</span>
{{/dimmed}}
{{#showdeleteicon}}
<a href="{{urldelete}}">
<i class="fa fa-trash" aria-hidden="true"></i>
Expand Down

0 comments on commit 37652e1

Please sign in to comment.