From 929d288064c1d4d746606f7a0e023174a494c59d Mon Sep 17 00:00:00 2001 From: jomurgel Date: Mon, 7 May 2018 09:53:04 -0600 Subject: [PATCH] Feature/scaffolding improvements (#370) * fix styles issues in scaffolding * fixes heading hierarchy * adds attributes to svg and title/desc to wp_kses_allowed html for scaffolding as well as select/option to scaffolding allowed html * adds function to output buffer display svg function * adds input and select to default scaffolding forms * adds addtional usage options to svg demo * adds paragraph to default typography scaffolding * swap function names --- assets/sass/base/_scaffolding.scss | 48 +++++++++++++------ inc/scaffolding.php | 24 +++++++++- inc/template-tags.php | 17 +++++-- .../scaffolding/scaffolding-forms.php | 20 ++++++++ .../scaffolding/scaffolding-icons.php | 18 +++++-- .../scaffolding/scaffolding-typography.php | 8 ++++ 6 files changed, 112 insertions(+), 23 deletions(-) diff --git a/assets/sass/base/_scaffolding.scss b/assets/sass/base/_scaffolding.scss index 01d0e069d..bb9f9255f 100644 --- a/assets/sass/base/_scaffolding.scss +++ b/assets/sass/base/_scaffolding.scss @@ -2,6 +2,14 @@ // Scaffolding Library //-------------------------------------------------------------- +//----------------------------------------- +// IE11 Tweak +//----------------------------------------- +.page-template-template-scaffolding .primary { + float: none; + width: 100%; +} + //----------------------------------------- // Scaffolding defaults //----------------------------------------- @@ -10,7 +18,7 @@ // The section
&-header { - border-bottom: rem(1) solid gray; + border-bottom: rem(1) solid $color-alto; display: flex; justify-content: space-between; margin-bottom: $gutter; @@ -40,16 +48,16 @@ // The
 container.
 		pre {
-			background-color: white;
-			border: rem(1) solid lightgray;
-			color: gray;
+			background-color: $color-white;
+			border: rem(1) solid $color-alto;
+			color: $color-silver-chalice;
 			margin: 0 0 $gutter;
 			padding: $gutter;
 		} // pre
 
 		// The  container.
 		code {
-			background-color: lightgray;
+			background-color: $color-alto;
 			font-size: rem(13);
 			padding: rem(5);
 		} // code
@@ -72,32 +80,44 @@
 .swatch-container {
 	@include clearfix;
 
+	display: flex;
+	flex-direction: row;
+	flex-wrap: wrap;
 	position: relative;
 
 	// Each swatch.
 	.swatch {
-		@include size(100% rem(125));
-		@include span-columns(3);
-
-		border: 1px solid black;
+		border: 1px solid $color-alto;
 		border-radius: rem(5);
+		flex: 0 1 23.875%;
+		height: rem(125);
 		margin-bottom: $gutter;
+		margin-right: 1.5%;
 		position: relative;
 		text-align: center;
 
+		&:nth-child(4n) {
+			margin-right: 0;
+		}
+
 		// The swatch 
& header { - color: black; - padding-top: rem(25); + align-content: center; + color: $color-alto; + display: flex; + flex-direction: column; + height: calc(100% - 39px); + justify-content: center; } // header // The swatch