From 8ec2f6fb15dc64e5715ef8a92036e0b38912bc0a Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Thu, 18 Feb 2021 12:08:16 +0000 Subject: [PATCH] Simplify editor styles --- penscratch-2/css/reset.css | 70 ++++++++++++++++++++++++++++++++++++ penscratch-2/functions.php | 3 ++ penscratch-2/style.css | 72 -------------------------------------- 3 files changed, 73 insertions(+), 72 deletions(-) create mode 100644 penscratch-2/css/reset.css diff --git a/penscratch-2/css/reset.css b/penscratch-2/css/reset.css new file mode 100644 index 0000000000..7877c83b72 --- /dev/null +++ b/penscratch-2/css/reset.css @@ -0,0 +1,70 @@ +/* =Reset +-------------------------------------------------------------- */ +html, +body, +div, +span, +applet, +object, +iframe, +h1, +h2, +h3, +h4, +h5, +h6, +p, +blockquote, +pre, +a, +abbr, +acronym, +address, +big, +cite, +code, +del, +dfn, +em, +font, +ins, +kbd, +q, +s, +samp, +small, +strike, +strong, +sub, +sup, +tt, +var, +dl, +dt, +dd, +ol, +ul, +li, +fieldset, +form, +label, +legend, +table, +caption, +tbody, +tfoot, +thead, +tr, +th, +td, +th { + font-family: inherit; + font-size: 100%; + font-weight: inherit; + font-style: inherit; + margin: 0; + padding: 0; + vertical-align: baseline; + border: 0; + outline: 0; +} diff --git a/penscratch-2/functions.php b/penscratch-2/functions.php index 3e115aa2a4..b1a55e5ec7 100644 --- a/penscratch-2/functions.php +++ b/penscratch-2/functions.php @@ -216,6 +216,9 @@ function penscratch_2_scripts() { wp_enqueue_style( 'penscratch-2-style', get_stylesheet_uri() ); wp_enqueue_style( 'penscratch-2-fonts', penscratch_2_fonts_url(), array(), null ); + // Theme reset stylesheet + wp_enqueue_style( 'penscratch-2-reset', get_theme_file_uri( '/css/reset.css' ), array( 'penscratch-2-style' ), '1.0' ); + // Theme block stylesheet. wp_enqueue_style( 'penscratch-2-block-style', get_theme_file_uri( '/css/blocks.css' ), array( 'penscratch-2-style' ), '1.0' ); diff --git a/penscratch-2/style.css b/penscratch-2/style.css index b97ac33b07..fc73f1593a 100644 --- a/penscratch-2/style.css +++ b/penscratch-2/style.css @@ -19,78 +19,6 @@ * along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/ * and Blueprint http://www.blueprintcss.org/ */ - -/* =Reset --------------------------------------------------------------- */ -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -font, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -th { - font-family: inherit; - font-size: 100%; - font-weight: inherit; - font-style: inherit; - margin: 0; - padding: 0; - vertical-align: baseline; - border: 0; - outline: 0; -} - html { font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/4/#c790 */