فهرست منبع

Fixes for buttons and galleries/images.

Caroline Moore 6 سال پیش
والد
کامیت
cf2b648502
2فایلهای تغییر یافته به همراه19 افزوده شده و 8 حذف شده
  1. 9 0
      libretto/css/blocks.css
  2. 10 8
      libretto/css/editor-blocks.css

+ 9 - 0
libretto/css/blocks.css

@@ -56,15 +56,24 @@ p.has-drop-cap:not(:focus)::first-letter {
 	display: flex;
 }
 
+.libretto-oversized {
+	margin-left: auto;
+	margin-right: auto;
+	max-width: 100%;
+}
+
 /* Gallery */
 
 .wp-block-gallery {
 	margin-bottom: .5em;
 	margin-left: auto;
+	margin-right: auto;
+	max-width: 100%;
 }
 
 .rtl .wp-block-gallery:not(.alignfull):not(.alignwide) {
 	margin-right: auto;
+	margin-left: auto;
 }
 
 /* Quote */

+ 10 - 8
libretto/css/editor-blocks.css

@@ -405,32 +405,33 @@
 	margin: 1.5em 0;
 }
 
-.wp-block-file a.wp-block-file__button,
-.wp-block-file a.wp-block-file__button:visited {
+.wp-block-file .wp-block-file__button {
+	border-radius: 0;
 	background: #a09a92;
 	border: 1px solid #eae9e6;
 	color: #eae9e6;
 	font-size: 12px;
 	letter-spacing: 1px;
+	line-height: 24px;
 	outline: 4px solid #a09a92;
-	padding: 0.7rem 1.4rem;
+	padding: 7px 14px;
 	position: relative;
 	text-transform: uppercase;
 }
 
-.wp-block-file a.wp-block-file__button:hover,
-.wp-block-file a.wp-block-file__button:focus {
+.wp-block-file .wp-block-file__button:hover,
+.wp-block-file .wp-block-file__button:focus {
 	background: #a09a92;
 	color: #faf9f5;
 	outline: 2px solid #a09a92;
 }
 
-.wp-block-file a.wp-block-file__button:active {
+.wp-block-file .wp-block-file__button:active {
 	background: #363431;
 	outline: 5px solid #363431;
 }
 
-.rtl .wp-block-file a.wp-block-file__button {
+.rtl .wp-block-file .wp-block-file__button {
 	margin-left: .75em;
 	margin-right: 0;
 }
@@ -795,7 +796,8 @@
 	border-radius: 0;
 	font-size: 12px;
 	letter-spacing: 1px;
-	padding: 0.7rem 1.4rem;
+	padding: 7px 14px;
+	line-height: 24px;
 	position: relative;
 	text-transform: uppercase;
 }