Skip to content
Snippets Groups Projects
Commit 222b8f14 authored by Malthe's avatar Malthe
Browse files

Change links to new domains: stack-assessment.org and docs.stack-assessment.org

Fix issue where the sidebar didn't show when zoomed in.
parent 717ed76a
Branches
Tags
No related merge requests found
...@@ -10,9 +10,25 @@ ...@@ -10,9 +10,25 @@
width: 33.33%; width: 33.33%;
padding: 10px; padding: 10px;
} }
/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */ /* Responsive layout - makes the three columns stack on top of each other instead of next to each other when close */
@media screen and (max-width: 605px) { @media screen and (max-width: 605px) {
.footerColumn { .footerColumn {
width: 100%; width: 100%;
} }
} }
/*Copy md-sidebar--primary into md-sidebar--primary_footer for the left block in the footer.*/
@media screen and (max-width: 76.1875em){
.md-sidebar--primary_footer{
position:fixed;top:0;left:-12.1rem;z-index:3;width:12.1rem;height:100%;background-color:var(--md-default-bg-color);transform:translateX(0);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 250ms
}
[dir=rtl] .md-sidebar--primary_footer{right:-12.1rem;left:initial}
[data-md-toggle=drawer]:checked~.md-sidebar--primary_footer{
box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.4);transform:translateX(12.1rem)
}
[dir=rtl] [data-md-toggle=drawer]:checked~.md-sidebar--primary_footer{transform:translateX(-12.1rem)}
.md-sidebar--primary .md-sidebar__scrollwra{overflow:hidden}
}
@media screen and (max-width: 76.1875em){.md-sidebar--primary__footer{position:absolute;top:0;right:0;bottom:0;left:0;margin:0;-webkit-scroll-snap-type:none;-ms-scroll-snap-type:none;scroll-snap-type:none}}
\ No newline at end of file
...@@ -7,7 +7,7 @@ theme: ...@@ -7,7 +7,7 @@ theme:
name: material name: material
logo: content/logo_large.png logo: content/logo_large.png
favicon: ../content/logo_sm.png favicon: ../content/logo_sm.png
custom_dir: site_overrides custom_dir: overrides
highlightjs: false highlightjs: false
palette: palette:
primary: white primary: white
...@@ -25,4 +25,4 @@ plugins: ...@@ -25,4 +25,4 @@ plugins:
- en/Site_map.md - en/Site_map.md
- redirects: - redirects:
redirect_maps: redirect_maps:
'index.md': 'https://malthefogsporring.github.io/moodle-qtype_stack/en/' 'index.md': 'en/index.md'
\ No newline at end of file \ No newline at end of file
site_overrides/img/favicon.ico

101 KiB

site_overrides/img/img_sm.png

6.25 KiB

