Skip to content

Commit

Permalink
Adjusting the appearance of the section with background color
Browse files Browse the repository at this point in the history
  • Loading branch information
davidherney committed Jan 9, 2025
1 parent 717b7b6 commit 17c9bda
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.format-onetopic ul.onetopic {
padding: 0;
margin-bottom: 0;
}

.format-onetopic .format_onetopic-tabs .nav-link {
Expand Down Expand Up @@ -40,6 +41,20 @@
padding-bottom: 10px;
}

.format-onetopic .onetopic-withsectionbg .course-section {
margin-top: 0;
background: #fffb;
padding: 0 0.75rem;
border-radius: 5px;
}

.format-onetopic .onetopic-withsectionbg ul.section .activity-item,
.format-onetopic .onetopic-withsectionbg .content .summarytext {
background-color: transparent;
padding-left: 0;
padding-right: 0;
}

/* Its a subtabs bar */
.format-onetopic .onetopic-tab-body .format_onetopic-tabs {
padding-left: 20px;
Expand Down
2 changes: 1 addition & 1 deletion templates/header.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</div>
{{/hastopictabs}}

<div class="onetopic-tab-body" {{#activetab}}data-tabid="{{id}}"{{/activetab}}
<div class="onetopic-tab-body{{#tabsectionbackground}} onetopic-withsectionbg{{/tabsectionbackground}}" {{#activetab}}data-tabid="{{id}}"{{/activetab}}
{{#tabsectionbackground}}style="{{tabsectionbackground}}"{{/tabsectionbackground}}>

{{#hassecondrow}}
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024050904.02; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2024050904.03; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2024041600; // Requires this Moodle version.
$plugin->component = 'format_onetopic'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
Expand Down

0 comments on commit 17c9bda

Please sign in to comment.