Browse Source

Intergalactic 2: Minor fixes to Gutenberg implementation, including:
* Correct selectors for buttons & custom palette colours.
* Make sure bullets are centred with centred widgets.
* Update comment widget styles to match comments.
* Remove empty selectors.
* Update verse font styles to italic.

Laurel Fulford 6 years ago
parent
commit
c56e471723
2 changed files with 99 additions and 71 deletions
  1. 61 43
      intergalactic-2/blocks.css
  2. 38 28
      intergalactic-2/editor-blocks.css

+ 61 - 43
intergalactic-2/blocks.css

@@ -211,6 +211,8 @@ p.has-drop-cap:not(:focus)::first-letter {
 }
 
 .rtl .wp-block-file * + .wp-block-file__button {
+	margin-left: 0.75em;
+	margin-right: 0;
 }
 
 /*--------------------------------------------------------------
@@ -224,6 +226,7 @@ p.has-drop-cap:not(:focus)::first-letter {
 	color: inherit;
 	font-family: inherit;
 	font-size: inherit;
+	font-style: italic;
 	line-height: inherit;
 	margin-bottom: 1.5em;
 	max-width: 100%;
@@ -318,31 +321,28 @@ p.has-drop-cap:not(:focus)::first-letter {
 	text-shadow: none;
 }
 
-.wp-block-button__link:not(.has-background) {
+.wp-block-button__link {
 	background: transparent;
 	border: 2px solid #222;
+	color: #222;
 }
 
-.wp-block-button__link:not(.has-background):focus {
-	border-color: #222;
+.wp-block-button__link:active,
+.wp-block-button__link:focus,
+.wp-block-button__link:hover {
 	background: #222;
+	border: 2px solid #222;
+	color: #fff;
 }
 
-.wp-block-button__link:not(.has-text-color) {
-	color: #222;
-}
-
-.wp-block-button__link:not(.has-text-color):active,
-.wp-block-button__link:not(.has-text-color):focus,
-.wp-block-button__link:not(.has-text-color):hover {
-	color: #fff;
+.wp-block-button__link.has-text-color {
+	border-color: currentColor;
 }
 
-.wp-block-button__link:not(.has-background):active,
-.wp-block-button__link:not(.has-background):focus,
-.wp-block-button__link:not(.has-background):hover {
-	background: #222;
-	border: 2px solid #222;
+.wp-block-button__link.has-background:active,
+.wp-block-button__link.has-background:focus,
+.wp-block-button__link.has-background:hover {
+	border-color: currentColor;
 }
 
 /* Seperator */
