Skip to content
Snippets Groups Projects
Commit b2e09afb authored by Martin Leblanc's avatar Martin Leblanc Committed by Eric Bremner
Browse files

ISTWCMS-5595: css for presentation of site container, fix of inverted-left-L layout twig

parent b67630eb
No related branches found
No related tags found
1 merge request!4ISTWCMS-5595 adding site container and basic layout containers
Showing
with 44 additions and 12 deletions
{% set main_classes = 'uw-main' %} {% set main_classes = 'uw-main' %}
<!-- Button for show and hide of admin -->
<button class="uw-show-hide" id="revision-show-hide" title="Show/hide revision elements">±</button> <button class="uw-show-hide" id="revision-show-hide" title="Show/hide revision elements">±</button>
<!-- end -->
{% for class in classes %} {% for class in classes %}
{% set main_classes = main_classes ~ ' ' ~ class %} {% set main_classes = main_classes ~ ' ' ~ class %}
{% endfor %} {% endfor %}
<main id="main" class="{{ main_classes }}" role="main" tabindex="-1"> <main id="main" class="{{ main_classes }}" role="main" tabindex="-1">
{% block content %} {% block content %}
Main content Main content
......
<footer class="uw-footer"{% if branding_level == 'full' %} role="contentinfo"{% endif %}> <footer class="uw-footer"{% if branding_level == 'full' %} role="contentinfo"{% endif %}>
<div class="uw-site-footer__block"> <div class="uw-site-footer__block">
{% block content %} {% block content %}
{% include "@layouts/site-footer/site-footer.twig" with {
body: "The standard Lorem Ipsum passage, used since the 1500s<br /><br />Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
site_name: "Faculty of Environment",
logo_link: "https://uwaterloo.ca/",
logo_url: "/uw_wcms_gesso/source/images/logos/uwaterloo-logo.svg",
logo_alt_text: "Faculty of Environment",
facebook: "https://www.facebook.com/University.Waterloo"
} %}
{% endblock %} {% endblock %}
</div> </div>
<div class="uw-footer__wrapper"> <div class="uw-footer__wrapper">
......
@use '../../01-core' as *; @use '../../01-core' as *;
.layout { .layout {
@include layout-constrain; @include layout-constrain;
......
{{ attach_library('uw_wcms_ohana/layout') }}
{% set section_names = { {% set section_names = {
1: 'first', 1: 'first',
2: 'second', 2: 'second',
......
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
num_of_blocks: num_of_blocks, num_of_blocks: num_of_blocks,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
num_of_blocks: num_of_blocks, num_of_blocks: num_of_blocks,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
num_of_blocks: num_of_blocks, num_of_blocks: num_of_blocks,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
num_of_blocks: num_of_blocks, num_of_blocks: num_of_blocks,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
num_of_blocks: num_of_blocks, num_of_blocks: num_of_blocks,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
inverted_l_left: 1, inverted_l_left: 1,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
inverted_l_right: 1, inverted_l_right: 1,
} %} } %}
{% endif %} {% endif %}
\ No newline at end of file
{{ attach_library('ohana/region')}}
<section class="l-{{ region_name ?: 'region' }}"> <section class="l-{{ region_name ?: 'region' }}">
{% if constrain %} {% if constrain %}
<div class="l-constrain {{ constrain }}"> <div class="l-constrain {{ constrain }}">
......
$defaults: 'uw-gold'; $defaults: 'uw-gold';
$faculties: 'org-ahs', 'org-art', 'org-eng', 'org-env', 'org-mat', 'org-sci', 'org-school', 'org-stp', 'org-cgc', 'org-stj', 'org-ren'; $faculties: 'org-ahs', 'org-art', 'org-eng', 'org-env', 'org-mat', 'org-sci', 'org-school', 'org-stp', 'org-cgc', 'org-stj', 'org-ren';
$lvls: 'lvl1', 'lvl2', 'lvl3', 'lvl4'; $lvls: '--color1', 'lvl2', 'lvl3', 'lvl4';
@each $default in $defaults { @each $default in $defaults {
@each $lvl in $lvls { @each $lvl in $lvls {
......
...@@ -5,4 +5,3 @@ ...@@ -5,4 +5,3 @@
@use '01-core/props' as *; @use '01-core/props' as *;
@use '01-core/utilities' as *; @use '01-core/utilities' as *;
@use '01-core/elements' as *; @use '01-core/elements' as *;
@use '03-layouts' as *;
name: 'WCMS Ohana'
description: 'Provides stylings to WCMS'
type: module
core_version_requirement: '^8 || ^9'
components:
namespaces:
core:
- src/patterns/01-core
base:
- src/patterns/02-base
layouts:
- src/patterns/03-layouts
components:
- src/patterns/04-components
composites:
- src/patterns/05-composites
templates:
- src/patterns/06-templates
pages:
- src/patterns/06-pages
dependencies:
- components:components
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