Skip to content

Commit 40b87a1

Browse files
committed
v4.0.4
1 parent 6c881a3 commit 40b87a1

File tree

171 files changed

+2219
-2758
lines changed

Some content is hidden

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

171 files changed

+2219
-2758
lines changed

.eleventyignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
README.md
2-
_drafts/
3-
_src/
1+
README.md

LOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Log
22

3+
## 6 March 2021 – Codebase 4.0.4
4+
5+
* Minor improvements to typography:
6+
* slightly reducing H3 and H4 heading sizes, so that there is more difference between couplets of H2/H3 and H3/H4;
7+
* Adding margin below OL and UL, so that it is the same as for paragraphs and headings (instead of the space between each LI).
8+
* Downloadable zipped `dist` folder, prepared using `gulp-zip`.
9+
* Improvements to the docs.
10+
311
## 27 February 2021 - Codebase 4.0.3
412

513
* Added the `.panel-responsive component.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The super tiny website frontend library.
44

5-
_Version 4.0.3_
5+
_Version 4.0.4_
66

77
## Features
88

docs/dist.zip

84.4 KB
Binary file not shown.

docs/dist/activator.jquery.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*!
2-
* CODEBASE v.4 ACTIVATOR (jQuery version)
2+
* CODEBASE ACTIVATOR (jQuery version)
33
* Use only if you want to support Internet Explorer 11
44
* Use with =< jQuery 2.2.4 (do not use with jQuery 3.x)
55
* MIT Licence
6-
* v4.0.2
6+
* Unchanged since v.4.0.2
77
*/
88

99
(function ($) {

docs/dist/activator.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/codebase-l-d.css

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/codebase-l-d.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/codebase.css

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dist/codebase.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/1-getting-started/alpinejs-or-activator/index.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@
178178
<a href="/codebase-4/">Home</a>
179179
</li>
180180
<li class="hide-below-md">
181-
<a href="/codebase-4/docs/1-getting-started/simple-html-setup/">Documentation</a>
181+
<a href="/codebase-4/docs/1-getting-started/introduction/">Documentation</a>
182182
</li>
183183
<li class="hide-below-md">
184-
<a href="https://github.com/codebase-frontend-library/codebase-4/archive/master.zip">Download</a>
184+
<a href="/codebase-4/dist.zip">Download</a>
185185
</li>
186186
<li class="hide-below-md">
187187
<a href="https://github.com/codebase-frontend-library/codebase-4">GitHub</a>
@@ -263,7 +263,7 @@
263263
<a href="/codebase-4/">Home</a>
264264
</li>
265265
<li>
266-
<a href="https://github.com/codebase-frontend-library/codebase-4/archive/master.zip">Download</a>
266+
<a href="/codebase-4/dist.zip">Download</a>
267267
</li>
268268
<li>
269269
<a href="https://github.com/codebase-frontend-library/codebase-4">GitHub</a>
@@ -293,7 +293,7 @@ <h4 class="mt-3 px-2 t-thin t-loose">Documentation</h4>
293293
x-bind:style="revealed == true ? 'max-height: ' + $refs.panel.scrollHeight + 'px' : ''">
294294
<div class="px-2">
295295
<ul class="menu">
296-
<li><a href="/codebase-4/docs/1-getting-started/simple-html-setup">Simple HTML setup</a></li>
296+
<li><a href="/codebase-4/docs/1-getting-started/introduction/">Introduction</a></li>
297297
<li><a href="/codebase-4/docs/1-getting-started/codebase-scss-library">The Codebase SCSS library</a></li>
298298
<li><a href="/codebase-4/docs/1-getting-started/alpinejs-or-activator">AlpineJS or Activator components</a></li>
299299
<li><a href="/codebase-4/docs/1-getting-started/responsive-design">Responsive design</a></li>
@@ -566,17 +566,17 @@ <h4 class="mt-3 px-2 t-thin t-loose">Documentation</h4>
566566
</div>
567567
</div>
568568

569-
<article class="flex-item-grow-1">
569+
<article class="w-full">
570570

571571
<header class="mb-3 pt-responsive pb-3">
572-
<div class="container-grid container-grid-sm py-3">
573-
<div class="t-lg">
574-
575-
<div class="mb-1 bb-thin pb-2 t-uppercase t-thin t-loose">Getting Started</div>
576-
577-
<h1 class="mb-0">Using AlpineJS or Activator in Codebase</h1>
578-
</div>
572+
<div class="container-grid container-grid-sm py-3">
573+
<div class="t-lg">
574+
575+
<div class="mb-1 bb-thin pb-2 t-uppercase t-thin t-loose">Getting Started</div>
576+
577+
<h1 class="mb-0">Using AlpineJS or Activator in Codebase</h1>
579578
</div>
579+
</div>
580580
</header>
581581

582582
<section id="docs-mainbody" class="container-grid container-grid-sm mb-6">
@@ -587,8 +587,8 @@ <h1 class="mb-0">Using AlpineJS or Activator in Codebase</h1>
587587
<p>Veteran web designers may still prefer the way <code>activator.js</code> does things. But do try to discover for yourself that AlpineJS is more powerful, because of its declarative approach to DOM manipulation. I recommend Alpine over <code>activator.js</code> for most use cases. It really is worth you taking time to learn something new.</p>
588588
<p>Besides the Codebase-based AlpineJS demos in these docs, there are plenty of tutorials and videos out there showing you how to use Alpine.</p>
589589
<div class="grid-sm-2-cols grid-gap my-6 t-center">
590-
<a class="mb-3 btn btn-primary rounded-pill" href="/codebase-4/docs/8-alpinejs-components/about-alpinejs-components">Codebase with AlpineJS</a>
591-
<a class="mb-3 btn btn-secondary rounded-pill" href="/codebase-4/docs/9-activator-components/about-activator-components">Codebase with Activator</a>
590+
<a class="mb-3 btn btn-primary btn-lg rounded-pill" href="/codebase-4/docs/8-alpinejs-components/about-alpinejs-components">Codebase with AlpineJS</a>
591+
<a class="mb-3 btn btn-secondary btn-lg rounded-pill" href="/codebase-4/docs/9-activator-components/about-activator-components">Codebase with Activator</a>
592592
</div>
593593
<p><strong>Note:</strong> Converting Codebase components from Activator to AlpineJS, or <em>vise versa</em>, involves more than simply swapping out one script for the other. The HTML also needs to be reconfigured. AlpineJS uses its own <em>declarations</em> as HTML attributes. The way that the Codebase <code>activator.js</code> works is completely different – it uses <code>id</code>, <code>aria</code> attributes, <code>data</code> attributes.</p>
594594

@@ -615,7 +615,7 @@ <h1 class="mb-0">Using AlpineJS or Activator in Codebase</h1>
615615
<!-- Codebase logo-->
616616
<svg style="height: 4rem; margin-bottom: 1rem;" viewBox="0 0 340 180" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-miterlimit="2"><path d="M195.956 115.956c14.059-14.059 36.853-14.059 50.912 0 14.058 14.059 14.058 36.853 0 50.912L323.235 90.5l-76.367-76.368c14.058 14.059 14.058 36.853 0 50.912-14.059 14.059-36.853 14.059-50.912 0-14.059-14.059-36.853-14.059-50.912 0-14.059 14.059-14.059 36.853 0 50.912 14.059 14.059 36.853 14.059 50.912 0M17.765 90.5l76.367-76.368c-42.176 42.177-42.176 110.559 0 152.736L17.765 90.5z" fill-rule="nonzero" fill="currentColor" stroke="currentColor" stroke-width="10"/></svg>
617617
<span>
618-
Codebase <span class="t-thin">4.0.3</span>
618+
Codebase <span class="t-thin">4.0.4</span>
619619
</span>
620620

621621
</span>

docs/docs/1-getting-started/codebase-scss-library/index.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@
178178
<a href="/codebase-4/">Home</a>
179179
</li>
180180
<li class="hide-below-md">
181-
<a href="/codebase-4/docs/1-getting-started/simple-html-setup/">Documentation</a>
181+
<a href="/codebase-4/docs/1-getting-started/introduction/">Documentation</a>
182182
</li>
183183
<li class="hide-below-md">
184-
<a href="https://github.com/codebase-frontend-library/codebase-4/archive/master.zip">Download</a>
184+
<a href="/codebase-4/dist.zip">Download</a>
185185
</li>
186186
<li class="hide-below-md">
187187
<a href="https://github.com/codebase-frontend-library/codebase-4">GitHub</a>
@@ -263,7 +263,7 @@
263263
<a href="/codebase-4/">Home</a>
264264
</li>
265265
<li>
266-
<a href="https://github.com/codebase-frontend-library/codebase-4/archive/master.zip">Download</a>
266+
<a href="/codebase-4/dist.zip">Download</a>
267267
</li>
268268
<li>
269269
<a href="https://github.com/codebase-frontend-library/codebase-4">GitHub</a>
@@ -293,7 +293,7 @@ <h4 class="mt-3 px-2 t-thin t-loose">Documentation</h4>
293293
x-bind:style="revealed == true ? 'max-height: ' + $refs.panel.scrollHeight + 'px' : ''">
294294
<div class="px-2">
295295
<ul class="menu">
296-
<li><a href="/codebase-4/docs/1-getting-started/simple-html-setup">Simple HTML setup</a></li>
296+
<li><a href="/codebase-4/docs/1-getting-started/introduction/">Introduction</a></li>
297297
<li><a href="/codebase-4/docs/1-getting-started/codebase-scss-library">The Codebase SCSS library</a></li>
298298
<li><a href="/codebase-4/docs/1-getting-started/alpinejs-or-activator">AlpineJS or Activator components</a></li>
299299
<li><a href="/codebase-4/docs/1-getting-started/responsive-design">Responsive design</a></li>
@@ -566,22 +566,22 @@ <h4 class="mt-3 px-2 t-thin t-loose">Documentation</h4>
566566
</div>
567567
</div>
568568

569-
<article class="flex-item-grow-1">
569+
<article class="w-full">
570570

571571
<header class="mb-3 pt-responsive pb-3">
572-
<div class="container-grid container-grid-sm py-3">
573-
<div class="t-lg">
574-
575-
<div class="mb-1 bb-thin pb-2 t-uppercase t-thin t-loose">Getting Started</div>
576-
577-
<h1 class="mb-0">The Codebase SCSS Library</h1>
578-
</div>
572+
<div class="container-grid container-grid-sm py-3">
573+
<div class="t-lg">
574+
575+
<div class="mb-1 bb-thin pb-2 t-uppercase t-thin t-loose">Getting Started</div>
576+
577+
<h1 class="mb-0">The Codebase SCSS Library</h1>
579578
</div>
579+
</div>
580580
</header>
581581

582582
<section id="docs-mainbody" class="container-grid container-grid-sm mb-6">
583583
<p class="t-lg t-thin">Codebase is, primarily, a highly versatile SCSS library, preprocessed and minified to CSS.</p>
584-
<p>You can just drop the CSS into your ptoject and use it as-is, but Sass/SCSS aficionados may wish to override the any or many of the <code>!default</code> variables in <code>_src/codebase/scss/00_setup/__default-variables.scss</code>. This can be done as follows:</p>
584+
<p>You can just drop the CSS into your ptoject and use it as-is, but Sass/SCSS aficionados may wish to override the any or many of the <a href="https://github.com/codebase-frontend-library/codebase-4/blob/master/src/codebase/scss/00_setup/__default-variables.scss">!default variables</a> in <code>_src/codebase/scss/00_setup/__default-variables.scss</code>. This can be done as follows:</p>
585585
<pre class="language-scss"><code class="language-scss"><span class="token comment">// (1.) In your master SCSS file, override the</span><br><span class="token comment">// Codebase `!default` variables, e.g.</span><br><br><span class="token property"><span class="token variable">$color-background</span></span><span class="token punctuation">:</span> lightseagreen<span class="token punctuation">;</span><br><br><span class="token comment">// (2.) After your overrides, import the </span><br><span class="token comment">// Codebase master file into your SCSS</span><br><br><span class="token keyword">@import</span> <span class="token string">"path/to/codebase/scss/codebase.scss"</span><span class="token punctuation">;</span><br><br><span class="token comment">// (3.) Set your project SCSS styles </span><br><span class="token comment">// after importing Codebase</span><br><br><span class="token selector">body </span><span class="token punctuation">{</span><br><br> <span class="token comment">// This below will now receive your override </span><br> <span class="token comment">// for $color-background, instead of the </span><br> <span class="token comment">// `$color-background: #ffffff !default` </span><br> <span class="token comment">// from Codebase</span><br> <span class="token property">background</span><span class="token punctuation">:</span> <span class="token variable">$color-background</span><span class="token punctuation">;</span><br><span class="token punctuation">}</span></code></pre>
586586
<pre class="language-css"><code class="language-css"><span class="token comment">/* (4.) Therefore, your intended CSS <br> output will be... */</span><br><br><span class="token selector">body</span> <span class="token punctuation">{</span><br> <span class="token property">background</span><span class="token punctuation">:</span> lightseagreen<span class="token punctuation">;</span><br><span class="token punctuation">}</span></code></pre>
587587

