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

ISTWCMS-5801: adding things for subtitle

parent b6c6b2fb
No related branches found
No related tags found
1 merge request!39ISTWCMS-5801: adding gaps from gesso
......@@ -3,29 +3,46 @@
@use '../../01-core' as *;
$site-name-font-size: var(--font-size-5);
$site-slogan-font-size: var(--font-size-2);
.uw-site-name {
a{
a {
color: var(--uw-black);
&:hover{
text-decoration: underline;
}
}
&__wrapper{
&__wrapper {
padding: 0 var(--size-1);
@media(min-width: $screen-md) {
@include uw-contained-width();
}
}
&__link{
&__link {
display: inline-block;
letter-spacing: inherit;
text-decoration: none;
text-transform: uppercase;
}
&__text{
&__text {
font-size: $site-name-font-size;
margin: 0;
padding: var(--size-1) 0;
}
&__subtitle {
display: block;
font-family: var(--font-condensedbook);
font-size: var(--font-size-0);
@media(min-width: $screen-md) {
font-size: $site-slogan-font-size;
}
margin: 0;
padding: 0 0 0.5rem;
}
}
......@@ -2,6 +2,11 @@
<div class="uw-site-name__wrapper">
<a class="uw-site-name__link" href="{{ home_link }}" title="{{ site_name}} {{ 'Home'|t }}" rel="home">
<h1 class="uw-site-name__text">{{ site_name }}</h1>
{% if subtitle %}
{% include '@components/site-slogan/site-slogan.twig' with {
'subtitle': subtitle,
} %}
{% endif %}
</a>
</div>
</div>
......
// @file
// Styles for Site slogan.
// .site-slogan {}
---
el: .site-slogan
title: Site Slogan
---
__Variables:__
* site_slogan: [string] Text of the site slogan.
<h2 class="uw-site-name__subtitle">{{ subtitle }}</h2>
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