Skip to content

Commit

Permalink
Increase performance - mobile friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
dana-cfc4 committed Feb 9, 2023
1 parent 4f38c7a commit 07d86c8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
9 changes: 6 additions & 3 deletions theme/themes/eea/extras/footer.less
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,14 @@ footer .footer-wrapper .menu {
flex-direction: column;
}

footer .footer-wrapper .menu .copyright a {
footer .footer-wrapper .menu .copyright a {
font-size: @mobileMenuCopyrightFontSize;
font-weight: @mobileMenuCopyrightFontWeight;
}

.contact-block .subcontact {
margin-top: @mobileSubcontactBlockMarginTop;
}
}

@media only screen and (min-width: @tabletBreakpoint) {
Expand Down Expand Up @@ -216,7 +220,7 @@ footer .footer-wrapper .menu {

.subfooter .logo-header {
// To match the figma align
margin-left: @computerLogoHeaderMarginLeft
margin-left: @computerLogoHeaderMarginLeft;
}

.subfooter .item {
Expand Down Expand Up @@ -246,7 +250,6 @@ footer .footer-wrapper .menu {
}

.footer .footer-wrapper .menu {

a {
font-size: @computerMenuFontSize;
}
Expand Down
1 change: 1 addition & 0 deletions theme/themes/eea/extras/footer.variables
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
@tabletContactGap : @rem-space-4;
@contactGap : @rem-space-8;
@mobileContactIconMarginRight : @space-3;
@mobileSubcontactBlockMarginTop : @space-3;
@mobileContactIconFontSize : @font-size-4;
@computerContactIconFontSize : @font-size-9;
@tabletSubcontactIconFontSize : @font-size-0;
Expand Down
8 changes: 8 additions & 0 deletions theme/themes/eea/views/card.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@
position: relative;
bottom: 0;
}

.cards-carousel .slick-dots li button:before {
background-color: @carouselDotsBackgroundColor;
color: transparent;
Expand All @@ -390,6 +391,13 @@
outline-style: auto;
}

@media only screen and (max-width: @tabletBreakpoint) {
.cards-carousel .slick-dots li button {
width: @mobileCarouselDotsButtonWidth;
height: @mobileCarouselDotsButtonHeight;
}
}

@media only screen and (min-width: @computerBreakpoint) {
.cards-carousel .slick-dots li button:before {
width: inherit;
Expand Down
2 changes: 2 additions & 0 deletions theme/themes/eea/views/card.variables
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@
@carouselDotsActiveBackgroundColor: @darkCerulean;
@mobileCarouselDotsWidth: 0.875rem;
@mobileCarouselDotsHeight: 0.875rem;
@mobileCarouselDotsButtonWidth: 3.125rem;
@mobileCarouselDotsButtonHeight: 3.125rem;

/* Slick wrapper */
@slickListMargin: 0 -0.75em;
Expand Down

0 comments on commit 07d86c8

Please sign in to comment.