@@ -377,11 +377,12 @@ hr.wp-block-separator {
 5.0 Blocks - Widget Blocks
 --------------------------------------------------------------*/
 
-/* Categories */
+/* Archives, Categories & Latest Posts */
 
-.wp-block-categories.aligncenter {
-	margin-left: 1.5em;
-	margin-right: 1.5em;
+.wp-block-archives.aligncenter,
+.wp-block-categories.aligncenter,
+.wp-block-latest-posts.aligncenter {
+	list-style-position: inside;
 	text-align: center;
 }
 
@@ -396,23 +397,26 @@ hr.wp-block-separator {
 	margin-right: 0;
 }
 
-.editor-block-list__block .wp-block-latest-comments__comment-meta a {
-	box-shadow: none;
-	font-weight: 700;
-	text-decoration: none;
+.wp-block-latest-comments__comment-meta,
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: 18px;
+}
+
+.wp-block-latest-comments__comment-meta a {
+	color: #222;
+	text-transform: uppercase;
 }
 
 .wp-block-latest-comments__comment-date {
+	color: #767676;
+	font-size: 14px;
+	font-weight: bold;
 }
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
 	border-top: 1px solid #ccc;
 	margin-bottom: 0;
-	padding: .75em 0;
-}
-
-.wp-block-latest-comments__comment-excerpt p:last-child {
-	margin-bottom: 0;
+	padding: 1.75em 0 .75em;
 }
 
 /*--------------------------------------------------------------
@@ -422,98 +426,112 @@ hr.wp-block-separator {
 .has-dark-gray-color,
 .has-dark-gray-color:hover,
 .has-dark-gray-color:focus,
-.has-dark-gray-color:active {
+.has-dark-gray-color:active,
+.has-dark-gray-color:visited {
 	color: #333333;
 }
 
 .has-dark-gray-background-color,
 .has-dark-gray-background-color:hover,
 .has-dark-gray-background-color:focus,
-.has-dark-gray-background-color:active {
+.has-dark-gray-background-color:active,
+.has-dark-gray-background-color:visited {
 	background-color: #333333;
 }
 
 .has-dark-green-color,
 .has-dark-green-color:hover,
 .has-dark-green-color:focus,
-.has-dark-green-color:active {
+.has-dark-green-color:active,
+.has-dark-green-color:visited {
 	color: #557d73;
 }
 
 .has-dark-green-background-color,
 .has-dark-green-background-color:hover,
 .has-dark-green-background-color:focus,
-.has-dark-green-background-color:active {
+.has-dark-green-background-color:active,
+.has-dark-green-background-color:visited {
 	background-color: #557d73;
 }
 
 .has-light-gray-color,
 .has-light-gray-color:hover,
 .has-light-gray-color:focus,
-.has-light-gray-color:active {
+.has-light-gray-color:active,
+.has-light-gray-color:visited {
 	color: #cccccc;
 }
 
 .has-light-gray-background-color,
 .has-light-gray-background-color:hover,
 .has-light-gray-background-color:focus,
-.has-light-gray-background-color:active {
+.has-light-gray-background-color:active,
+.has-light-gray-background-color:visited {
 	background-color: #cccccc;
 }
 
 .has-white-color,
 .has-white-color:hover,
 .has-white-color:focus,
-.has-white-color:active {
+.has-white-color:active,
+.has-white-color:visited {
 	color: #fff;
 }
 
 .has-white-background-color,
 .has-white-background-color:hover,
 .has-white-background-color:focus,
-.has-white-background-color:active {
+.has-white-background-color:active,
+.has-white-background-color:visited {
 	background-color: #fff;
 }
 
 .has-purple-color,
 .has-purple-color:hover,
 .has-purple-color:focus,
-.has-purple-color:active {
+.has-purple-color:active,
+.has-purple-color:visited {
 	color: #81699b;
 }
 
 .has-purple-background-color,
 .has-purple-background-color:hover,
 .has-purple-background-color:focus,
-.has-purple-background-color:active {
+.has-purple-background-color:active,
+.has-purple-background-color:visited {
 	background-color: #81699b;
 }
 
 .has-dark-purple-color,
 .has-dark-purple-color:hover,
 .has-dark-purple-color:focus,
-.has-dark-purple-color:active {
+.has-dark-purple-color:active,
+.has-dark-purple-color:visited {
 	color: #553a72;
 }
 
 .has-dark-purple-background-color,
 .has-dark-purple-background-color:hover,
 .has-dark-purple-background-color:focus,
-.has-dark-purple-background-color:active {
+.has-dark-purple-background-color:active,
+.has-dark-purple-background-color:visited {
 	background-color: #553a72;
 }
 
 .has-black-color,
 .has-black-color:hover,
 .has-black-color:focus,
-.has-black-color:active {
+.has-black-color:active,
+.has-black-color:visited {
 	color: #222222;
 }
 
 .has-black-background-color,
 .has-black-background-color:hover,
 .has-black-background-color:focus,
-.has-black-background-color:active {
+.has-black-background-color:active,
+.has-black-background-color:visited {
 	background-color: #222222;
 }
 

+ 38 - 28
intergalactic-2/editor-blocks.css

@@ -66,7 +66,7 @@
 
 .editor-post-title__block .editor-post-title__input {
 	font-family: Lato, Helvetica, sans-serif;
-	font-weight: bold;
+	font-weight: 700;
 	font-size: 30px;
 	text-align: center;
 	text-transform: uppercase;
@@ -91,14 +91,20 @@
 /* Headings */
 
 .edit-post-visual-editor h1,
+.wp-block-freeform.block-library-rich-text__tinymce h1,
 .edit-post-visual-editor h2,
+.wp-block-freeform.block-library-rich-text__tinymce h2,
 .edit-post-visual-editor h3,
+.wp-block-freeform.block-library-rich-text__tinymce h3,
 .edit-post-visual-editor h4,
+.wp-block-freeform.block-library-rich-text__tinymce h4,
 .edit-post-visual-editor h5,
-.edit-post-visual-editor h6 {
-	font-weight: bold;
+.wp-block-freeform.block-library-rich-text__tinymce h5,
+.edit-post-visual-editor h6,
+.wp-block-freeform.block-library-rich-text__tinymce h6 {
+	font-weight: 700;
 	clear: both;
-	margin: .75em 0;
+	margin: .1875em 0;
 	text-transform: uppercase;
 }
 
@@ -360,20 +366,20 @@
 /* Table */
 
 .wp-block-freeform.block-library-rich-text__tinymce table {
-	width: 100%;
+	border-collapse: collapse;
+	border: 0;
 	margin: 0 0 1.5em;
-}
-
-.wp-block-freeform.block-library-rich-text__tinymce table .alternate {
-	background: transparent;
+	width: 100%;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table td {
+	border: 0;
 	border-bottom: 1px solid #aaa;
 	padding: 3px 5px;
 }
 
 .wp-block-freeform.block-library-rich-text__tinymce table th {
+	border: 0;
 	border-bottom: 4px solid #222;
 	font-weight: bold;
 	padding: 10px 5px 5px;
@@ -417,12 +423,6 @@
 	font-size: inherit;
 }
 
-.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large) {
-}
-
-.rtl .editor-block-list__block .wp-block-quote {
-}
-
 .editor-block-list__block .wp-block-quote em,
 .editor-block-list__block .wp-block-quote i {
 	font-style: normal;
@@ -444,10 +444,6 @@
 	margin-bottom: .75em;
 }
 
-.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
-.rtl .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
-}
-
 .wp-block-quote.is-large,
 .wp-block-quote.is-style-large {
 	margin: 0 .75em;
@@ -466,6 +462,11 @@
 	margin-bottom: .75em;
 }
 
+.wp-block-quote.is-large .wp-block-quote__citation,
+.wp-block-quote.is-style-large .wp-block-quote__citation {
+	font-size: 25.6px;
+}
+
 /* File */
 
 .wp-block-file__textlink {
@@ -514,6 +515,7 @@
 	background: transparent;
 	color: inherit;
 	font-family: inherit;
+	font-style: italic;
 	line-height: inherit;
 	margin-bottom: 1.5em;
 	max-width: 100%;
@@ -713,23 +715,31 @@
 
 /* Latest Comments */
 
-.editor-block-list__block .wp-block-latest-comments__comment-meta a {
-	box-shadow: none;
-	font-weight: 700;
-	text-decoration: none;
+.wp-block-latest-comments {
+	margin-left: 0;
+	margin-right: 0;
+}
+
+.wp-block-latest-comments__comment-meta,
+.wp-block-latest-comments__comment-excerpt p {
+	font-size: 18px;
+}
+
+.wp-block-latest-comments__comment-meta a {
+	color: #222;
+	text-transform: uppercase;
 }
 
 .wp-block-latest-comments__comment-date {
+	color: #767676;
+	font-size: 14px;
+	font-weight: bold;
 }
 
 .wp-block-latest-comments .wp-block-latest-comments__comment {
 	border-top: 1px solid #ccc;
 	margin-bottom: 0;
-	padding: .75em 0;
-}
-
-.wp-block-latest-comments__comment-excerpt p:last-child {
-	margin-bottom: 0;
+	padding: 1.75em 0 .75em;
 }
 
 /* Latest Posts */