Skip to content

Commit fa48024

Browse files
committed
v.5.1.0
1 parent 4d1b2e1 commit fa48024

File tree

90 files changed

+3164
-2032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3164
-2032
lines changed

LOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ _Note: update version numbers need updating every time in `metadata.json`, `pack
44

55
***
66

7+
## 20 Oct 2022 -- v.5.1.0
8+
9+
* **Breaking change:** improved CSS grid gap and flexbox gap, using the full set of responsive spacing variables: now `gap-1` thru `gap-6` (and column only and row only versions, and breakpoint alternatives) instead of the simpler `gap-sm`, `gap-md`, and `gap-lg`. Also `flexbox-gap` has gone; use these new `gap-*` utilities instead.
10+
* Improved `focus-visible` focus ring: black and white "checker" dotted line, comprised of black dotted outline overlaying a solid white box-shadow of the same thickness.
11+
* `btn` class (for links) now _doesn't_ have the input focus ring; it has the link focus ring.
12+
* Updated npm packages.
13+
714
## 26 Sep 2022 -- v.5.0.10
815

916
* Added hover states to opacity utilities.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Docs: https://codebase-frontend-library.github.io/codebase-5/
1212

1313
***
1414

15-
* Current version: 5.0.10 -- see [log](https://github.com/codebase-frontend-library/codebase-5/blob/main/LOG.md)
16-
* CSS file size: 91 KB
15+
* Current version: 5.1.0 -- see [log](https://github.com/codebase-frontend-library/codebase-5/blob/main/LOG.md)
16+
* CSS file size: 93 KB
1717
* Licence: MIT
1818
* Developer: Simon Padbury

docs/dist/codebase.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/codebase.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/1-getting-started/accessibility/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Accessibility - Codebase</title>
99

1010
<link href="/codebase-5/prism/prism.css" rel="stylesheet">
11-
<link href="/codebase-5/dist/codebase.css?v=5.0.10" rel="stylesheet">
11+
<link href="/codebase-5/dist/codebase.css?v=5.1.0" rel="stylesheet">
1212

1313
<link rel="icon" type="image/svg+xml" href="/codebase-5/favicon.svg">
1414
<link rel="apple-touch-icon" sizes="180x180" href="/codebase-5/apple-touch-icon.png">
@@ -273,7 +273,7 @@
273273

274274
<div class="grow">
275275
<div class="menu flex flex-end sm:hidden-below">
276-
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
276+
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
277277
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
278278
</div>
279279
</div>
@@ -327,7 +327,7 @@
327327
<div id="side-menu-wrap" class="p-2 pb-6">
328328

329329
<div class="mb-3 sm:hidden">
330-
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
330+
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
331331
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
332332
</div>
333333

@@ -599,8 +599,8 @@ <h2 id="focus-ring-styling" tabindex="-1">Focus ring styling</h2>
599599
<p>Interactive elements require a visual indicator that to lake them obvious for sighted keyboard users, who use “tabbing” to get around the webpage’s <a href="https://developers.google.com/web/fundamentals/accessibility/semantics-builtin/the-accessibility-tree">accessibility tree</a> (a.k.a. tab index).</p>
600600
<p>In Codebase, focus ring styling has been improved for links, buttons, form inputs, etc. Seeing that Chrome, Edge, Firefox, and Safari all now have a similar-looking default focus ring, since v.5.0.7 Codebase improves upon this as follows:</p>
601601
<ul>
602-
<li><code>:focus-visible</code> focus rings on links are now the <em>default gray outline</em>, offset by 2px, with a solid white 2px box-shadow inside the offset (this improves focus ring visibility over dark backgrounds).</li>
603-
<li><code>:focus</code> focus rings on form elements and buttons (including styled <code>.btn</code> pseudo-buttons) have a 0.25rem light blue box shadow.</li>
602+
<li><code>:focus-visible</code> – since Codebase v.5.1.0, focus rings on links have black and white &quot;checker&quot; dotted line, comprised of black dotted outline overlaying a solid white box-shadow of the same thickness. The black makes the focus ring easy to see over light colors whereas the white makes it easy to see over dark colors.</li>
603+
<li><code>:focus</code> focus rings on form elements and buttons (including styled <code>.btn</code> pseudo-buttons) have a 0.25rem light blue box shadow.</li>
604604
</ul>
605605
<h2 id="alpinejs-powered-components" tabindex="-1">AlpineJS powered components</h2>
606606
<p>Besides moving up to AlpineJS version 3, the Alpine powered components in these docs have been improved to enable usability via keyboard and assistive tech:</p>
@@ -714,7 +714,7 @@ <h3 id="apps-and-browser-extensions" tabindex="-1">Apps and browser extensions</
714714
</a>
715715
</p>
716716

717-
<p>Version 5.0.10<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
717+
<p>Version 5.1.0<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
718718

719719
</footer>
720720

docs/docs/1-getting-started/element-grid/index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Element grid - Codebase</title>
99

1010
<link href="/codebase-5/prism/prism.css" rel="stylesheet">
11-
<link href="/codebase-5/dist/codebase.css?v=5.0.10" rel="stylesheet">
11+
<link href="/codebase-5/dist/codebase.css?v=5.1.0" rel="stylesheet">
1212

1313
<link rel="icon" type="image/svg+xml" href="/codebase-5/favicon.svg">
1414
<link rel="apple-touch-icon" sizes="180x180" href="/codebase-5/apple-touch-icon.png">
@@ -273,7 +273,7 @@
273273

274274
<div class="grow">
275275
<div class="menu flex flex-end sm:hidden-below">
276-
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
276+
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
277277
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
278278
</div>
279279
</div>
@@ -327,7 +327,7 @@
327327
<div id="side-menu-wrap" class="p-2 pb-6">
328328

329329
<div class="mb-3 sm:hidden">
330-
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
330+
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
331331
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
332332
</div>
333333

@@ -562,12 +562,9 @@ <h1 class="mb-0 t-heavy t-primary">The Codebase element grid</h1>
562562
<h2 id="how-the-element-grid-is-used" tabindex="-1">How the element grid is used</h2>
563563
<p>The Codebase element grid has been deployed a follows:</p>
564564
<ol>
565-
<li>Element grid increments of 0.5rem have been used for setting all line-heights, margins and paddings throughout Codebase.</li>
566565
<li>By default, the base typography vertical rhythm (line-height) is set at 1.5rem (= 3 element grid units).
567566
The line heights for headers have also been set using 0.5rem increments.</li>
568-
<li>For <a href="/codebase-5/docs/3-responsive-layouts/flex">flex</a> layouts, <code>flex-gap</code> has been set at 2rem.</li>
569-
<li>For <a href="/codebase-5/docs/3-responsive-layouts/grid">grid</a> layouts, <code>gap</code> has been set at 2rem.</li>
570-
<li>Decoration utilities for margins and paddings have been set using values from the 0.5rem element grid.</li>
567+
<li>Spacing utilities for margins, paddings and gaps (used in both flexbox and grid) have been set using values from the 0.5rem element grid.</li>
571568
</ol>
572569
<h2 id="infographic%3A-the-codebase-element-grid" tabindex="-1">Infographic: the Codebase element grid</h2>
573570
<div class="my-6">
@@ -646,7 +643,7 @@ <h2 id="utility-class-spacing" tabindex="-1">Utility class spacing</h2>
646643
</a>
647644
</p>
648645

649-
<p>Version 5.0.10<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
646+
<p>Version 5.1.0<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
650647

651648
</footer>
652649

docs/docs/1-getting-started/improvements-since-codebase-4/index.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Improvements - Codebase</title>
99

1010
<link href="/codebase-5/prism/prism.css" rel="stylesheet">
11-
<link href="/codebase-5/dist/codebase.css?v=5.0.10" rel="stylesheet">
11+
<link href="/codebase-5/dist/codebase.css?v=5.1.0" rel="stylesheet">
1212

1313
<link rel="icon" type="image/svg+xml" href="/codebase-5/favicon.svg">
1414
<link rel="apple-touch-icon" sizes="180x180" href="/codebase-5/apple-touch-icon.png">
@@ -273,7 +273,7 @@
273273

274274
<div class="grow">
275275
<div class="menu flex flex-end sm:hidden-below">
276-
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
276+
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
277277
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
278278
</div>
279279
</div>
@@ -327,7 +327,7 @@
327327
<div id="side-menu-wrap" class="p-2 pb-6">
328328

329329
<div class="mb-3 sm:hidden">
330-
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
330+
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
331331
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
332332
</div>
333333

@@ -571,6 +571,7 @@ <h3 id="utilities-with-madia-query-variants" tabindex="-1">Utilities with madia
571571
<li><a href="/codebase-5/docs/4-layout-utilities/positions">Positions</a> - <code>relative</code>, <code>absolute</code>, <code>fixed</code>, <code>sticky</code>, <code>top</code>, <code>right</code>, <code>bottom</code> and <code>left</code></li>
572572
<li><a href="/codebase-5/docs/4-layout-utilities/floats">Floats</a><code>right</code> and <code>left</code></li>
573573
<li><a href="/codebase-5/docs/5-decoration-utilities/spacing">Spacing</a> – margins and paddings</li>
574+
<li><code>Gap-*</code> in <a href="/codebase-5/docs/3-layout-utilities/flexbox/#adding-gaps">flexbox</a> and <a href="/codebase-5/docs/3-layout-utilities/grid/#adding-gaps">grid</a></li>
574575
<li><a href="/codebase-5/docs/5-decoration-utilities/borders">Borders</a></li>
575576
</ul>
576577
<h3 id="real-css-grid-system" tabindex="-1">Real CSS grid system</h3>
@@ -602,20 +603,18 @@ <h2 id="things-that-have-been-removed" tabindex="-1">Things that have been remov
602603
<li>“Dark mode” styling is not included in Codebase. (Dark mode may come back again as a side project in future.)</li>
603604
<li>The flexbox percentile “pseudo grid” system has been removed from Codebase. You can use the real CSS Grid <a href="/codebase-5/docs/3-layout-utilities/grid">grid system</a> instead.</li>
604605
<li>Support for Internet Explorer 11 has been dropped.</li>
605-
<li>The Codebase 4 <code>activator.js</code> has been retired, therefore Codebase 5 does not have CSS pertaining to it.</li>
606+
<li>The Codebase 4 <code>activator.js</code> has been retired, and all CSS pertaining to it has been removed. (Use AlpineJS instead.)</li>
606607
</ul>
607608
<h2 id="internet-explorer-11-is-not-supported" tabindex="-1">Internet Explorer 11 is not supported</h2>
608-
<p>IE11 came out in 2013, and <a href="https://docs.microsoft.com/en-us/lifecycle/announcements/m365-ie11-microsoft-edge-legacy">Microsoft stopped supporting IE11 in August 2021</a> as a standalone browser. However, as IE11 is integral to older Windows operating systems, it continued to receive continual support until the <a href="https://docs.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge">end of it’s life cycle</a> in <strong>May 2022</strong> for these old versions of Windows. But now, Internet explorer has finally been <a href="https://death-to-ie11.com">laid to rest</a>.</p>
609+
<p>IE11 came out in 2013, and <a href="https://docs.microsoft.com/en-us/lifecycle/announcements/m365-ie11-microsoft-edge-legacy">Microsoft stopped supporting IE11 in August 2021</a> as a standalone browser. Microsoft stopped supporting IE11 in <a href="https://docs.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge">May 2022</a>.</p>
609610
<p>Several things have been included in Codebase CSS that have no backward-compatibility to older browsers such as IE11:</p>
610611
<ul>
611-
<li>The real <em>CSS Grid</em> based <a href="/codebase-5/docs/3-layout-utilities/grid">grid system</a>.</li>
612+
<li>The real <em>CSS Grid</em> based <a href="/codebase-5/docs/3-layout-utilities/grid">grid system</a></li>
613+
<li>The <code>gap</code> CSS property for flexbox and grid</li>
612614
<li><a href="/codebase-5/docs/3-layout-utilities/aspect-ratios">Aspect-ratio</a> wrappers</li>
613-
<li>Some styles have size constraints using <code>clamp()</code>.</li>
615+
<li>Some styles have size constraints using <code>clamp()</code></li>
614616
</ul>
615617
<p><strong>Note:</strong> also, <a href="https://alpinejs.dev/upgrade-guide#no-ie-11">Alpine 3 does not support Interet Explorer 11</a>.</p>
616-
<h2 id="activator.js-has-been-discontinued" tabindex="-1">Activator.JS has been discontinued</h2>
617-
<p>Since IE11 is not supported in Codebase 5, Codebase 4’s Activator JavaScript <code>activator.js</code> have been removed (both the vanilla JS and jQuery versions).</p>
618-
<p>Now, Codebase uses only AlpineJS (verion 3.x) for HTML/JS components.</p>
619618
<h2 id="gulp-is-no-longer-required" tabindex="-1">Gulp is no longer required</h2>
620619
<p>The <a href="https://gulpjs.com/">Gulp</a> taskrunner is no longer required.</p>
621620
<ul>
@@ -661,7 +660,7 @@ <h2 id="gulp-is-no-longer-required" tabindex="-1">Gulp is no longer required</h2
661660
</a>
662661
</p>
663662

664-
<p>Version 5.0.10<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
663+
<p>Version 5.1.0<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
665664

666665
</footer>
667666

docs/docs/1-getting-started/introduction/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Introduction - Codebase</title>
99

1010
<link href="/codebase-5/prism/prism.css" rel="stylesheet">
11-
<link href="/codebase-5/dist/codebase.css?v=5.0.10" rel="stylesheet">
11+
<link href="/codebase-5/dist/codebase.css?v=5.1.0" rel="stylesheet">
1212

1313
<link rel="icon" type="image/svg+xml" href="/codebase-5/favicon.svg">
1414
<link rel="apple-touch-icon" sizes="180x180" href="/codebase-5/apple-touch-icon.png">
@@ -273,7 +273,7 @@
273273

274274
<div class="grow">
275275
<div class="menu flex flex-end sm:hidden-below">
276-
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
276+
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
277277
<div><a class="p-block t-gray-600 t-decoration-none hover:t-decoration-underline hover:t-black" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
278278
</div>
279279
</div>
@@ -327,7 +327,7 @@
327327
<div id="side-menu-wrap" class="p-2 pb-6">
328328

329329
<div class="mb-3 sm:hidden">
330-
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.0.10">Download</a></div>
330+
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="/codebase-5/dist/codebase.css?v=5.1.0">Download</a></div>
331331
<div><a class="block py-1 t-decoration-none hover:t-decoration-underline t-gray-600 hover:t-gray-900" href="https://github.com/codebase-frontend-library/codebase-5">Github</a></div>
332332
</div>
333333

@@ -554,7 +554,7 @@ <h1 class="mb-0 t-heavy t-primary">Introduction</h1>
554554
<main class="col-1 sm:col-2">
555555
<div class="container-sm">
556556
<p>You can start working immediately with Codebase in a simple HTML setup.</p>
557-
<div class="my-6 flex flex-gap flex-wrap flex-center t-center">
557+
<div class="my-6 flex gap-3 flex-wrap flex-center t-center">
558558
<div>
559559
<a class="btn btn-primary btn-lg rounded-pill" href="/codebase-5/dist/codebase.css">Download CSS</code></a>
560560
</div>
@@ -666,7 +666,7 @@ <h2 id="browser-support" tabindex="-1">Browser support</h2>
666666
</a>
667667
</p>
668668

669-
<p>Version 5.0.10<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
669+
<p>Version 5.1.0<a href="https://github.com/codebase-frontend-library/codebase-5/blob/master/LICENSE">MIT licence</a><a href="https://github.com/codebase-frontend-library/codebase-5">GitHub</a></p>
670670

671671
</footer>
672672

0 commit comments

Comments
 (0)