ソースを参照

Fix URLs to new CSS files in functions.php

Caroline Moore 6 年 前
コミット
c5a77fd745
3 ファイル変更10 行追加3 行削除
  1. 1 0
      illustratr/blocks.css
  2. 7 1
      illustratr/editor-blocks.css
  3. 2 2
      illustratr/functions.php

+ 1 - 0
illustratr/blocks.css

@@ -255,6 +255,7 @@ blockquote cite {
 	color: inherit;
 	font-family: inherit;
 	font-size: inherit;
+	letter-spacing: 0px;
 	line-height: inherit;
 	margin-bottom: 40px;
 	max-width: 100%;

+ 7 - 1
illustratr/editor-blocks.css

@@ -159,7 +159,13 @@
 /* Main column width */
 
 .wp-block {
-	max-width: 705px; /* 675px + 30px to account for padding */
+	max-width: 870px; /* 840px + 30px to account for padding */
+}
+
+@media screen and (max-width: 959px) and (min-width: 768px) {
+	.wp-block {
+		max-width: 678px; /* 648px + 30px to account for padding */
+	}
 }
 
 /* Link styles */

+ 2 - 2
illustratr/functions.php

@@ -205,7 +205,7 @@ function illustratr_source_code_pro_font_url() {
 function illustratr_scripts() {
 
 	// Gutenberg styles
-	wp_enqueue_style( 'illustratr-blocks', get_template_directory_uri() . '/css/blocks.css' );
+	wp_enqueue_style( 'illustratr-blocks', get_template_directory_uri() . '/blocks.css' );
 
 	wp_enqueue_style( 'illustratr-source-sans-pro', illustratr_source_sans_pro_font_url(), array(), null );
 
@@ -241,7 +241,7 @@ add_action( 'wp_enqueue_scripts', 'illustratr_scripts' );
  * Gutenberg Editor Styles 
  */
 function apostrophe_2_editor_styles() {
-	wp_enqueue_style( 'illustratr-editor-block-style', get_template_directory_uri() . '/css/editor-blocks.css');
+	wp_enqueue_style( 'illustratr-editor-block-style', get_template_directory_uri() . '/editor-blocks.css');
 	wp_enqueue_style( 'illustratr-source-sans-pro', illustratr_source_sans_pro_font_url(), array(), null );
 	wp_enqueue_style( 'illustratr-pt-serif', illustratr_pt_serif_font_url(), array(), null );
 	wp_enqueue_style( 'illustratr-source-code-pro', illustratr_source_code_pro_font_url(), array(), null );