Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Fix label being cutoff in Newsletter registration
Browse files Browse the repository at this point in the history
In this commit the label to Register in the newsletter that exists in the homepage had the text completely cut off on Tablet iOS devices

To solve this the width property was altered to use the max-content value, and a max-width property is also added. Also some paddings were set to 0 because Safari keeps adding some default padding values.
  • Loading branch information
cstergianos committed Oct 21, 2019
1 parent abbfa03 commit 7cc4507
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
}

input {
padding-left: 35px;
padding: 0 0 0 35px; // Reset some default Safari padding values.
margin-right: 35px;
}

.title {
Expand Down Expand Up @@ -78,7 +79,8 @@

.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
.block.newsletter {
width: 34%;
.lib-css(width, max-content);
max-width: 44%;
}
}

Expand Down

0 comments on commit 7cc4507

Please sign in to comment.