@@ -590,7 +590,7 @@ <h1 class="mb-0">The Codebase SCSS Library</h1>
590590
<footer class="container-grid container-grid-lg mb-responsive t-center">
591591
<div class="clearfix bt-thin bb-thin py-2">
592592

593-
<a class="my-1 float-left btn btn-primary" href="/codebase-4/docs/1-getting-started/simple-html-setup">&larr; Simple HTML setup</a>
593+
<a class="my-1 float-left btn btn-primary" href="/codebase-4/docs/1-getting-started/introduction">&larr; Introduction</a>
594594

595595

596596
<a class="my-1 float-right btn btn-primary" href="/codebase-4/docs/1-getting-started/alpinejs-or-activator">AlpineJS or Activator &rarr;</a>
@@ -608,7 +608,7 @@ <h1 class="mb-0">The Codebase SCSS Library</h1>
608608
<!-- Codebase logo-->
609609
<svg style="height: 4rem; margin-bottom: 1rem;" viewBox="0 0 340 180" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-miterlimit="2"><path d="M195.956 115.956c14.059-14.059 36.853-14.059 50.912 0 14.058 14.059 14.058 36.853 0 50.912L323.235 90.5l-76.367-76.368c14.058 14.059 14.058 36.853 0 50.912-14.059 14.059-36.853 14.059-50.912 0-14.059-14.059-36.853-14.059-50.912 0-14.059 14.059-14.059 36.853 0 50.912 14.059 14.059 36.853 14.059 50.912 0M17.765 90.5l76.367-76.368c-42.176 42.177-42.176 110.559 0 152.736L17.765 90.5z" fill-rule="nonzero" fill="currentColor" stroke="currentColor" stroke-width="10"/></svg>
610610
<span>
611-
Codebase <span class="t-thin">4.0.3</span>
611+
Codebase <span class="t-thin">4.0.4</span>
612612
</span>
613613

614614
</span>

0 commit comments

Comments
 (0)