Bladeren bron

Shawburn: Remove un-needed editor styles

Thomas Guillot 5 jaren geleden
bovenliggende
commit
29d7367e1c
2 gewijzigde bestanden met toevoegingen van 2 en 274 verwijderingen
  1. 1 142
      shawburn/sass/style-child-theme-editor.scss
  2. 1 132
      shawburn/style-editor.css

+ 1 - 142
shawburn/sass/style-child-theme-editor.scss

@@ -33,149 +33,8 @@
 @import "../../varia/sass/blocks/editor";
 
 /**
- * Extra Editor Styles
- *
- * 1. General Styles
- * 2. Block Specific Styles
- * 2.1. Column Block
- * 2.2. Quote Block
- * 2.3. File Block
- * 2.4. Pre Block and Verse Block
- * 2.5. Button Block
- * 2.6. Search Block
+ * Extras
  */
-
 .editor-post-title__input {
 	text-align: center;
 }
-
-/**
- * 1. General Styles
- */
-body {
-	background-color: #{map-deep-get($config-global, "color", "white")};
-	font-weight: 300;
-}
-
-a {
-	text-decoration: none;
-}
-
-/**
- * 2. Block Specific Styles
- */
-
-/**
- * 2.1. Column Block
- */
- .wp-block-coblocks-column {
-	h1, 
-	h2, 
-	h3, 
-	h4, 
-	h5, 
-	h6 {
-		margin-bottom: .857em;
-	}
-	a {
-		color: #{map-deep-get($config-global, "color", "secondary", "default")};
-		&:hover {
-			color: #{map-deep-get($config-global, "color", "secondary", "hover")};
-		}
-	}
-}
-
-/**
- * 2.2. Quote Block
- */
- .wp-block-quote, 
- .wp-block-quote[style*="text-align:center"], 
- .wp-block-quote[style*="text-align:right"] {
-	 border: 1px solid #f2f2f2;
-	 padding: #{map-deep-get($config-global, "spacing", "horizontal")};;
-	 p {
-		 font-family: #{map-deep-get($config-global, "font", "family", "secondary")};
-	 }
-	 .wp-block-quote__citation {
-		 color: #{map-deep-get($config-global, "color", "secondary", "default")};
-	 }
- }
-
- /**
- * 2.3. File Block
- */
-.wp-block-file {
-	div {
-		&.wp-block-file__button {
-			text-transform: uppercase;
-			line-height: #{map-deep-get($config-button, "font", "line-height")};
-			color: #{map-deep-get($config-button, "color", "text")};
-			cursor: pointer;
-			font-weight: #{map-deep-get($config-button, "font", "weight")};
-			font-family: #{map-deep-get($config-button, "font", "family")};
-			font-size: #{map-deep-get($config-button, "font", "size")};
-			background-color: #{map-deep-get($config-button, "color", "background")};
-			border-radius: #{map-deep-get($config-button, "border-radius")};
-			border-width: #{map-deep-get($config-button, "border-width")};
-			padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
-			display: inline-block;
-			&:focus, 
-			&:hover, 
-			&:visited {
-				color: #{map-deep-get($config-button, "color", "text-hover")};
-				background-color: #{map-deep-get($config-button, "color", "background-hover")};
-				opacity: 1;
-			}
-		}
-	}
-}
-
-/**
- * 2.4. Pre Block and Verse Block
- */
-.wp-block-preformatted,
-.wp-block-verse {
-	pre {
-		font-family: #{map-deep-get($config-global, "font", "family", "code")};
-	}
-}
-
-/**
- * 2.5. Button Block
- */
- .wp-block-button {
-	div {
-		&.wp-block-button__link {
-			text-transform: uppercase;
-		}
-	}
-}
-
-/**
- * 2.6. Search Block
- */
- .wp-block-search {
-	.wp-block-search__button {
-		text-transform: uppercase;
-		line-height: #{map-deep-get($config-button, "font", "line-height")};
-		color: #{map-deep-get($config-button, "color", "text")};
-		cursor: pointer;
-		font-weight: #{map-deep-get($config-button, "font", "weight")};
-		font-family: #{map-deep-get($config-button, "font", "family")};
-		font-size: #{map-deep-get($config-button, "font", "size")};
-		background-color: #{map-deep-get($config-button, "color", "background")};
-		border-radius: #{map-deep-get($config-button, "border-radius")};
-		border-width: #{map-deep-get($config-button, "border-width")};
-		padding: #{map-deep-get($config-button, "padding", "vertical")} #{map-deep-get($config-button, "padding", "horizontal")};
-		display: inline-block;
-		&:focus, 
-		&:hover, 
-		&:visited {
-			color: #{map-deep-get($config-button, "color", "text-hover")};
-			background-color: #{map-deep-get($config-button, "color", "background-hover")};
-			opacity: 1;
-		}
-		border: none;
-		box-shadow: none;
-	}
-}

