Skip to content

Commit 77beb29

Browse files
committed
v.5.2.9
1 parent 4eba159 commit 77beb29

File tree

12 files changed

+67
-16
lines changed

12 files changed

+67
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
## 2 Nov 2023 -- v.5.2.9
66

7+
* Added `xs:`, `sm:`, `md:`, and `lg:` media query tiered variants to all `flex` modifier classes.
78
* Improved `t-link-inside` and `t-link`
89

910
## 25 Oct 2023 -- v.5.2.8

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Install via Git: https://github.com/codebase-frontend-library/codebase-5.git
1818

1919
***
2020

21-
* Current version: 5.2.9 -- see [log](https://github.com/codebase-frontend-library/codebase-5/blob/main/LOG.md)
21+
* Current version: 5.2.9 -- see [changelog](https://github.com/codebase-frontend-library/codebase-5/blob/main/CHANGELOG.md)
2222
* CSS file size: 89 KB
2323
* Licence: MIT
2424
* Developer: Simon Padbury

docs/dist/codebase.css

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/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/3-layout-utilities/flexbox/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ <h2 id="notes-on-flex" tabindex="-1">Notes on <code>flex</code></h2>
591591
<li>
592592
<p>If required in your design, you can override a flexbox at a wider breakpoint the element so that it is back to being a full-width block, using a responsive <a href="/codebase-5/docs/3-layout-utilities/blocks">block</a> utility.</p>
593593
</li>
594+
<li>
595+
<p>New in <code>v.5.2.9</code>: In addition to the <code>flex</code> setup class, you can also override eah of the flex modifier classes at the <code>xs</code>, <code>sm</code>, <code>md</code>, and <code>lg</code> breakpoint widths — see <a href="#responsive-flex-modifier-tiers">responsive flex modifier tiers</a>.</p>
596+
</li>
594597
</ol>
595598
<h2 id="setting-up-a-flex-flexbox" tabindex="-1">Setting up a <code>flex</code> flexbox</h2>
596599
<p>All you need is <code>flex</code>:</p>
@@ -674,6 +677,24 @@ <h3 id="using-grow-to-stretch-individual-flex-items" tabindex="-1">Using <code>g
674677
</div>
675678
</div>
676679
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>flex flex-column<span class="token punctuation">"</span></span> <span class="token special-attr"><span class="token attr-name">style</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token value css language-css"><span class="token property">height</span><span class="token punctuation">:</span> 250px</span><span class="token punctuation">"</span></span></span><span class="token punctuation">></span></span><br> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>div</span><span class="token punctuation">></span></span>x<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span><br> &lt;div class="grow>grow<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span><br><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>div</span><span class="token punctuation">></span></span></code></pre>
680+
<h2 id="responsive-flex-modifier-tiers" tabindex="-1">Responsive flex modifier tiers</h2>
681+
<p>New in <code>v.5.2.9</code>: In addition to the <code>flex</code> setup class, you can also override eah of the flex modifier classes at the <code>xs</code>, <code>sm</code>, <code>md</code>, and <code>lg</code> breakpoint widths:</p>
682+
<ul>
683+
<li><code>flex-start</code> / <code>flex-center</code> / <code>flex-end</code></li>
684+
<li><code>flex-top</code> / <code>flex-middle</code> / <code>flex-bottom</code></li>
685+
<li><code>flex-column</code> / <code>flex-column-reverse</code></li>
686+
<li><code>flex-row</code> / <code>flex-row-reverse</code></li>
687+
<li><code>flex-space-around</code> / <code>flex-space-between</code></li>
688+
<li><code>flex-grow-auto</code> / <code>flex-grow-equal</code></li>
689+
<li><code>flex-wrap</code></li>
690+
</ul>
691+
<p>Example: in this simple menubar, the links are centered forsmall viewports and right-aligned for medium viewports up:</p>
692+
<nav class="mb-3 b-thin p-block flex flex-center md:flex-end gap-2">
693+
<a href="#/">About</a>
694+
<a href="#/">Blog</a>
695+
<a href="#/">Contact</a>
696+
</nav>
697+
<pre class="language-html"><code class="language-html"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>nav</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span>b-thin p-block flex flex-center md:flex-end gap-2<span class="token punctuation">"</span></span><span class="token punctuation">></span></span><br> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>About<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><br> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Blog<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><br> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>a</span> <span class="token attr-name">href</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">"</span><span class="token punctuation">"</span></span><span class="token punctuation">></span></span>Contact<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>a</span><span class="token punctuation">></span></span><br><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>nav</span><span class="token punctuation">></span></span></code></pre>
677698
<h2 id="adding-gaps" tabindex="-1">Adding gaps</h2>
678699
<p>There are two ways to add gaps in <code>flex</code> sets.</p>
679700
<h3 id="gaps-using-gap-*" tabindex="-1">Gaps using <code>gap-*</code></h3>

docs/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,19 +180,19 @@
180180

181181
<section class="h-100vh grid md:equal-2-cols">
182182

183-
<div class="pt-6 md:pt-0 md:px-6 flex flex-column flex-center flex-middle t-white bg-teal-600">
183+
<div class="pt-6 md:pt-0 md:px-6 flex flex-column flex-center flex-middle t-center md:t-left t-white bg-teal-600">
184184
<div class="pt-3 container-xs t-long-read">
185-
<h1 class="mb-0 t-thin t-center sm:t-left">Codebase is a <span class="h5 t-heavy">business class</span> CSS style library for the modern web</h1>
185+
<h1 class="mb-0 t-thin">Codebase is a <span class="h5 t-heavy t-nowrap">business class</span> CSS style library for the modern web</h1>
186186
</div>
187-
<div class="container-xs my-4 md:my-6 inline-flex flex-wrap gap-2 h4">
187+
<div class="container-xs my-4 md:my-6 flex flex-wrap flex-center md:flex-start gap-2 h4">
188188
<a class="inline-block b-thin b-white rounded-pill p-block t-semibold t-white hover:t-teal-600 t-decoration-none hover:bg-white" href="/codebase-5/docs/1-getting-started/introduction/">Docs</a>
189189
<a class="inline-block b-thin b-white rounded-pill p-block t-semibold t-white hover:t-teal-600 t-decoration-none hover:bg-white" href="/codebase-5/dist/codebase.css?v=5.2.9">Download CSS</a>
190190
<a class="inline-block b-thin b-white rounded-pill p-block t-semibold t-white hover:t-teal-600 t-decoration-none hover:bg-white" href="https://github.com/codebase-frontend-library/codebase-5">GitHub repo</a>
191191
</div>
192192
<div class="pb-3 container-xs mx-auto grid xs:equal-2-cols col-gap-3 row-gap-1">
193193
<div class="flex flex-column gap-1">
194194
<span>Current version: 5.2.9</span>
195-
<span>CSS file size: 89 KB</span>
195+
<span>CSS file size: 91 KB</span>
196196
</div>
197197
<div class="flex flex-column gap-1">
198198
<span>Licence: <a class="t-teal-200 hover:t-white" href="https://github.com/codebase-frontend-library/codebase-5/blob/main/LICENCE">MIT</a></span>
@@ -215,7 +215,7 @@ <h1 class="mb-0 t-thin t-center sm:t-left">Codebase is a <span class="h5 t-heavy
215215
<p>Starting from a beautifully minimalist set of classless HTML tag styles for cross-browser compatibility, Codebase brings you a “utility first” approach to all this and more:</p>
216216
</div>
217217

218-
<div class="container-lg grid xs:equal-2-cols md:equal-3-cols gap-3 md:gap-6">
218+
<div class="container-lg grid xs:equal-2-cols md:equal-3-cols gap-2 sm:gap-4 lg:gap-6">
219219

220220
<div class="bs-3 rounded-lg p-2 md:p-4 bg-white">
221221
<h2>Typography</h2>

src/_data/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"title": "Codebase",
33
"version": "5.2.9",
4-
"css_filesize": "89 KB"
4+
"css_filesize": "91 KB"
55
}

src/codebase/scss/03_utilities/_flexbox.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ $mq-value in $mq-width {
9898
$mq-value in $mq-width {
9999
.#{$mq-key}\:flex {
100100
@include break-min(#{$mq-value}) {
101-
display: flex;
101+
@include flex;
102102
}
103103
}
104104
}

src/dist/codebase.css

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

src/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.

0 commit comments

Comments
 (0)