There are no notes for this item.
<p class="intro">Wrap tiles in a <code>.tile-group</code> container to give the group hover effect (desaturate, resaturate & scale) as with Feature Tiles.</p>
<div class="grid grid--flush grid-2-cols@mobile-wide grid-4-cols@desktop tile-group">
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/people" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/architecture" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Connecting continents</h3>
</div>
<div class="tile__content-body">
<p>Study with us, no matter where in the world you come from.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/nature" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Digital Institute London</h3>
</div>
<div class="tile__content-body">
<p>Study Esports, Computer Games Design, Cyber Security, and more, with us in London.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">There’s still time to apply for 2020 entry</h3>
</div>
<div class="tile__content-body">
<p>Apply for a full-time undergraduate degree at Staffordshire University and get guaranteed accommodation.</p>
</div>
</div>
</a>
</div>
</div>
<hr />
<div class="grid grid--flush grid-2-cols@mobile-wide grid-3-cols@tablet-wide tile-group">
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/people" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title title--bg-tef-gold tile__title">
<h3 class="h4 title__highlight">TEF Gold</h3>
</div>
<div class="tile__content-body">
<p>Staffordshire University achieves Gold in the Teaching Excellence and Student Outcomes Framework</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/architecture" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Breaking Boundaries</h3>
</div>
<div class="tile__content-body">
<p>Public lecture from Ade Adepitan MBE</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title title--bg-tef-gold tile__title">
<h3 class="h4 title__highlight">TEF Gold</h3>
</div>
<div class="tile__content-body">
<p>Staffordshire University achieves Gold in the Teaching Excellence and Student Outcomes Framework</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/nature" class="tile__img" alt="" />
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Breaking Boundaries</h3>
</div>
<div class="tile__content-body">
<p>Public lecture from Ade Adepitan MBE</p>
</div>
</div>
</a>
</div>
</div>
<p class="intro">Wrap tiles in a <code>.tile-group</code> container to give the group hover effect (desaturate, resaturate & scale) as with Feature Tiles.</p>
<div class="grid grid--flush grid-2-cols@mobile-wide grid-4-cols@desktop tile-group">
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/people" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/architecture" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Connecting continents</h3>
</div>
<div class="tile__content-body">
<p>Study with us, no matter where in the world you come from.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/nature" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">Digital Institute London</h3>
</div>
<div class="tile__content-body">
<p>Study Esports, Computer Games Design, Cyber Security, and more, with us in London.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h6 title__highlight">There’s still time to apply for 2020 entry</h3>
</div>
<div class="tile__content-body">
<p>Apply for a full-time undergraduate degree at Staffordshire University and get guaranteed accommodation.</p>
</div>
</div>
</a>
</div>
</div>
<hr/>
<div class="grid grid--flush grid-2-cols@mobile-wide grid-3-cols@tablet-wide tile-group">
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/people" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title title--bg-tef-gold tile__title">
<h3 class="h4 title__highlight">TEF Gold</h3>
</div>
<div class="tile__content-body">
<p>Staffordshire University achieves Gold in the Teaching Excellence and Student Outcomes Framework</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/architecture" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Breaking Boundaries</h3>
</div>
<div class="tile__content-body">
<p>Public lecture from Ade Adepitan MBE</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/tech" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title title--bg-tef-gold tile__title">
<h3 class="h4 title__highlight">TEF Gold</h3>
</div>
<div class="tile__content-body">
<p>Staffordshire University achieves Gold in the Teaching Excellence and Student Outcomes Framework</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Developing knowledge</h3>
</div>
<div class="tile__content-body">
<p>Reach your full potential with our postgraduate courses.</p>
</div>
</div>
</a>
</div>
<div>
<a class="tile" href="">
<figure class="tile__figure">
<img src="https://placeimg.com/500/500/nature" class="tile__img" alt=""/>
</figure>
<div class="tile__content">
<div class="title tile__title">
<h3 class="h4 title__highlight">Breaking Boundaries</h3>
</div>
<div class="tile__content-body">
<p>Public lecture from Ade Adepitan MBE</p>
</div>
</div>
</a>
</div>
</div>
.tile-group {
a.tile {
transition: transform 200ms;
&:hover {
transform: scale(1.025);
z-index: 2;
}
}
&:hover {
a.tile {
.tile__figure {
img {
filter: grayscale(1);
}
}
&:hover {
.tile__figure {
img {
filter: grayscale(0);
}
}
}
}
}
}
.tile {
// $tile-accent-colors: see __vars/colours
position: relative;
display: block;
overflow: hidden;
outline: 1px solid $grey--light;
box-shadow: 0 0.1em 0.25em rgba(0, 0, 0, 0.15);
min-height: 10em;
&__figure {
position: relative;
margin: 0;
z-index: 0;
img {
transition: filter 250ms;
}
@supports (object-fit: cover) {
img {
height: 100%;
max-height: 75vmin;
object-fit: cover;
object-position: center center;
}
}
}
&__content {
position: absolute;
bottom: 0;
left: 0;
margin-right: 2rem;
max-height: 90%;
padding: 0 $spacing-md 1px;
background: white;
box-sizing: border-box;
z-index: 1;
&-body {
@include typescale('sm');
@include line-height('normal');
}
}
&__caption {
position: absolute;
bottom: 0;
left: 0;
margin-right: 2rem;
max-height: 90%;
z-index: 1;
padding: 0;
border: 0;
background: none;
.title:only-child {
margin: 0;
}
}
&__title {
margin-top: -$spacing-md!important;
}
.title__highlight {
--background: var(--accent-color);
}
@each $name, $value in $tile-accent-colors {
&--accent-#{$name} {
--accent-color: #{$value};
}
}
&--no-shadow {
box-shadow: none;
}
}
a.tile {
//.tile__figure {
// img {
// filter: grayscale(100%);
// }
//}
&:hover,
&:focus {
color: $neutral--primary;
//.tile__figure {
// img {
// filter: grayscale(0);
// }
//}
}
&:focus {
outline-width: 3px;
outline-color: $primary;
z-index: 2;
}
}
.has-cta .tile {
min-height: 30em;
}