Because different logos often have different aspect ratios, an additional class called ‘.logo–low-aspect-ratio’ can be used here to try and keep logos inline.
<div class="js-slider--logos margin-bottom-2xl">
<div>
<div class="logo">
<a href="https://idu-group.com/" title="IDU Group website">
<img src="../../images/logo-idu-group.png" alt="IDU group logo featuring a series of boxes, and the tagline: the future of last mile logistics" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://www.babababoon.co.uk/" title="Baba Baboon website">
<img src="../../images/logo-baba-baboon.png" alt="Baba Baboon logo features a grey baboon" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="https://quantumscis.com/" title="Quantum Science website">
<img src="../../images/logo-quantum-science.png" alt="Quantum science logo with pink, red, blue and yellow accents" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://clsolution.co.uk/" title="CL Solutions website">
<img src="../../images/logo-cl-solutions.png" alt="CL solutions logo with tagline: control and automation specialists" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="http://www.rushkeep.com/" title="Rushkeep solutions website">
<img src="../../images/logo-rush-keep.png" alt="Rush Keep logo features a castle tower, like a chess rook" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="https://www.cyberkiln.com/" title="Cyber Kiln website">
<img src="../../images/logo-cyber-kiln.png" alt="The Cyber Kiln logo features a traditional pot bank and the tagline: bespoke website and software development" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://mappingmill.com/" title="Mapping Mill website">
<img src="../../images/logo-mapping-mill.png" alt="Mapping Mill logo with green, purple and orange accents" />
</a>
</div>
</div>
</div>
<div class="js-slider--logos margin-bottom-2xl">
<div>
<div class="logo">
<a href="https://idu-group.com/" title="IDU Group website">
<img src="{{ '/images/logo-idu-group.png' | path }}" alt="IDU group logo featuring a series of boxes, and the tagline: the future of last mile logistics" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://www.babababoon.co.uk/" title="Baba Baboon website">
<img src="{{ '/images/logo-baba-baboon.png' | path }}" alt="Baba Baboon logo features a grey baboon" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="https://quantumscis.com/" title="Quantum Science website">
<img src="{{ '/images/logo-quantum-science.png' | path }}" alt="Quantum science logo with pink, red, blue and yellow accents" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://clsolution.co.uk/" title="CL Solutions website">
<img src="{{ '/images/logo-cl-solutions.png' | path }}" alt="CL solutions logo with tagline: control and automation specialists" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="http://www.rushkeep.com/" title="Rushkeep solutions website">
<img src="{{ '/images/logo-rush-keep.png' | path }}" alt="Rush Keep logo features a castle tower, like a chess rook" />
</a>
</div>
</div>
<div>
<div class="logo">
<a href="https://www.cyberkiln.com/" title="Cyber Kiln website">
<img src="{{ '/images/logo-cyber-kiln.png' | path }}" alt="The Cyber Kiln logo features a traditional pot bank and the tagline: bespoke website and software development" />
</a>
</div>
</div>
<div>
<div class="logo logo--low-aspect-ratio">
<a href="https://mappingmill.com/" title="Mapping Mill website">
<img src="{{ '/images/logo-mapping-mill.png' | path }}" alt="Mapping Mill logo with green, purple and orange accents" />
</a>
</div>
</div>
</div>
@import '../../assets/js/vendor/slick-1.8.1/slick/slick.scss';
.slick-slider {
}
.slick-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: $page-gutter-small*2;
width: 1em;
height: 1em;
padding: 0;
text-indent: -999em;
background: transparent;
color: transparent;
border: 0;
cursor: pointer;
z-index: 2;
overflow: hidden; // prevents odd outline shape
&:hover {
opacity: 0.8;
}
@media (min-width: $wrap-large-gutter-width) {
font-size: $page-gutter-large*2;
}
&:before {
content: '';
display: block;
margin: auto;
width: 1em;
height: 1em;
background: $neutral--primary url('#{$image-theme-directory-icon}/icon-gt-white.svg') no-repeat 55% 50%;
background-size: 30%;
border-radius: 100%;
}
}
.slick-next {
right: -#{$page-gutter-small/1.1};
@media (min-width: $wrap-large-gutter-width) {
right: -#{$page-gutter-large};
}
@media (min-width: $wrap-full-gutter-width) {
right: -#{$page-gutter-full};
}
}
.slick-prev {
left: -#{$page-gutter-small/1.1};
@media (min-width: $wrap-large-gutter-width) {
left: -#{$page-gutter-large};
}
@media (min-width: $wrap-full-gutter-width) {
left: -#{$page-gutter-full};
}
&:before {
transform: rotate(180deg);
}
}
.slick-disabled {
opacity: 0;
visibility: hidden;
}
// --
.slider {
}
.slider--tiles {
.slick-slide {
// these are sized in JS,
// see sliderInit() in app.js for .js-facility-slider
// not ideal as they're pixel based not (r)em, but will do for now.
}
}
.slider--event-cards {
.slick-slide {
margin: 0 $grid-gutter 0 0;
}
}
.slider--facilities {
.slick-track {
margin: 0 -$grid-gutter;
}
.slick-slide {
margin: 0 $grid-gutter;
}
}
.accolade-slider {
&__item {
text-align: center;
margin: 0 $grid-gutter;
}
&__item-title {
margin-bottom: $spacing-xs;
border-bottom: 1px solid #FFF;
padding-bottom: $spacing-xs;
color: #FFF;
}
&__item-description {
@include typescale('sm');
@include line-height('normal');
}
&__item-img {
margin: auto;
width: auto;
max-height: 2em;
}
&__item-figure {
margin-left: auto!important;
margin-right: auto!important;
margin: 0 0 1rem 0;
& svg {
max-height: 100px;
}
}
a {
color: inherit;
text-decoration: none;
}
}
.js-slider--responsive {
.slick-slide {
margin: 0 $grid-gutter 0;
}
.slick-prev {
left: 0;
}
.slick-next {
right: 0;
}
}
.slider--modules {
// these are sized in JS,
// see sliderInit() in app.js for .js-slider--variable
.slick-slide {
max-width: 80vw;
margin: 0 $grid-gutter-small;
@media (min-width: $wrap-width) {
max-width: $wrap-width - 15rem;
}
}
}
.slider--gallery {
&__nav {
@at-root .no-js & {
display: none;
}
img {
box-sizing: border-box;
border: $spacing-2xs solid transparent;
}
.slick-current {
img {
border-color: $primary;
}
}
}
}
.js-slider--logos {
.slick-slide {
padding: 0 1rem;
}
.slick-track {
display: flex;
}
.slick-track .slick-slide {
display: flex;
height: auto;
align-items: center;
justify-content: center;
}
.logo { margin: 0 10%; }
.logo--low-aspect-ratio { margin: 0 25%; }
}