Razvan Cuceu
Razvan Cuceu

Reputation: 577

Input checkbox ridiculously big on iOS Safari

Checked my site on iOS Safari and I get this huge checkbox input that looks like it's system styled. Can this be styled, or maybe made a bit smaller?

The issue can be checked here

1

Upvotes: 1

Views: 2683

Answers (3)

Paweł Bystrzan
Paweł Bystrzan

Reputation: 326

With CSS Grid I had to add width and height and line-height to input.

Upvotes: 0

Alexandre Mazel
Alexandre Mazel

Reputation: 2558

The Hoffman's solution doesn't work for my website, but this addons in the css does:

@supports (-webkit-touch-callout: none) { /* CSS specific to iOS devices */ input[type=checkbox] { -webkit-transform: scale(0.5,0.5); } }

Upvotes: 0

Andy Hoffman
Andy Hoffman

Reputation: 19109

Set the padding of the checkbox to 0 (or to a value more to your liking).

.gdlr-core-input-wrap.gdlr-core-large input:not([type="button"]):not([type="submit"]):not([type="file"]) {
  /* padding: 20px 22px; */
  padding: 0;
}

enter image description here

Upvotes: 4

Related Questions