Forráskód Böngészése

Begin editor styles.

Caroline Moore 6 éve
szülő
commit
4b414bea7e
2 módosított fájl, 73 hozzáadás és 90 törlés
  1. 1 0
      rebalance/blocks.css
  2. 72 90
      rebalance/editor-blocks.css

+ 1 - 0
rebalance/blocks.css

@@ -397,6 +397,7 @@ hr.wp-block-separator {
 	margin-bottom: 0;
 }
 
+.wp-block-latest-posts,
 .rtl .wp-block-latest-posts {
 	margin-left: 0;
 	margin-right: 0;

+ 72 - 90
rebalance/editor-blocks.css

@@ -21,9 +21,9 @@
 .edit-post-visual-editor .editor-block-list__block,
 .edit-post-visual-editor .editor-block-list__block p:not(.wp-block-cover-text),
 .editor-default-block-appender input[type="text"].editor-default-block-appender__content {
-	color: #222;
-	font-family: Lato, sans-serif;
-	font-size: 16px;
+	color: #555;
+	font-family: "Rubik", "Helvetica Neue", sans-serif;
+	font-size: 17px;
 	line-height: 1.5;
 }
 
@@ -31,14 +31,14 @@
 .editor-block-list__layout .editor-block-list__block[data-align=left] .editor-block-list__block-edit {
 	display: inline;
 	float: left;
-	margin: 0 24px 12px 0;
+	margin: 0 1.5em .75em 0;
 }
 
 .alignright,
 .editor-block-list__layout .editor-block-list__block[data-align=right] .editor-block-list__block-edit {
 	display: inline;
 	float: right;
-	margin: 0 0 12px 24px;
+	margin: 0 0 .75em 1.5em;
 }
 
 .aligncenter,
@@ -57,13 +57,11 @@
 /* Title */
 
 .editor-post-title__block .editor-post-title__input {
-	clear: both;
-	font-family: Neuton, serif;
-	font-weight: normal;
-	margin-bottom: 24px;
-	margin-top: 0;
-	font-size: 32px;
-	line-height: 1.125;
+	font-family: "Libre Baskerville", Georgia, serif;
+	font-weight: 700;
+	margin-bottom: .5em;
+	font-size: 36px;
+	line-height: 1.125em;
 }
 
 /* Headings */
@@ -74,41 +72,33 @@
 .edit-post-visual-editor h4,
 .edit-post-visual-editor h5,
 .edit-post-visual-editor h6 {
-	clear: both;
-	font-family: Neuton, serif;
-	font-weight: normal;
-	margin-bottom: 24px;
-	margin-top: 0;
+	font-family: "Libre Baskerville", Georgia, serif;
+	font-weight: 700;
+	margin-bottom: .5em;
 }
 
 .edit-post-visual-editor h1 {
-	font-size: 40px;
-	line-height: 1.2;
+	font-size: 36px;
 }
 
 .edit-post-visual-editor h2 {
-	font-size: 32px;
-	line-height: 1.125;
+	font-size: 28px;
 }
 
 .edit-post-visual-editor h3 {
-	font-size: 25px;
-	line-height: 1.2;
+	font-size: 24px;
 }
 
 .edit-post-visual-editor h4 {
-	font-size: 20px;
-	line-height: 1.2;
+	font-size: 18px;
 }
 
 .edit-post-visual-editor h5 {
-	font-size: 16px;
-	line-height: 1.5;
+	font-size: 18px;
 }
 
 .edit-post-visual-editor h6 {
-	font-size: 13px;
-	line-height: 1.3847;
+	font-size: 18px;
 }
 
 /* Images */
@@ -161,7 +151,7 @@
 .edit-post-visual-editor ol,
 .editor-block-list__block ol,
 .block-library-list ol.editor-rich-text__tinymce {
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 	padding: 0;
 }
 
@@ -189,7 +179,7 @@
 .editor-block-list__block li > ol,
 .block-library-list li > ol {
 	margin-bottom: 0;
-	margin-left: 24px;
+	margin-left: 1.5em;
 }
 
 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
@@ -199,7 +189,7 @@
 .rtl .editor-block-list__block ol,
 .rtl .block-library-list ol.editor-rich-text__tinymce {
 	margin-left: 0;
-	margin-right: 24px;
+	margin-right: 1.5em;
 	padding: 0;
 }
 
@@ -222,19 +212,19 @@
 }
 
 .edit-post-visual-editor p {
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 }
 
 .edit-post-visual-editor blockquote p {
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 }
 
 /* Quote */
 
 .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 	border: 0;