<!-- Ensures this only extends, not overrides, the theme. -->
{% extends "base.html" %}
<!--Sets search to basic MkDocs search-->
{% block config %}
<script>
var search = {
transform: function(query) {
return query
}
}
</script>
{% endblock %}
{% block header %}
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid" aria-label="{{ lang.t('header.title') }}">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo" style="width:1.7rem;" aria-label="{{ config.site_name }}">
{% include "partials/logo.html" %}
</a>
<label class="md-header-nav__button md-icon" for="__drawer">
{% include ".icons/material/menu" ~ ".svg" %}
</label>
<!--Make site title permament-->
<div class="md-header-nav__title" data-md-component="header-title">
<div class="md-header-nav__ellipsis md-ellipsis">
{{ config.site_name }}
</div>
</div>
{% if "search" in config["plugins"] %}
<label class="md-header-nav__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
{% include "partials/search.html" %}
{% endif %}
{% if config.repo_url %}
<div class="md-header-nav__source">
{% include "partials/source.html" %}
</div>
{% endif %}
</nav>
</header>
{% endblock %}
{% block footer %}
<main class="md-main">
<div class ="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary">
</div>
<div class ="md-sidebar md-sidebar--secondary">
</div>
<div class="md-content" style="border-top: 1px solid lightgrey;">
<div class="md-content__inner md-typeset">
<div class="row">
<div class="footerColumn"><a href="https://malthefogsporring.github.io/malthesrepo/"><img src="{{nav.homepage.url | url}}/content/logo_large.png" width="70px" style="margin-top:1.3em;float:left;"><h2 style="color:black;margin-top:1.1em!important;"><b>STACK</b></h2></a></div>
<div class="footerColumn"><h5>About STACK</h5><h5>Training and Events</h5><h5>Case Studies</h5><h5>Demonstration site</h5></div>
<div class="footerColumn"><h5>Privacy statement</h5><h5>Licenses</h5><h5>Accessibility</h5></div>
</div>
</div>
</div>
</div>
</main>
{% endblock %}
\ No newline at end of file
{% if config.theme.logo %}
<img src="{{ config.theme.logo | url }}" alt="logo" style="width:2rem;height:0.95rem;">
{% else %}
{% set icon = config.theme.icon.logo or "material/library" %}
{% include ".icons/" ~ icon ~ ".svg" %}
{% endif %}
\ No newline at end of file
{#-
This file was automatically generated - do not edit
-#}
{% set class = "md-nav__item" %}
{% if nav_item.active %}
{% set class = "md-nav__item md-nav__item--active" %}
{% endif %}
<!--Skip first level in the navigation bar, i.e. the "En" level-->
{%if nav_item.title == "En"%}
{% set base = path %}
{% for nav_item in nav_item.children %}
{% set path = base + "-" + loop.index | string %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
{% elif nav_item.children %}
<li class="{{ class }} md-nav__item--nested">
{% if nav_item.active %}
<input class="md-nav__toggle md-toggle" data-md-toggle="{{ path }}" type="checkbox" id="{{ path }}" checked>
{% else %}
<input class="md-nav__toggle md-toggle" data-md-toggle="{{ path }}" type="checkbox" id="{{ path }}">
{% endif %}
<label class="md-nav__link" for="{{ path }}">
{{ nav_item.title }}
<span class="md-nav__icon md-icon">
{% include ".icons/material/chevron-right.svg" %}
</span>
</label>
<nav class="md-nav" aria-label="{{ nav_item.title }}" data-md-level="{{ level }}">
<label class="md-nav__title" for="{{ path }}">
<span class="md-nav__icon md-icon">
{% include ".icons/material/arrow-left.svg" %}
</span>
{{ nav_item.title }}
</label>
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}
{% for nav_item in nav_item.children %}
{% set path = base + "-" + loop.index | string %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
</ul>
</nav>
</li>
{% elif nav_item == page %}
<li class="{{ class }}">
{% set toc = page.toc %}
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
{% if toc | first is defined and "\x3ch1 id=" in page.content %}
{% set toc = (toc | first).children %}
{% endif %}
{% if toc | first is defined %}
<label class="md-nav__link md-nav__link--active" for="__toc">
{{ nav_item.title }}
<span class="md-nav__icon md-icon">
{% include ".icons/material/table-of-contents.svg" %}
</span>
</label>
{% endif %}
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link md-nav__link--active">
{{ nav_item.title }}
</a>
{% if toc | first is defined %}
{% include "partials/toc.html" %}
{% endif %}
</li>
{% else %}
<li class="{{ class }}">
<a href="{{ nav_item.url | url }}" title="{{ nav_item.title | striptags }}" class="md-nav__link">
{{ nav_item.title }}
</a>
</li>
{% endif %}
\ No newline at end of file
{#-
This file was automatically generated - do not edit
-#}
<nav class="md-nav md-nav--primary" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
{% include "partials/logo.html" %}
</a>
</label>
{% if config.repo_url %}
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% set level = 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
</ul>
</nav>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment