Skip to content

Commit

Permalink
Another fix(2) for #215.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Sep 3, 2024
1 parent b1a9241 commit cb94bfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
5 changes: 0 additions & 5 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@
border: 2px solid var(--primary);
}

.format-grid .thegrid .grid-current-section .grid-section-inner {
border: 2px solid #183404;
border-radius: .5rem;
}

.format-grid .thegrid .grid-image {
height: 140px;
position: relative;
Expand Down
24 changes: 13 additions & 11 deletions templates/grid.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,23 @@
{{/sectionbreak}}
<div id="section-{{number}}" class="grid-section card{{#iscurrent}} currentgridsection{{/iscurrent}}" title="{{sectionname}}">
{{^popup}}
{{#notavailable}}<div class="grid-section-inner d-flex p-0 flex-column h-100 justify-content-between">{{/notavailable}}
{{^notavailable}}<a class="grid-section-inner d-flex p-0 flex-column h-100 justify-content-between" href="{{sectionurl}}">{{/notavailable}}
{{#notavailable}}<div class="grid-section-inner d-flex flex-column h-100 justify-content-between">{{/notavailable}}
{{^notavailable}}<a class="grid-section-inner d-flex flex-column h-100 justify-content-between" href="{{sectionurl}}">{{/notavailable}}
{{/popup}}
{{#popup}}
<div class="grid-modal grid-section-inner card-body p-0 d-flex flex-column h-100 justify-content-between" data-toggle="modal" data-target="#gridPopup" data-section="{{number}}" tabindex="0">
<div class="grid-modal grid-section-inner d-flex flex-column h-100 justify-content-between" data-toggle="modal" data-target="#gridPopup" data-section="{{number}}" tabindex="0">
{{/popup}}
<div class="card-header text-truncate h-100">
<h3 class="h4">{{{sectionname}}}</h3>
{{#hasbadge}}
<div data-region="sectionbadges" class="sectionbadges d-flex">
{{$ core_courseformat/local/content/section/badges }}
{{> core_courseformat/local/content/section/badges }}
{{/ core_courseformat/local/content/section/badges }}
<div class="card-body p-0">
<div class="card-header h-100">
<h3 class="h4 text-truncate">{{{sectionname}}}</h3>
{{#hasbadge}}
<div data-region="sectionbadges" class="sectionbadges d-flex">
{{$ core_courseformat/local/content/section/badges }}
{{> core_courseformat/local/content/section/badges }}
{{/ core_courseformat/local/content/section/badges }}
</div>
{{/hasbadge}}
</div>
{{/hasbadge}}
</div>
{{#imageuri}}
<div class="grid-image card-img-bottom text-center">
Expand Down

0 comments on commit cb94bfa

Please sign in to comment.