-	padding: 24px 0;
+	padding: 1.5em 0;
 	border-bottom: 3px solid currentcolor;
 	border-top: 3px solid currentColor;
 }
@@ -248,8 +238,8 @@
 	font-size: 20px;
 	font-style: italic;
 	line-height: 1.2;
-	margin: 0 0 24px;
-	padding: 24px 0;
+	margin: 0 0 1.5em;
+	padding: 1.5em 0;
 }
 
 .edit-post-visual-editor .editor-block-list__block blockquote p:not(.wp-block-cover-text) {
@@ -279,22 +269,22 @@
 }
 
 .editor-block-list__block .wp-block-quote.alignleft {
-	margin: 12px 24px 12px 0;
+	margin: .75em 1.5em .75em 0;
 }
 
 .editor-block-list__block .wp-block-quote.alignright {≈
-	margin: 12px 0 12px 24px;
+	margin: .75em 0 .75em 1.5em;
 }
 
 .editor-block-list__block .wp-block-quote.aligncenter {
-	margin-bottom: 12px;
+	margin-bottom: .75em;
 }
 
 .wp-block-quote.is-large,
 .wp-block-quote.is-style-large {
 	font-size: 28px;
-	margin: 0 0 24px;
-	padding: 24px 0;
+	margin: 0 0 1.5em;
+	padding: 1.5em 0;
 }
 
 .edit-post-visual-editor .editor-block-list__block .wp-block-quote.is-large,
@@ -306,14 +296,14 @@
 
 .editor-block-list__block .wp-block-quote.is-large p,
 .editor-block-list__block .wp-block-quote.is-style-large p {
-	margin-bottom: 24px;
+	margin-bottom: 1.5em;
 	font-style: normal;
 }
 
 /* File */
 
 .wp-block-file {
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 }
 
 .wp-block-file .wp-block-file__button {
@@ -323,7 +313,7 @@
 	color: #fff;
 	font-weight: bold;
 	line-height: 1;
-	padding: 6px 12px;
+	padding: 6px .75em;
 	text-transform: uppercase;
 }
 
@@ -336,7 +326,7 @@
 }
 
 .rtl .wp-block-file .wp-block-file__button {
-	margin-left: 12px;
+	margin-left: .75em;
 	margin-right: 0;
 }
 
@@ -352,7 +342,7 @@
 	font-family: inherit;
 	font-size: inherit;
 	line-height: inherit;
-	margin-bottom: 24px;
+	margin-bottom: 1.5em;
 	max-width: 100%;
 	overflow: auto;
 	padding: 0;
@@ -366,7 +356,7 @@
 	font-size: 16px;
 	max-width: 100%;
 	overflow: auto;
-	padding: 12px;
+	padding: .75em;
 }
 
 .wp-block-code textarea {
@@ -380,17 +370,17 @@
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce address {
-	margin-bottom: 24px;
+	margin-bottom: 1.5em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce ol {
 	list-style: decimal;
-	margin-left: 24px;
+	margin-left: 1.5em;
 	padding: 0;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce li > ol {
-	margin-left: 24px;
+	margin-left: 1.5em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce blockquote {
@@ -402,8 +392,8 @@
 	font-size: 20px;
 	font-style: italic;
 	line-height: 1.2;
-	margin: 0 0 24px;
-	padding: 24px 0;
+	margin: 0 0 1.5em;
+	padding: 1.5em 0;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce blockquote > :last-child {
@@ -434,11 +424,11 @@
 }
 
 .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
-	margin: 12px 24px 12px 0;
+	margin: .75em 1.5em .75em 0;
 }
 
 .rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
-	margin: 12px 0 12px 24px;
+	margin: .75em 0 .75em 1.5em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h1,
@@ -447,41 +437,33 @@
 .wp-block-freeform.block-library-rich-text__tinymce h4,
 .wp-block-freeform.block-library-rich-text__tinymce h5,
 .wp-block-freeform.block-library-rich-text__tinymce h6 {
-	clear: both;
-	font-family: Neuton, serif;
-	font-weight: normal;
-	margin-bottom: 24px;
-	margin-top: 0;
+	font-family: "Libre Baskerville", Georgia, serif;
+	font-weight: 700;
+	margin-bottom: .5em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h1 {
-	font-size: 40px;
-	line-height: 1.2;
+	font-size: 36px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h2 {
-	font-size: 32px;
-	line-height: 1.125;
+	font-size: 28px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h3 {
-	font-size: 25px;
-	line-height: 1.2;
+	font-size: 24px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h4 {
-	font-size: 20px;
-	line-height: 1.2;
+	font-size: 18px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h5 {
-	font-size: 16px;
-	line-height: 1.5;
+	font-size: 18px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce h6 {
-	font-size: 13px;
-	line-height: 1.3847;
+	font-size: 18px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce pre {
@@ -489,12 +471,12 @@
 	font-family: Inconsolata, monospace;
 	max-width: 100%;
 	overflow: auto;
-	padding: 12px;
+	padding: .75em;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table {
 	border-top: 1px solid #ddd;
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 	text-align: left;
 	width: 100%;
 }
@@ -538,7 +520,7 @@
 	font-size: 16px;
 	max-width: 100%;
 	overflow: auto;
-	padding: 12px;
+	padding: .75em;
 }
 
 /* Pullquote */
@@ -556,7 +538,7 @@
 
 .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignleft blockquote p:not(.wp-block-cover-text),
 .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote.alignright blockquote p:not(.wp-block-cover-text) {
-	font-size: 24px;
+	font-size: 1.5em;
 }
 
 .wp-block-pullquote blockquote:before {
@@ -571,8 +553,8 @@
 	font-size: 28px;
 	font-style: italic;
 	line-height: 1.2;
-	margin: 0 0 24px;
-	padding: 24px 0;
+	margin: 0 0 1.5em;
+	padding: 1.5em 0;
 }
 
 .wp-block-pullquote blockquote {
@@ -580,8 +562,8 @@
 }
 
 .wp-block-pullquote.alignfull blockquote {
-	padding-left: 24px;
-	padding-right: 24px;
+	padding-left: 1.5em;
+	padding-right: 1.5em;
 }
 
 .wp-block-pullquote.alignleft,
@@ -600,15 +582,15 @@
 }
 
 .wp-block-pullquote.alignleft {
-	margin-right: 24px;
+	margin-right: 1.5em;
 }
 
 .wp-block-pullquote.alignright {
-	margin-left: 24px;
+	margin-left: 1.5em;
 }
 
 .wp-block-pullquote blockquote > .editor-rich-text p {
-	margin-bottom: 12px;
+	margin-bottom: .75em;
 }
 
 .wp-block-pullquote__citation,
@@ -631,7 +613,7 @@
 
 .editor-block-list__block table.wp-block-table {
 	border-top: 1px solid #ddd;
-	margin: 0 0 24px;
+	margin: 0 0 1.5em;
 	text-align: left;
 	width: 100%;
 }
@@ -673,7 +655,7 @@
 	border-radius: 0;
 	border: 0;
 	font-weight: bold;
-	padding: 6px 12px;
+	padding: 6px .75em;
 	text-transform: uppercase;
 }
 
@@ -712,7 +694,7 @@
 }
 
 .wp-block-button.aligncenter {
-	margin: 24px auto;
+	margin: 1.5em auto;
 }
 
 /* Separator */
@@ -721,7 +703,7 @@
 	background-color: #ddd;
 	border: 0;
 	height: 1px;
-	margin-bottom: 24px;
+	margin-bottom: 1.5em;
 }
 
 
@@ -751,7 +733,7 @@
 .wp-block-latest-comments .wp-block-latest-comments__comment {
 	border-top: 1px solid #ddd;
 	margin-bottom: 0;
-	padding: 12px 0;
+	padding: .75em 0;
 }
 
 .rtl ol.wp-block-latest-comments {
@@ -771,5 +753,5 @@
 }
 
 .edit-post-visual-editor .wp-block-latest-posts.is-grid li {
-	margin-bottom: 12px;
+	margin-bottom: .75em;
 }