diff --git a/build/98.css b/build/98.css index 9fb06c5..ccb8c99 100644 --- a/build/98.css +++ b/build/98.css @@ -265,6 +265,11 @@ input[type="checkbox"] { border: none; } +input[type="radio"] + label, +input[type="checkbox"] + label { + line-height: 13px; +} + input[type="radio"] + label { position: relative; margin-left: 18px; @@ -273,6 +278,7 @@ input[type="radio"] + label { input[type="radio"] + label::before { content: ""; position: absolute; + top: 0; left: -18px; display: inline-block; width: 12px; diff --git a/docs/98.css b/docs/98.css index 9fb06c5..ccb8c99 100644 --- a/docs/98.css +++ b/docs/98.css @@ -265,6 +265,11 @@ input[type="checkbox"] { border: none; } +input[type="radio"] + label, +input[type="checkbox"] + label { + line-height: 13px; +} + input[type="radio"] + label { position: relative; margin-left: 18px; @@ -273,6 +278,7 @@ input[type="radio"] + label { input[type="radio"] + label::before { content: ""; position: absolute; + top: 0; left: -18px; display: inline-block; width: 12px; diff --git a/style.css b/style.css index 37dbdcf..f6f9cd3 100644 --- a/style.css +++ b/style.css @@ -257,6 +257,11 @@ input[type="checkbox"] { border: none; } +input[type="radio"] + label, +input[type="checkbox"] + label { + line-height: 13px; +} + input[type="radio"] + label { position: relative; margin-left: var(--radio-total-width); @@ -265,6 +270,7 @@ input[type="radio"] + label { input[type="radio"] + label::before { content: ""; position: absolute; + top: 0; left: calc(-1 * (var(--radio-total-width-precalc))); display: inline-block; width: var(--radio-width);