From 868f91eec7831a90e61369345d6f75a28619cf1b Mon Sep 17 00:00:00 2001 From: Ian Belanger Date: Mon, 9 Dec 2019 14:06:55 +0000 Subject: [PATCH] Bundled Themes: Make checkbox in comment form larger Twenty Twenty. This makes the checkbox in the comment form larger and more consistent with other checkboxes. Props kharisblank, audrasjb. Fixes #48652. git-svn-id: https://develop.svn.wordpress.org/trunk@46844 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentytwenty/style-rtl.css | 29 +++++++++++++++++++ src/wp-content/themes/twentytwenty/style.css | 29 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index 38ae399dd6..45d34daa33 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -693,6 +693,35 @@ input[type="checkbox"] + label { margin-right: 0.5rem; } +input[type="checkbox"] { + -webkit-appearance: none; + -moz-appearance: none; + position: relative; + top: 2px; + display: inline-block; + margin: 0; + width: 1.5rem; + min-width: 1.5rem; + height: 1.5rem; + background: #fff; + border-radius: 0; + border-style: solid; + border-width: 0.1rem; + border-color: #dcd7ca; + box-shadow: none; + cursor: pointer; +} + +input[type="checkbox"]:checked::before { + /* Use the "Yes" SVG Dashicon */ + content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E"); + position: absolute; + display: inline-block; + margin: -0.1875rem -0.25rem 0 0; + height: 1.75rem; + width: 1.75rem; +} + input, textarea, button, diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index 9f1d40d253..e1e1be4555 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -697,6 +697,35 @@ input[type="checkbox"] + label { margin-left: 0.5rem; } +input[type="checkbox"] { + -webkit-appearance: none; + -moz-appearance: none; + position: relative; + top: 2px; + display: inline-block; + margin: 0; + width: 1.5rem; + min-width: 1.5rem; + height: 1.5rem; + background: #fff; + border-radius: 0; + border-style: solid; + border-width: 0.1rem; + border-color: #dcd7ca; + box-shadow: none; + cursor: pointer; +} + +input[type="checkbox"]:checked::before { + /* Use the "Yes" SVG Dashicon */ + content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E"); + position: absolute; + display: inline-block; + margin: -0.1875rem 0 0 -0.25rem; + height: 1.75rem; + width: 1.75rem; +} + input, textarea, button,