Browse Source

Minor tweaks to padding on full-aligned blocks when text is present, both editor and front end

Caroline Moore 6 years ago
parent
commit
47f0e09553
2 changed files with 18 additions and 1 deletions
  1. 6 1
      ixion/blocks.css
  2. 12 0
      ixion/editor-blocks.css

+ 6 - 1
ixion/blocks.css

@@ -60,7 +60,8 @@ p.has-drop-cap:not(:focus)::first-letter {
 .no-sidebar .wp-block-latest-comments.alignfull,
 .no-sidebar .wp-block-categories.alignfull,
 .no-sidebar .wp-block-archives.alignfull,
-.no-sidebar .wp-block-latest-posts.alignfull {
+.no-sidebar .wp-block-latest-posts.alignfull,
+.no-sidebar .wp-block-file.alignfull {
 	padding-left: 1.5em;
 	padding-right: 1.5em;
 }
@@ -178,6 +179,10 @@ p.has-drop-cap:not(:focus)::first-letter {
 
 /* File */
 
+.wp-block-file {
+	margin: 1.5em 0;
+}
+
 .wp-block-file a.wp-block-file__button,
 .wp-block-file a.wp-block-file__button:visited {
 	border: 0;

+ 12 - 0
ixion/editor-blocks.css

@@ -45,6 +45,18 @@
 	margin-right: auto;
 }
 
+.wp-block-columns.alignfull,
+.wp-block-latest-comments.alignfull,
+.editor-block-list__block[data-align="full"] .wp-block-file {
+	padding-left: 1.5em;
+	padding-right: 1.5em;
+}
+
+.editor-block-list__block[data-align="full"] table.wp-block-table {
+	margin-left: .75em;
+	margin-right: .75em;
+}
+
 /* Title */
 
 .editor-post-title__block .editor-post-title__input {