Skip to content
Snippets Groups Projects
Commit 12cc910b authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-2291: Setting up region for site footers

parent c39c6db0
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,17 @@ ...@@ -2,6 +2,17 @@
display: none; display: none;
} }
html.uw_html {
background-color: black;
}
body {
font-family: georgia, "droid serif", "Times New Roman", Times, serif;
font-size: 1rem;
color: #4e4e4e;
background-color: white;
}
.layout-container { .layout-container {
display: grid; display: grid;
grid-template-columns: auto; grid-template-columns: auto;
...@@ -9,29 +20,55 @@ ...@@ -9,29 +20,55 @@
} }
.layout-container header { .layout-container header {
grid-column: 1; grid-column: 1 / 2;
grid-row: 1; grid-row: 1 / 2;
} }
.layout-container main { .layout-container main {
grid-column: 1; grid-column: 1 / 2;
grid-row: 2; grid-row: 2 / 3;
max-width: 63.125rem;
width: 100%;
margin-left: auto;
margin-right: auto;
}
.layout-container .block-site-footer-block {
grid-column: 1 / 2;
grid-row: 3 / 4;
} }
.layout-container footer { .layout-container footer {
grid-column: 1; grid-column: 1 / 2;
grid-row: 3; grid-row: 4 / 5;
} }
html.uw_html { .main-content-wrapper--with-sidebar {
background-color: black; width: 100%;
display: grid;
grid-template-columns: 70% 30%;
grid-template-rows: auto;
.main-content {
grid-column: 1 / 2;
grid-row: 1 / 2;
}
aside {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
} }
body { .main-content-wrapper {
font-family: georgia, "droid serif", "Times New Roman", Times, serif; width: 100%;
font-size: 1rem; display: grid;
color: #4e4e4e; grid-template-columns: 100%;
background-color: white; grid-template-rows: auto;
.main-content {
grid-column: 1 / 2;
grid-row: 1 / 2;
}
} }
.ifdsu { .ifdsu {
......
...@@ -62,17 +62,29 @@ ...@@ -62,17 +62,29 @@
<a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #} <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
{% if page.sidebar %} {% if page.sidebar %}
<aside class="main-sidebar" role="complementary"> <div class="main-content-wrapper{% if page.sidebar %}--with-sidebar{% endif %}">
{{ page.sidebar }} {% else %}
</aside> <div class="main-content-wrapper">
{% endif %} {% endif %}
<div class="main-content{% if page.sidebar %}--with-sidebar{% endif %}"> <div class="main-content">
{{ page.content }} {{ page.content }}
</div>{# /.layout-content #} </div>
{% if page.sidebar %}
<aside class="main-sidebar" role="complementary">
{{ page.sidebar }}
</aside>
{% endif %}
</div>
</main> </main>
{% if page.sitefooter %}
{{ page.sitefooter }}
{% endif %}
{% if page.footer %} {% if page.footer %}
{{ page.footer }} {{ page.footer }}
{% endif %} {% endif %}
......
...@@ -26,6 +26,7 @@ regions: ...@@ -26,6 +26,7 @@ regions:
header: Header header: Header
content: Content # the content region is required content: Content # the content region is required
sidebar: 'Sidebar' sidebar: 'Sidebar'
sitefooter: Site Footer
footer: Footer footer: Footer
# Remove unwanted system stylesheets # Remove unwanted system stylesheets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment