From bd5f0f0d0b1f0df0ffe98a7987171c37e5c68b4a Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Thu, 7 Oct 2021 16:09:40 +0100 Subject: [PATCH] Blockbase: Remove unnecessary normalize code --- blockbase/assets/ponyfill.css | 30 +++-------------------------- blockbase/sass/base/_normalize.scss | 17 ++-------------- 2 files changed, 5 insertions(+), 42 deletions(-) diff --git a/blockbase/assets/ponyfill.css b/blockbase/assets/ponyfill.css index ecca733637..c3f8d40968 100644 --- a/blockbase/assets/ponyfill.css +++ b/blockbase/assets/ponyfill.css @@ -2,21 +2,11 @@ * Base * - Reset the browser */ -body { - margin: 0; - padding: 0; -} - body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } -img { - height: auto; - max-width: 100%; -} - * { box-sizing: border-box; } @@ -331,23 +321,9 @@ button:focus { outline-offset: 2px; } -input.wp-block-search__input::placeholder, -input[type="text"]::placeholder, -input[type="email"]::placeholder, -input[type="url"]::placeholder, -input[type="password"]::placeholder, -input[type="search"]::placeholder, -input[type="number"]::placeholder, -input[type="tel"]::placeholder, -input[type="range"]::placeholder, -input[type="date"]::placeholder, -input[type="month"]::placeholder, -input[type="week"]::placeholder, -input[type="time"]::placeholder, -input[type="datetime"]::placeholder, -input[type="datetime-local"]::placeholder, -input[type="color"]::placeholder, -textarea::placeholder { +input[type="checkbox"]::placeholder, +input[type="submit"]::placeholder, +button::placeholder { color: var(--wp--custom--form--color--text); opacity: 0.66; } diff --git a/blockbase/sass/base/_normalize.scss b/blockbase/sass/base/_normalize.scss index a007cbb370..96e3f4c5ba 100644 --- a/blockbase/sass/base/_normalize.scss +++ b/blockbase/sass/base/_normalize.scss @@ -1,26 +1,13 @@ - -// Remove the margin in all browsers. -body { - margin: 0; - padding: 0; -} - // Smooth out the fonts body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } -// Needed until https://github.com/WordPress/gutenberg/pull/27518/ is merged. -img { - height: auto; - max-width: 100%; -} - * { box-sizing: border-box; } pre { - overflow: scroll; -} \ No newline at end of file + overflow: scroll; +}