Skip to content

Commit

Permalink
DI-5563 Lists styles reset globally
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinca committed Aug 3, 2023
1 parent 6f40256 commit 38cfd81
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nhsla/moodle-nhse",
"type": "moodle-theme",
"version": "2023073102",
"version": "2023073103",
"require": {
"composer/installers": "~1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

$THEME->doctype = 'html5';
$THEME->name = 'nhse';
$THEME->version = '2023073102';
$THEME->version = '2023073103';
$THEME->parents = ['boost'];
$THEME->regions = [];
$THEME->sheets = [];
Expand Down Expand Up @@ -201,7 +201,7 @@
$THEME->haseditswitch = true;
$THEME->usescourseindex = true;

// Control displaying nhse titles.
// Control displaying nhse titles (Boost is set to true).
$THEME->activityheaderconfig = [
'notitle' => false
];
20 changes: 12 additions & 8 deletions scss/nhse.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
font-weight: 600;
}

.coursebox {
ul,
ol,
p {
font-size: initial;
line-height: initial;
}
ul,
ol,
p {
font-size: initial;
line-height: initial;
}

.course_category_tree {
Expand Down Expand Up @@ -68,7 +66,7 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
flex-direction: column;

#page {
padding-top: 3rem;
padding-top: 0;
margin-top: 0;
}

Expand Down Expand Up @@ -267,6 +265,8 @@ body.limitedwidth {

.nav-link {
padding: 0.6rem 1rem;
font-size: 1rem;
line-height: 1.5;
}

.navbar {
Expand Down Expand Up @@ -489,6 +489,10 @@ body.limitedwidth {
display: none;
}

.nhsuk-header__navigation-item {
border-top: none;
}

.popover-region-toggle::before, .popover-region-toggle::after {
display: none;
}
Expand Down
8 changes: 4 additions & 4 deletions templates/drawers.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@
</body>
</html>
{{#js}}
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
M.util.js_pending('theme_boost/loader');
require(['theme_boost/loader', 'theme_boost/drawer'], function(Loader, Drawer) {
Drawer.init();
M.util.js_complete('theme_boost/loader');
});
M.util.js_complete('theme_boost/loader');
});
{{/js}}

18 changes: 8 additions & 10 deletions templates/footer.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,29 @@
{{{ output.login_info }}}
{{{ output.debug_footer_html }}}
</div>
<div class="tool_usertours-resettourcontainer">
</div>

<div class="tool_usertours-resettourcontainer"></div>
{{{ output.standard_footer_html }}}
{{{ output.standard_end_of_body_html }}}
</div>

<div class="nhsuk-grid-column-one-half">
<div>{{#str}}poweredbymoodle, core{{/str}}</div>
{{#str}}poweredbymoodle, core{{/str}}
{{#output.moodle_release}}
<div>
{{#str}}version, core{{/str}} {{{ output.moodle_release }}}
</div>
{{#str}}version, core{{/str}} {{{ output.moodle_release }}}
{{/output.moodle_release}}
</div>

<p class="nhsuk-footer__copyright">© Copyright, Leadership Academy YYYY</p>
<div class="nhsuk-grid-column-one-half nhsuk-footer__copyright">
© Copyright, Leadership Academy YYYY
</div>
</div>

</div>
</div>
</footer>
{{#js}}
require(['theme_boost/footer-popover'], function(FooterPopover) {
require(['theme_boost/footer-popover'], function(FooterPopover) {
FooterPopover.init();
});
});
{{/js}}

2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

// This is the version of the plugin.
$plugin->version = 2023073102;
$plugin->version = 2023073103;
$plugin->release = '401.0.1';
$plugin->maturity = MATURITY_BETA;

Expand Down

0 comments on commit 38cfd81

Please sign in to comment.