+ 1 - 132
shawburn/style-editor.css

@@ -870,139 +870,8 @@ table th,
 }
 
 /**
- * Extra Editor Styles
- *
- * 1. General Styles
- * 2. Block Specific Styles
- * 2.1. Column Block
- * 2.2. Quote Block
- * 2.3. File Block
- * 2.4. Pre Block and Verse Block
- * 2.5. Button Block
- * 2.6. Search Block
+ * Extras
  */
 .editor-post-title__input {
 	text-align: center;
 }
-
-/**
- * 1. General Styles
- */
-body {
-	background-color: white;
-	font-weight: 300;
-}
-
-a {
-	text-decoration: none;
-}
-
-/**
- * 2. Block Specific Styles
- */
-/**
- * 2.1. Column Block
- */
-.wp-block-coblocks-column h1,
-.wp-block-coblocks-column h2,
-.wp-block-coblocks-column h3,
-.wp-block-coblocks-column h4,
-.wp-block-coblocks-column h5,
-.wp-block-coblocks-column h6 {
-	margin-bottom: .857em;
-}
-
-.wp-block-coblocks-column a {
-	color: #D4401C;
-}
-
-.wp-block-coblocks-column a:hover {
-	color: #a73216;
-}
-
-/**
- * 2.2. Quote Block
- */
-.wp-block-quote,
-.wp-block-quote[style*="text-align:center"],
-.wp-block-quote[style*="text-align:right"] {
-	border: 1px solid #f2f2f2;
-	padding: 16px;
-}
-
-.wp-block-quote p,
-.wp-block-quote[style*="text-align:center"] p,
-.wp-block-quote[style*="text-align:right"] p {
-	font-family: "PT Sans", Arial, sans-serif;
-}
-
-.wp-block-quote .wp-block-quote__citation,
-.wp-block-quote[style*="text-align:center"] .wp-block-quote__citation,
-.wp-block-quote[style*="text-align:right"] .wp-block-quote__citation {
-	color: #D4401C;
-}
-
-/**
- * 2.3. File Block
- */
-.wp-block-file div.wp-block-file__button {
-	text-transform: uppercase;
-	line-height: 1;
-	color: white;
-	cursor: pointer;
-	font-weight: 700;
-	font-family: "PT Sans", Arial, sans-serif;
-	font-size: 0.83333rem;
-	background-color: #0C80A1;
-	border-radius: 4px;
-	border-width: 2px;
-	padding: 16px 24px;
-	display: inline-block;
-}
-
-.wp-block-file div.wp-block-file__button:focus, .wp-block-file div.wp-block-file__button:hover, .wp-block-file div.wp-block-file__button:visited {
-	color: white;
-	background-color: #085a72;
-	opacity: 1;
-}
-
-/**
- * 2.4. Pre Block and Verse Block
- */
-.wp-block-preformatted pre,
-.wp-block-verse pre {
-	font-family: "Courier 10 Pitch", Courier, monospace;
-}
-
-/**
- * 2.5. Button Block
- */
-.wp-block-button div.wp-block-button__link {
-	text-transform: uppercase;
-}
-
-/**
- * 2.6. Search Block
- */
-.wp-block-search .wp-block-search__button {
-	text-transform: uppercase;
-	line-height: 1;
-	color: white;
-	cursor: pointer;
-	font-weight: 700;
-	font-family: "PT Sans", Arial, sans-serif;
-	font-size: 0.83333rem;
-	background-color: #0C80A1;
-	border-radius: 4px;
-	border-width: 2px;
-	padding: 16px 24px;
-	display: inline-block;
-	border: none;
-	box-shadow: none;
-}
-
-.wp-block-search .wp-block-search__button:focus, .wp-block-search .wp-block-search__button:hover, .wp-block-search .wp-block-search__button:visited {
-	color: white;
-	background-color: #085a72;
-	opacity: 1;
-}