Browse Source

Merge pull request #3305 from Automattic/remove/libre-2-editor-styles

Libre 2: Remove editor styles
Ben Dwyer 4 years ago
parent
commit
f45441b91a
5 changed files with 12 additions and 1035 deletions
  1. 0 50
      libre-2/css/blocks.css
  2. 1 514
      libre-2/css/editor-blocks.css
  3. 0 453
      libre-2/editor-style.css
  4. 10 17
      libre-2/functions.php
  5. 1 1
      libre-2/style.css

+ 0 - 50
libre-2/css/blocks.css

@@ -78,42 +78,6 @@ Description: Used to style Gutenberg Blocks.
 	margin-right: inherit;
 }
 
-/*--------------------------------------------------------------
-2.0 General Block Styles
---------------------------------------------------------------*/
-
-/* Captions */
-
-[class^="wp-block-"] figcaption {
-	color: inherit;
-	font-size: 14px;
-	font-style: italic;
-	position: relative;
-}
-
-[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
-	text-align: left;
-}
-
-[class^="wp-block-"]:not(.wp-block-gallery) figcaption::after {
-	border-top: 1px solid;
-	clear: both;
-	content: "";
-	display: block;
-	margin-top: .875em;
-	padding-top: .875em;
-	width: 25%;
-}
-
-[class^="wp-block-"].alignfull:not(.wp-block-gallery) figcaption {
-	padding-left: 2vw;
-	padding-right: 2vw;
-}
-
-.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
-	text-align: right;
-}
-
 /*--------------------------------------------------------------
 3.0 Blocks - Common Blocks
 --------------------------------------------------------------*/
@@ -125,12 +89,6 @@ p.has-drop-cap:not(:focus)::first-letter {
 	margin-top: 0.15em;
 }
 
-/* Gallery */
-
-.wp-block-gallery {
-	margin: 0 0 1.75em;
-}
-
 /* Quote */
 
 .wp-block-quote p,
@@ -418,14 +376,6 @@ p.has-drop-cap:not(:focus)::first-letter {
 }
 
 /* Latest Comments */
-
-.wp-block-latest-comments {
-	margin-left: 0;
-	margin-right: 0;
-	padding-left: 0;
-	padding-right: 0;
-}
-
 .wp-block-latest-comments__comment a {
 	box-shadow: 0 1px 0 0 rgba(0,0,0,0);
 }

+ 1 - 514
libre-2/css/editor-blocks.css

@@ -1,535 +1,22 @@
-/*
-Theme Name: Libre 2
-Description: Used to style Gutenberg Blocks in the editor.
-*/
-
-/*--------------------------------------------------------------
->>> TABLE OF CONTENTS:
-----------------------------------------------------------------
-1.0 General Typography
-2.0 General Block Settings
-3.0 Blocks - Common Blocks
-4.0 Blocks - Formatting
-5.0 Blocks - Layout Elements
-6.0 Blocks - Widgets
-
---------------------------------------------------------------*/
-
-/*--------------------------------------------------------------
-1.0 General Typography
---------------------------------------------------------------*/
-
-.edit-post-visual-editor .editor-block-list__block,
-.editor-default-block-appender textarea.editor-default-block-appender__content {
-	font-family: "Libre Baskerville", Libre, Georgia, Times, serif;
-}
-
-.edit-post-visual-editor .editor-block-list__block,
-.edit-post-visual-editor .editor-block-list__block p,
-.editor-default-block-appender textarea.editor-default-block-appender__content {
-	font-size: 16px;
-}
-
-.edit-post-visual-editor .editor-block-list__block {
-	color: #404040;
-}
-
-/* Post title */
-
-.editor-post-title__block .editor-post-title__input {
-	color: #404040;
-	font-family: "Libre Baskerville", Libre, Georgia, Times, serif;
-	font-size: 29px;
-}
-
-@media screen and ( min-width: 720px ) {
-	.editor-post-title__block .editor-post-title__input {
-		font-size: 47px;
-	}
-}
-
-/* Headings */
-
-.edit-post-visual-editor h1,
-.wp-block-freeform.block-library-rich-text__tinymce h1 {
-	font-size: 29px;
-}
-
-.edit-post-visual-editor h2,
-.wp-block-freeform.block-library-rich-text__tinymce h2 {
-	font-size: 23px;
-}
-
-.edit-post-visual-editor h3,
-.wp-block-freeform.block-library-rich-text__tinymce h3 {
-	font-size: 18px;
-}
-
-.edit-post-visual-editor h4,
-.wp-block-freeform.block-library-rich-text__tinymce h4 {
-	font-size: 14px;
-}
-
-.edit-post-visual-editor h5,
-.wp-block-freeform.block-library-rich-text__tinymce h5 {
-	font-size: 13px;
-}
-
-.edit-post-visual-editor h6,
-.wp-block-freeform.block-library-rich-text__tinymce h6 {
-	font-size: 12px;
-}
-
-@media (min-width: 720px) {
-	.editor-styles-wrapper.edit-post-visual-editor h1,
-	.wp-block-freeform.block-library-rich-text__tinymce h1 {
-		font-size: 47px;
-	}
-
-	.editor-styles-wrapper.edit-post-visual-editor h2,
-	.wp-block-freeform.block-library-rich-text__tinymce h2 {
-		font-size: 29px;
-	}
-
-	.editor-styles-wrapper.edit-post-visual-editor h3,
-	.wp-block-freeform.block-library-rich-text__tinymce h3 {
-		font-size: 23px;
-	}
-
-	.editor-styles-wrapper.edit-post-visual-editor h4,
-	.wp-block-freeform.block-library-rich-text__tinymce h4 {
-		font-size: 18px;
-	}
-
-	.editor-styles-wrapper.edit-post-visual-editor h5,
-	.wp-block-freeform.block-library-rich-text__tinymce h5 {
-		font-size: 14px;
-	}
-
-	.editor-styles-wrapper.edit-post-visual-editor h6,
-	.wp-block-freeform.block-library-rich-text__tinymce h6 {
-		font-size: 13px;
-	}
-}
-
-/*--------------------------------------------------------------
-2.0 General Block Settings
---------------------------------------------------------------*/
-
-/* Main content width */
-
-.wp-block {
-	max-width: 705px; /* 675px + 30px to account for padding */
-}
-
-/* Link styles */
-
-.edit-post-visual-editor a,
-.editor-block-list__block a,
-.wp-block-freeform.block-library-rich-text__tinymce a {
+a {
 	box-shadow: 0 1px 0 0 currentColor;
 	color: #404040;
 	text-decoration: none;
 	transition: 0.2s;
 }
 
-/* Caption styles */
-
-[class^="wp-block-"] figcaption {
-	color: inherit;
-	font-size: 14px;
-	font-style: italic;
-	position: relative;
-}
-
-[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
-	text-align: left;
-}
-
-[class^="wp-block-"]:not(.wp-block-gallery) figcaption::after {
-	border-top: 1px solid;
-	clear: both;
-	content: "";
-	display: block;
-	margin-top: .875em;
-	padding-top: .875em;
-	width: 25%;
-}
-
-.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
-	text-align: right;
-}
-
-/* Table styles */
-
-.wp-block-freeform.block-library-rich-text__tinymce table,
-.wp-block-freeform.block-library-rich-text__tinymce table th,
-.wp-block-freeform.block-library-rich-text__tinymce table td {
-	border: 0;
-}
-
-.rtl .wp-block-freeform.block-library-rich-text__tinymce td,
-.rtl .wp-block-freeform.block-library-rich-text__tinymce th {
-	text-align: right;
-}
-
-/* Quote styles */
-
-.wp-block-freeform.block-library-rich-text__tinymce blockquote {
-	border: 0;
-	padding-left: 2.5em;
-}
-
-.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
-	content: "\201c";
-	display: block;
-	font-size: 72px;
-	line-height: 1;
-	position: absolute;
-	top: 0;
-	left: 0;
-}
-
-.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
-	font-style: italic;
-}
-
-.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
-	padding-left: 0;
-	padding-right: 2.5em;
-}
-
-.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
-	left: auto;
-	right: 0;
-}
-
-@media (min-width: 720px) {
-	.wp-block-freeform.block-library-rich-text__tinymce blockquote {
-		padding-left: 4em;
-	}
-
-	.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
-		padding-left: 0;
-		padding-right: 4em;
-	}
-
-	.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
-		font-size: 23px;
-	}
-
-	.wp-block-freeform.block-library-rich-text__tinymce blockquote:before {
-		font-size: 129px;
-	}
-}
-
-/* Definition List styles */
-
-.wp-block-freeform.block-library-rich-text__tinymce dt {
-	font-weight: bold;
-}
-
-/* Pre styles */
-
-.editor-styles-wrapper .wp-block-freeform.block-library-rich-text__tinymce pre {
-	font-family: "Libre Baskerville", Libre, Georgia, Times, serif;
-	font-size: inherit;
-}
-
-/*--------------------------------------------------------------
-3.0 Blocks - Common Blocks
---------------------------------------------------------------*/
-
-/* Paragraph */
-
-p.has-drop-cap:not(:focus)::first-letter {
-	font-size: 5em;
-	margin-top: 0.15em;
-}
-
 /* Quote */
-
-.wp-block-quote p,
-.wp-block-quote.is-large p,
-.wp-block-quote.is-style-large p {
-	margin-bottom: 1.0em;
-}
-
 .wp-block-quote:not(.is-large):not(.is-style-large) {
 	border: 0;
-	padding-left: 0.5em;
-}
-
-.wp-block-quote:before {
-	left: -40.5px;
-}
-
-.wp-block-quote.is-large:before,
-.wp-block-quote.is-style-large:before {
-	display: none
-}
-
-.wp-block-quote__citation {
-	color: inherit;
-	font-size: inherit;
-	font-style: italic;
-}
-
-.wp-block-quote.is-large,
-.wp-block-quote.is-style-large {
-	font-style: normal;
-	padding: 0;
-}
-
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
-.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
-	font-size: 20px;
-	font-style: normal;
-}
-
-.wp-block-quote.is-large .wp-block-quote__citation,
-.wp-block-quote.is-style-large .wp-block-quote__citation {
-	font-size: 18px;
-}
-
-.rtl .wp-block-quote:before,
-.wp-block-quote[style*="text-align:right"]:before,
-.wp-block-quote[style*="text-align: right"]:before {
-	left: auto;
-	right: -40.5px;
-}
-
-.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:left"],
-.rtl .wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: left"] {
-	padding-left: 0.5em;
-	padding-right: 0;
-}
-
-.rtl .wp-block-quote:not(.is-large):not(.is-style-large),
-.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align:right"],
-.wp-block-quote:not(.is-large):not(.is-style-large)[style*="text-align: right"] {
-	padding-left: 0;
-	padding-right: 0.5em;
-}
-
-.rtl .wp-block-quote[style*="text-align:left"]:before,
-.rtl .wp-block-quote[style*="text-align: left"]:before {
-	left: -40.5px;
-	right: auto;
-}
-
-@media (min-width: 720px) {
-
-	.edit-post-visual-editor .editor-block-list__block .wp-block-quote p {
-		font-size: 23px;
-	}
-
-	.editor-styles-wrapper .wp-block-quote:before {
-		font-size: 129px;
-	}
-
-	.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large p,
-	.edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-style-large p {
-		font-size: 28.75px;
-	}
-
-	.wp-block-quote.is-large .wp-block-quote__citation,
-	.wp-block-quote.is-style-large .wp-block-quote__citation {
-		font-size: 23px;
-	}
-
-	.rtl .wp-block-quote:before,
-	.wp-block-quote[style*="text-align:right"]:before,
-	.wp-block-quote[style*="text-align: right"]:before {
-		right: -70.5px;
-	}
-
-	.rtl .wp-block-quote[style*="text-align:left"]:before,
-	.rtl .wp-block-quote[style*="text-align: left"]:before {
-		left: -70.5px;
-	}
-}
-
-/* Audio */
-
-.editor-styles-wrapper .wp-block-audio {
-	margin-left: 0;
-	margin-right: 0;
-}
-
-/* Cover */
-
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-image-text,
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image .wp-block-cover-text,
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover-image h2,
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-image-text,
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover .wp-block-cover-text,
-.edit-post-visual-editor .editor-block-list__block .wp-block-cover h2 {
-	font-size: 1.5em;
-}
-
-/* File */
-
-.wp-block-file :not(.wp-block-file__button) {
-	box-shadow: none;
-}
-
-.wp-block-file .wp-block-file__button {
-	border: 0 none;
-	border-radius: 0;
-	box-shadow: 0 2px 0 0 currentColor;
-	background: transparent;
-	color: #404040;
-	font-size: 18px;
-	font-size: 1rem;
-	font-weight: bold;
-	padding: 0.21875em 0;
-	transition: 0.2s;
-}
-
-/*--------------------------------------------------------------
-4.0 Blocks - Formatting
---------------------------------------------------------------*/
-
-/* Verse */
-
-.wp-block-verse {
-	font-style: italic;
-}
-
-.editor-styles-wrapper .wp-block-verse pre {
-	font-family: "Libre Baskerville", Libre, Georgia, Times, serif;
-}
-
-.wp-block-verse pre {
-	padding: 0;
-}
-
-/* Code */
-
-.wp-block-code {
-	border: none;
-	border-radius: 0;
-}
-
-.wp-block-code textarea {
-	background: transparent;
-}
-
-/* Preformatted */
-
-.editor-styles-wrapper .wp-block-preformatted pre {
-	font-family: "Libre Baskerville", Libre, Georgia, Times, serif;
 }
 
 /* Pullquote */
-
 .wp-block-pullquote {
 	border: 0;
 }
 
-.editor-styles-wrapper .wp-block-pullquote blockquote {
-	margin-left: inherit;
-	padding: 0;
-}
-
-.editor-styles-wrapper .wp-block-pullquote blockquote:before {
-	display: none;
-}
-
-.wp-block-pullquote blockquote p {
-	margin-bottom: 0.75em;
-}
-
 .wp-block-pullquote .wp-block-pullquote__citation {
 	font-size: inherit;
 	font-style: italic;
 	text-transform: none;
 }
-
-.wp-block-pullquote.alignleft blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
-.wp-block-pullquote.alignright blockquote > .block-library-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
-.wp-block-pullquote.alignleft blockquote > .editor-rich-text p,
-.wp-block-pullquote.alignright blockquote > .editor-rich-text p {
-	font-size: 20px;
-}
-
-/* Table */
-
-.wp-block-table,
-.wp-block-table td,
-.wp-block-table th {
-	border: 0;
-}
-
-.wp-block-table th {
-	text-align: left;
-}
-
-.rtl .wp-block-table th {
-	text-align: right;
-}
-
-.wp-block-table__cell-content {
-	padding: 0;
-}
-
-/*--------------------------------------------------------------
-5.0 Blocks - Layout Elements
---------------------------------------------------------------*/
-
-/* Buttons */
-
-.wp-block-button .wp-block-button__link {
-	box-shadow: none;
-}
-
-.wp-block-button__link {
-	background: #404040;
-	color: #fff;
-	font-size: 18px;
-	font-size: 1rem;
-	font-weight: bold;
-	padding: 0.5em 1.25em;
-	transition: 0.2s;
-}
-
-.is-style-outline .wp-block-button__link {
-	border-color: currentColor;
-	background-color: transparent;
-}
-
-.is-style-outline .wp-block-button__link:not(.has-text-color) {
-	color: #222;
-}
-
-/* Separator */
-
-.wp-block-separator {
-	background-color: #ccc;
-	border: 0;
-	height: 1px;
-}
-
-/*--------------------------------------------------------------
-6.0 Blocks - Widgets
---------------------------------------------------------------*/
-
-/* General Widget styles */
-
-.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
-.edit-post-visual-editor [data-align="center"] .wp-block-archives,
-.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
-	list-style-position: inside;
-}
-
-/* Latest Comments */
-
-.editor-styles-wrapper .wp-block-latest-comments {
-	padding-left: 0;
-	padding-right: 0;
-}
-
-.wp-block-latest-comments__comment a {
-	box-shadow: 0 1px 0 0 rgba(0,0,0,0);
-}

+ 0 - 453
libre-2/editor-style.css

@@ -1,453 +0,0 @@
-/*--------------------------------------------------------------
-# Normalize
---------------------------------------------------------------*/
-
-a {
-	background-color: transparent;
-}
-
-a:active,
-a:hover {
-	outline: 0;
-}
-
-abbr[title] {
-	border-bottom: 1px dotted;
-}
-
-b,
-strong {
-	font-weight: bold;
-}
-
-dfn {
-	font-style: italic;
-}
-
-h1 {
-	font-size: 2em;
-	margin: 0.67em 0;
-}
-
-mark {
-	background: #ff0;
-	color: #404040;
-}
-
-small {
-	font-size: 13px;
-}
-
-sub,
-sup {
-	font-size: 75%;
-	line-height: 0;
-	position: relative;
-	vertical-align: baseline;
-}
-
-sup {
-	top: -0.5em;
-}
-
-sub {
-	bottom: -0.25em;
-}
-
-img {
-	border: 0;
-}
-
-svg:not(:root) {
-	overflow: hidden;
-}
-
-figure {
-	margin: 1em 0;
-}
-
-hr {
-	box-sizing: content-box;
-	height: 0;
-}
-
-pre {
-	overflow: auto;
-}
-
-code,
-kbd,
-pre,
-samp {
-	font-family: monospace, monospace;
-	font-size: 1em;
-}
-
-button,
-input,
-optgroup,
-select,
-textarea {
-	color: inherit;
-	font: inherit;
-	margin: 0;
-}
-
-optgroup {
-	font-weight: bold;
-}
-
-table {
-	border-collapse: collapse;
-	border-spacing: 0;
-}
-
-td,
-th {
-	padding: 0;
-}
-
-/*--------------------------------------------------------------
-# Typography
---------------------------------------------------------------*/
-html .mceContentBody {
-	max-width: 739px;
-}
-body.mceContentBody {
-	color: #404040;
-	font-family: "Libre Baskerville", Libre 2, Georgia, Times, serif;
-	font-size: 18px;
-	font-size: 1rem;
-	line-height: 1.75;
-}
-
-h1,
-h2,
-h3,
-h4,
-h5,
-h6 {
-	clear: both;
-	font-family: "Libre Baskerville", Libre 2, Georgia, Times, serif;
-	font-weight: bold;
-	margin: 0 0 .875em;
-}
-h1 {
-	font-size: 29px;
-	font-size: 1.8125rem;
-	line-height: 1.3;
-}
-h2 {
-	font-size: 23px;
-	font-size: 1.4375rem;
-}
-h3 {
-	font-size: 18px;
-	font-size: 1rem;
-}
-h4 {
-	font-size: 14px;
-	font-size: .875rem;
-}
-h5 {
-	font-size: 13px;
-	font-size: .8125rem;
-}
-h6 {
-	font-size: 12px;
-	font-size: .75rem;
-}
-p {
-	margin-top: 0;
-	margin-bottom: 1.75em;
-}
-
-dfn,
-cite,
-em,
-i {
-	font-style: italic;
-}
-
-blockquote {
-	margin: 0 1.75em 1.75em 2.25em;
-	font-size: 18px;
-}
-
-address {
-	margin: 0 0 1.75em;
-}
-
-pre {
-	font-family: "Libre Baskerville", Libre 2, Georgia, Times, serif;
-	margin-bottom: 1.75em;
-	max-width: 100%;
-	overflow: auto;
-}
-
-code,
-kbd,
-tt,
-var {
-	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
-	font-size: 16px;
-}
-
-abbr,
-acronym {
-	border-bottom: 1px dotted #666;
-	cursor: help;
-}
-
-mark,
-ins {
-	background: #fff9c0;
-	text-decoration: none;
-}
-
-big {
-	font-size: 125%;
-}
-
-/*--------------------------------------------------------------
-# Elements
---------------------------------------------------------------*/
-html {
-	box-sizing: border-box;
-}
-
-body {
-	background: #fff; /* Fallback for when there is no custom background color defined. */
-}
-
-blockquote:before,
-blockquote:after,
-q:before,
-q:after {
-	content: "";
-}
-
-blockquote,
-q {
-	quotes: "" "";
-}
-
-blockquote {
-	position: relative;
-}
-blockquote:before {
-	content: "\201c";
-	display: block;
-	font-size: 72px;
-	line-height: 1;
-	position: absolute;
-		top: 0;
-		left: -.6em;
-}
-blockquote blockquote {
-	margin-right: 0;
-}
-blockquote.alignleft,
-blockquote.alignright {
-	max-width: 47%;
-}
-blockquote.alignleft,
-blockquote.aligncenter {
-	margin-left: 2em;
-}
-blockquote.alignright {
-	margin-left: 3.5em;
-}
-.comments-area blockquote {
-	font-size: 18px;
-}
-
-.intro {
-	font-style: italic;
-	font-size: 23px;
-}
-
-hr {
-	background-color: #404040;
-	border: 0;
-	height: 1px;
-	margin-bottom: 1.75em;
-}
-
-ul,
-ol {
-	margin: 0 0 1.75em 0;
-	padding-left: 1.75em;
-}
-
-ul {
-	list-style: disc;
-}
-
-ol {
-	list-style: decimal;
-}
-
-li > ul,
-li > ol {
-	margin-bottom: 0;
-	margin-left: .4375em;
-}
-
-dt {
-	font-weight: bold;
-}
-
-dd {
-	margin: 0 1.75em 1.75em;
-}
-
-img {
-	height: auto; /* Make sure images are scaled correctly. */
-	max-width: 100%; /* Adhere to container width. */
-}
-
-table {
-	margin: 0 0 1.75em;
-	width: 100%;
-}
-
-td {
-	padding: 3px;
-}
-
-caption {
-	font-weight: bold;
-	padding: .4375em 0;
-}
-
-/*--------------------------------------------------------------
-## Captions
---------------------------------------------------------------*/
-.wp-caption {
-	max-width: 100%;
-	padding: 0;
-	margin-bottom: 1.75em;
-}
-.wp-caption img[class*="wp-image-"] {
-	display: block;
-	margin: 0 auto;
-}
-.wp-caption-dd {
-	font-size: 14px;
-	font-style: italic;
-	position: relative;
-}
-.wp-caption-dd:before {
-	content: "\2014";
-	font-style: normal;
-	position: absolute;
-		top: 0;
-		left: -1.75em;
-}
-.wp-caption .wp-caption-dd {
-	margin: 0.8075em 0;
-}
-
-/*--------------------------------------------------------------
-# Alignments
---------------------------------------------------------------*/
-.alignleft {
-	display: inline;
-	float: left;
-	margin: .875em 1.75em .875em 0 !important;
-}
-
-.alignright {
-	display: inline;
-	float: right;
-	margin: .875em 0 .875em 1.75em !important;
-}
-
-.aligncenter {
-	clear: both;
-	display: block;
-	margin: .875em auto !important;
-}
-
-/*--------------------------------------------------------------
-## Galleries
---------------------------------------------------------------*/
-.gallery {
-	margin-bottom: 1.75em;
-}
-
-.gallery-item {
-	display: inline-block;
-	padding: 0.4375em;
-	margin: 0;
-	text-align: center;
-	vertical-align: top;
-	width: 100%;
-}
-
-.gallery-columns-2 .gallery-item {
-	max-width: 50%;
-}
-
-.gallery-columns-3 .gallery-item {
-	max-width: 33.33%;
-}
-
-.gallery-columns-4 .gallery-item {
-	max-width: 25%;
-}
-
-.gallery-columns-5 .gallery-item {
-	max-width: 20%;
-}
-
-.gallery-columns-6 .gallery-item {
-	max-width: 16.66%;
-}
-
-.gallery-columns-7 .gallery-item {
-	max-width: 14.28%;
-}
-
-.gallery-columns-8 .gallery-item {
-	max-width: 12.5%;
-}
-
-.gallery-columns-9 .gallery-item {
-	max-width: 11.11%;
-}
-
-.gallery-caption {
-	display: block;
-}
-
-@media screen and ( min-width: ) {
-	h1,
-	.singular .entry-title {
-		font-size: 47px;
-		font-size: 2.9375rem;
-		margin: 0 0 0.4375em;
-	}
-	h2 {
-		font-size: 29px;
-		font-size: 1.8125rem;
-		margin: 0 0 0.4375em;
-	}
-	h3 {
-		font-size: 23px;
-		font-size: 1.4375rem;
-	}
-	h4 {
-		font-size: 18px;
-		font-size: 1rem;
-	}
-	h5 {
-		font-size: 14px;
-		font-size: .875rem;
-	}
-	h6 {
-		font-size: 13px;
-		font-size: .8125rem;
-	}
-}

+ 10 - 17
libre-2/functions.php

@@ -32,9 +32,6 @@ if ( ! function_exists( 'libre_2_setup' ) ) :
 		 */
 		add_theme_support( 'title-tag' );
 
-		/* Add support for editor styles */
-		add_editor_style( array( 'editor-style.css', libre_2_fonts_url() ) );
-
 		// This theme uses wp_nav_menu() in one location.
 		register_nav_menus(
 			array(
@@ -88,8 +85,17 @@ if ( ! function_exists( 'libre_2_setup' ) ) :
 			)
 		);
 
-		// Load regular editor styles into the new block-based editor.
+		/* Add support for editor styles */
 		add_theme_support( 'editor-styles' );
+		// Load regular editor styles into the new block-based editor.
+		add_editor_style(
+			array(
+				'style.css',
+				'/css/blocks.css',
+				'/css/editor-blocks.css',
+				libre_2_fonts_url(),
+			)
+		);
 
 		// Add support for responsive embeds.
 		add_theme_support( 'responsive-embeds' );
@@ -260,19 +266,6 @@ function libre_2_scripts() {
 }
 add_action( 'wp_enqueue_scripts', 'libre_2_scripts' );
 
-/**
- * Enqueue editor styles for Gutenberg
- */
-function libre_2_block_editor_styles() {
-	// Block styles.
-	wp_enqueue_style( 'libre-2-block-editor-style', get_theme_file_uri( '/css/editor-blocks.css' ) );
-
-	// Fonts.
-	wp_enqueue_style( 'libre-2-fonts', libre_2_fonts_url(), array(), null );
-}
-add_action( 'enqueue_block_editor_assets', 'libre_2_block_editor_styles' );
-
-
 /*
  * Filters the Categories archive widget to add a span around the post count
  */

+ 1 - 1
libre-2/style.css

@@ -4,7 +4,7 @@ Theme URI: http://wordpress.com/themes/libre-2/
 Author: Automattic
 Author URI: http://wordpress.com/themes/
 Description: A stylish, classic look for your personal blog or long-form writing site. The main navigation bar stays fixed to the top while your visitors read, keeping your most important content at hand, while three footer widget areas give your secondary content a comfortable home.
-Version: 2.2.5-wpcom
+Version: 2.2.6-wpcom
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: libre