diff --git a/public/assets/scaffolding-min.js b/public/assets/scaffolding-min.js index 78ffd23..cce41e9 100644 --- a/public/assets/scaffolding-min.js +++ b/public/assets/scaffolding-min.js @@ -3187,8 +3187,13 @@ module.exports = { /***/ }), /* 10 */ -/***/ (function(module) { +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ init: function() { return /* binding */ init; } +/* harmony export */ }); /* DS2 core (c) 2024 Alexander McIlwraith Released under Creative Commons Attribution-ShareAlike 4.0 International */ @@ -3233,99 +3238,116 @@ var chooseTab = function chooseTab(tab) { }; var pushState = 0; var tabsetCount = 0; -module.exports = { - "init": function init() { - var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document; - var spacer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; - var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - container.querySelectorAll(".tab-group, tabset").forEach(function (tabGroup) { - if (tabGroup.querySelector("[role=tablist]") === null) { - if (tabGroup.getAttribute("id") == null) { - tabGroup.setAttribute("id", "tab-group-" + tabsetCount); - tabsetCount++; - } - var tabgroup = tabGroup.getAttribute("id"); - var tablist = ""; - Array.from(tabGroup.children).forEach(function (child) { - // is details? - var dtls = child.nodeName == "DETAILS" ? true : false; +function init() { + var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document; + var spacer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + container.querySelectorAll(".tab-group, tabset").forEach(function (tabGroup) { + if (tabGroup.querySelector("[role=tablist]") === null) { + if (tabGroup.getAttribute("id") == null) { + tabGroup.setAttribute("id", "tab-group-" + tabsetCount); + tabsetCount++; + } + var tabgroup = tabGroup.getAttribute("id"); + var tablist = ""; + Array.from(tabGroup.children).forEach(function (child) { + // is details? + var dtls = child.nodeName == "DETAILS" ? true : false; - // get the tab text - var tab = dtls ? child.querySelector("summary").innerHTML : child.getAttribute("tab") || child.getAttribute("data-tab"); + // get the tab text + var tab = dtls ? child.querySelector("summary").innerHTML : child.getAttribute("tab") || child.getAttribute("data-tab"); - // if the tab text is not blank - if (tab !== null) { - var tabID = tab.replace(/\W+/g, "-").toLowerCase(); + // if the tab text is not blank + if (tab !== null) { + var tabID = tab.replace(/\W+/g, "-").toLowerCase(); - // define the tab panel content - var tabPanel = null; - if (dtls) { - tabPanel = child; - tabPanel.setAttribute("open", ""); - } else { - tabPanel = document.createElement('div'); - tabPanel.appendChild(child.cloneNode(true)); - } - tabPanel.id = "tab-panel-".concat(tabgroup, "-").concat(tabID); - tabPanel.className = tablist === "" ? "open" : ""; - tabPanel.setAttribute("role", "tabpanel"); - tabPanel.setAttribute("tabindex", "0"); - tabPanel.setAttribute("aria-labelledby", "tab-".concat(tabgroup, "-").concat(tabID)); - child.parentNode.replaceChild(tabPanel, child); - var cls = tablist === "" ? "class='selected'" : ""; - tablist += "
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.
@use "scss/core/breakpoint/breakpoint";
@include breapoint.break([breakpoint]) {
// css here
@@ -28,6 +29,9 @@
//- DS2 core (c) 2024 Alexander McIlwraith
//- Licensed under CC BY-SA 4.0
+@use 'sass:map';
+@use 'sass:string';
+
// default breakpoints match bootstrap 5 breakpoints.
$grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 1400px ) !default;
@@ -65,30 +69,30 @@ $grid-breakpoints: ( xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px, xxl: 14
$min: 0;
$max: 0;
- @if str-length($bp) == 2 {
+ @if string.length($bp) == 2 {
// only a single break point was received
- $min: map-get($points, $bp);
- $max: map-get($points, nth(map-keys($points), index(map-keys($points), $bp) + 1));
+ $min: map.get($points, $bp);
+ $max: map.get($points, nth(map.keys($points), index(map.keys($points), $bp) + 1));
} @else {
- @if str-slice($bp, 0, 1) == "-" {
+ @if string.slice($bp, 0, 1) == "-" {
// no lower breakpoint was received
$min: null;
- $max: map-get($points, str-slice($bp, 2, 3));
+ $max: map.get($points, string.slice($bp, 2, 3));
} @else {
- $min: map-get($points, unquote(str-slice($bp, 0, 2)));
+ $min: map.get($points, string.unquote(string.slice($bp, 0, 2)));
- @if str-length($bp) == 3 {
+ @if string.length($bp) == 3 {
// no upper break point was received
$max: null;
} @else {
- $max: map-get($points, str-slice($bp, 4, 5));
+ $max: map.get($points, string.slice($bp, 4, 5));
}
}
}
diff --git a/public/patterns/core/colours/index.html b/public/patterns/core/colours/index.html
index ba3336d..1f30fe9 100644
--- a/public/patterns/core/colours/index.html
+++ b/public/patterns/core/colours/index.html
@@ -291,7 +291,7 @@
-
+
:root {
--colour-blue: #2e51a1;
@@ -339,6 +339,6 @@
}
}
-
+