From 3292729d536e3d5ea354b2988b70f4e0455dd9e8 Mon Sep 17 00:00:00 2001 From: "Alexander (M2)" Date: Sun, 28 Jul 2024 15:30:51 -0400 Subject: [PATCH] Update pattern documentation --- public/patterns/core/breakpoints/index.html | 15 +++- public/patterns/core/header/index.html | 58 +------------- public/patterns/core/sticky-note/index.html | 20 +++-- public/patterns/core/switch/index.html | 27 +++++-- public/patterns/core/tabs/index.html | 41 ++++++---- public/patterns/core/tooltip/index.html | 20 +++-- src/pg/patterns/core/breakpoints/index.pug | 14 +++- src/pg/patterns/core/header/header.css | 54 +------------ src/pg/patterns/core/header/index.pug | 3 +- src/pg/patterns/core/sticky-note/index.pug | 28 +++++-- src/pg/patterns/core/switch/index.pug | 29 +++++-- src/pg/patterns/core/switch/switch.css | 6 +- src/pg/patterns/core/tabs/index.pug | 88 ++++++++++++--------- src/pg/patterns/core/tabs/tabs.css | 20 ++--- src/pg/patterns/core/tooltip/index.pug | 25 ++++-- 15 files changed, 227 insertions(+), 221 deletions(-) diff --git a/public/patterns/core/breakpoints/index.html b/public/patterns/core/breakpoints/index.html index 6d12e98..1906326 100644 --- a/public/patterns/core/breakpoints/index.html +++ b/public/patterns/core/breakpoints/index.html @@ -12,11 +12,17 @@

How to use it

This pattern is only available for SCSS breakpoints. The mixin is avai

When using this, use the default break points as they are set to the same as the Bootstrap framework. The grid for the design system at large break point has been widened to accompdate 3 colour cards across.

-
-
//-		DS2 core (c) 2024 Alexander McIlwraith 
+    
+      
+
@import "[path-to]/breakpoints";
+@include break([breakpoint]) {
+	// css here
+}
+
//-		DS2 core (c) 2024 Alexander McIlwraith 
 //-		Licensed under CC BY-SA 4.0 
 
-$grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px ) !default;
+// default breakpoints match bootstrap 5 breakpoints.
+$grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px ) !default;
 
 @mixin breakpoint-debug {
 	body::before, body::after {
@@ -99,6 +105,7 @@ $grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px ) !defau
 		}
 	}
 }
-
+
+ \ No newline at end of file diff --git a/public/patterns/core/header/index.html b/public/patterns/core/header/index.html index ba020ac..ee11bbe 100644 --- a/public/patterns/core/header/index.html +++ b/public/patterns/core/header/index.html @@ -9,7 +9,9 @@

When to use it

Use a header at the top of every page. The 'front page' of a site may have a different header than the rest of the pages.

How to use it

-

Place the header at the top of the page after the skip to main content link. This basic header should be replaced with your own site's header.

+

Place the header at the top of the page after the skip to main content link. You will likely want to replace core header should be replaced with your own site's header. To do this, remove the +

core: true 
and create your own pattern in the location you wish it in your design system. +