Skip to content

Commit

Permalink
Major Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorner committed Nov 18, 2019
1 parent 9953938 commit d6c2ccd
Show file tree
Hide file tree
Showing 45 changed files with 2,238 additions and 932 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Baseline Changelog

### *20191118*
* **NEW** Docs: Changed the look, added examples
* **NEW** Src: Completely revised everything

### *20191111*
* **NEW** Docs: Changed the look
* **TWEAK** Docs: Improved wording
Expand Down
4 changes: 2 additions & 2 deletions dist/baseline.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Custom variables
docs-ver: v1.0.0-beta.6
src-ver: v1.0.0-beta.3
docs-ver: v1.0.0-beta.7
src-ver: v1.0.0-beta.4
repo: https://github.com/felixdorner/baseline
download: https://github.com/felixdorner/baseline/releases/latest

Expand Down
4 changes: 2 additions & 2 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="o-container c-footer u-pa--00b">
<footer class="o-container o-container--padded c-footer">
<div class="o-grid">
<div class="o-grid__col u-span--12">
<div class="o-grid__col u-span--12 u-span--08md u-span--06lg u-push--02md u-push--03lg">
<p>Baseline is licensed under the MIT License.<br />
Copyright &copy; {{ 'now' | date: "%Y" }}, <a href="https://felixdorner.de/">Felix Dorner</a></p>
</div>
Expand Down
5 changes: 2 additions & 3 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

<!-- Link tags -->
<link rel="shortcut icon" href="{{site.baseurl}}/favicon.png">
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/fonts.css">
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/baseline.min.css">
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/site.css">
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/baseline.min.css?{{ site.time | date: '%s%N'}}">
<link rel="stylesheet" href="{{site.baseurl}}/assets/css/site.css?{{ site.time | date: '%s%N'}}">

</head>
28 changes: 20 additions & 8 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
<header class="c-header" style="background-image:url('{{site.baseurl}}/assets/img/header-bg.jpg');">
<header class="o-container c-header">
<div class="o-grid">
<div class="o-grid__col u-span--12">

<div class="c-header__btn-group">
<a class="c-btn c-btn--inv" href="{{site.repo}}">View on Github</a>
<a class="c-btn" href="https://github.com/felixdorner/baseline/releases/latest">Download</a>
</div>
<div class="c-header__branding">
<h1>{{page.title}}</h1> <mark>{{site.src-ver}}</mark>
</div>

<div>
<img class="c-header__illu" src="{{site.baseurl}}/assets/img/[email protected]" alt="Baseline cover illustration"/>
</div>
<div class="c-header__menu">
<ul>
{% for instruction in site.instructions %}
<li><a href="#{{ instruction.slug }}">{{ instruction.title }}</a></li>
{% endfor %}
</ul>
</div>

<div class="c-header__btns">
<a class="c-btn c-btn--inv" href="{{site.repo}}">View on Github</a>
<a class="c-btn" href="https://github.com/felixdorner/baseline/releases/latest">Download</a>
</div>

</div>
</div>
</header>
185 changes: 185 additions & 0 deletions docs/_includes/instr-base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<section id="{{ instruction.slug }}" class="o-container o-container--padded">
<div class="o-grid">
<div class="o-grid__col u-span--12 u-span--08md u-span--06lg u-push--02md u-push--03lg">

<h2>{{ instruction.title }}</h2>

<figure>
<img src="https://felixdorner.de/wp-content/uploads/2018/02/venice-beach-skater.jpg" alt="Placeholder Image">
<figcaption>This is an image with a caption</figcaption>
</figure>

<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>

<p>Catch a short <abbr title="Abbreviations">abbr</abbr> here. This is <b>strong</b> and this is <em>emphasized</em>! And heck, here's a <a href="#">link</a>. H<sub>2</sub>O is cool<sup>yep</sup>.</p>

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

<p>Use &lt;mark&gt; to <mark>highlight the important stuff</mark>, use &lt;ins&gt; <ins>when you have inserted content afterwards</ins> and use &lt;del&gt; <del>when you have deleted content later in the process</del>.</p>

<blockquote cite="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote">
<p>'The HTML blockquote Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote#Usage_notes">Notes</a> for how to change it). A URL for the source of the quotation may be given using the <code>cite</code> attribute, while a text representation of the source can be given using the <code>&lt;cite&gt;</code> cite element.'</p>
<footer>
<cite>MDN, 'The Block Quotation element'</cite>
</footer>
</blockquote>

<p>Inline &lt;q&gt; element: When Dave asks HAL to open the pod bay door, HAL answers: <q cite="https://www.imdb.com/title/tt0062622/quotes/qt0396921">I'm sorry, Dave. I'm afraid I can't do that.</q></p>

<details>
<summary>Click to Open...</summary>
<p>The HTML Details Element (details) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the summary element.</p>
</details>

<details open="">
<summary>Click to Hide...</summary>
<p>The HTML Details Element (details) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the summary element.</p>
</details>

<table>
<thead>
<tr>
<th>Heading</th>
<th style="text-align: center;">Heading</th>
<th style="text-align: right;">Heading</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Left</td>
<td style="text-align: center;">Center</td>
<td style="text-align: right;">Right</td>
</tr>
<tr class="even">
<td>Left</td>
<td style="text-align: center;">Center</td>
<td style="text-align: right;">Right</td>
</tr>
<tr class="odd">
<td>Left</td>
<td style="text-align: center;">Center</td>
<td style="text-align: right;">Right</td>
</tr>
<tr class="even">
<td>Left</td>
<td style="text-align: center;">Center</td>
<td style="text-align: right;">Right</td>
</tr>
</tbody>
</table>

<dl>
<dt>Definition List</dt>
<dd>The HTML dl tag is used for declaring a definition list. A definition list is similar to other lists but in a definition list, each list item contains two entries; a term and a description.</dd>
<dt>Baseline</dt>
<dd>CSS starter-kit built on top of PostCSS</dd>
</dl>

<h5>Mixed list items</h5>

<ul>
<li>Unordered list-item 1</li>
<li>Unordered list-item 2
<ol>
<li>Ordered list-item 1</li>
<li>Ordered list-item 2</li>
</ol>
</li>
<li>Unordered list-item 3</li>
<li>Unordered list-item 4</li>
</ul>

<address>
<b>Address</b><br>
Mozilla Foundation<br>
1981 Landings Drive<br>
Mountain View, CA 94043-0801<br>
USA
</address>

<hr>

<p>Here is some inline code for you: <code>var myNumber = 0;</code></p>

<pre>// This logs a message to the console and check out the scrollbar.<br>console.log('Hello, world!')</pre>

<p>
Press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Print Screen</kbd> to take
a selected area screenshot on Linux.
</p>

<h3>Form Elements</h3>

<form>

<fieldset>
<legend>Fieldset</legend>

<label for="email">Email</label>
<input type="email" name="email" id="email" placeholder="[email protected]">

<label for="password">Password</label>
<input type="password" name="password" id="password" placeholder="password">

<p>
<input type="checkbox" name="remember" id="remember" checked="">
<label for="remember">Remember me</label>
</p>

<input type="submit">
</fieldset>

<label for="id">User id (read only)</label>
<input readonly="" name="id" id="id" value="04D6H89Z">

<label for="disabled">Random disabled input</label>
<input disabled="" name="disabled" id="disabled" placeholder="Because why not?">

<label for="about">About me</label>
<textarea name="about" id="about" placeholder="I am a textarea..."></textarea>

<label for="drink">Select your favorite drink</label>
<select name="drinks" id="drink">
<option value="mojito">Mojito</option>
<option value="water">Water</option>
<option value="lemon">Lemon juice</option>
</select>

<label for="drinks">Or select multiple favorite drinks</label>
<br>
<small>Hold down the Ctrl (Windows) / Command (Mac) button to select multiple options. (P.S. this message is inside a <code>&lt;small&gt;</code> tag!)</small>

<select name="drink" id="drinks" multiple="">
<option value="mojito">Mojito</option>
<option value="water">Water</option>
<option value="lemon">Lemon juice</option>
</select>

<label>Choose a Doe:</label>
<div>
<input type="radio" id="john" name="doe" value="john" checked="">
<label for="john">John Doe</label>
</div>
<div>
<input type="radio" id="jane" name="doe" value="jane" checked="">
<label for="jane">Jane Doe</label>
</div>
<div>
<input type="radio" id="johnny" name="doe" value="johnny" checked="">
<label for="johnny">Johnny Doe</label>
</div>
<div>
<input type="radio" id="doe" name="doe" value="doe" checked="">
<label for="doe">An actual doe</label>
</div>

</form>

</div>
</div>
</section>
68 changes: 68 additions & 0 deletions docs/_includes/instr-grid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<section id="{{ instruction.slug }}" class="o-container o-container--padded">
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--12 u-span--08md u-span--06lg u-push--02md u-push--03lg">
<h2>{{ instruction.title }}</h2>
</div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--03 u-span--02md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-ds0--md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-ds0--md"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--06 u-span--04md u-span--03lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--06 u-span--04md u-span--03lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--06 u-span--04md u-span--03lg u-ds0--md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--06 u-span--04md u-span--03lg u-ds0--lg"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--06 u-span--04md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--06 u-span--04md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--06 u-span--04md u-ds0--md"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--12 u-span--06md"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--12 u-span--06md u-ds0--md"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--12"><div class="c-grid-sample-box"></div></div>
</div>
<div class="o-grid o-grid--sample">
<div class="o-grid__col u-span--12 u-span--08md u-span--06lg u-push--02md u-push--03lg">
{{ instruction.content }}
</div>
</div>
<div class="c-background-grid">
<div class="o-grid">
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
<div class="o-grid__col u-span--03 u-span--02md u-span--01lg"><div class="c-grid-sample-box"></div></div>
</div>
</div>
</section>
22 changes: 0 additions & 22 deletions docs/_includes/sidebar.html

This file was deleted.

6 changes: 4 additions & 2 deletions docs/_instructions/00-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ title: Quick Start
slug: setup
---

Attention: This kit is in active development. Future beta versions might be completely incompatible with this one!

1. Download the [latest release](https://github.com/felixdorner/baseline/releases/latest)
2. Copy the src folder into your project
3. Integrate files in a build process
3. Integrate files in a build process*

<span class="aside-txt">The build process needs to include [PostCSS](http://postcss.org/), [postcss-preset-env](https://preset-env.cssdb.org/) and [postcss-easy-import](https://github.com/TrySound/postcss-easy-import). View an example of a workflow with simple NPM scripts [here](https://gist.github.com/felixdorner/278fa705aa37cb369a809a4151c7d701).</span>
*The build process needs to include [PostCSS](http://postcss.org/), [postcss-preset-env](https://preset-env.cssdb.org/) and [postcss-easy-import](https://github.com/TrySound/postcss-easy-import). View an example of a workflow with simple NPM scripts [here](https://gist.github.com/felixdorner/278fa705aa37cb369a809a4151c7d701).*
18 changes: 9 additions & 9 deletions docs/_instructions/01-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ slug: architecture

Baseline is intended to be used as a simple starting point when writing CSS. It helps to create and maintain a mindful and scalable CSS structure. Therefore, styles are grouped into the following categories:

Settings
<span class="subtle-text">Settings contain global configurations like custom properties and breakpoints which are shared across the system.</span>
**Settings**
Settings contain global configurations like custom properties and breakpoints which are shared across the system.

Base
<span class="subtle-text">Base styles are default styles of base elements like headings or paragraphs without ID or class selectors. These styles serve as a browser reset and the foundation for everything specified afterwards in the cascade.</span>
**Base**
Base styles are default styles of base elements like headings or paragraphs without ID or class selectors. These styles serve as a browser reset and the foundation for everything specified afterwards in the cascade.

Objects
**Objects**
<span class="subtle-text">Objects are class-based selectors which define design patterns like containers or grids shared across the system. Classes of this category are prefixed with `o-`.</span>

Components
<span class="subtle-text">Components are independent parts of any system. However, unity only exists when design elements are in agreement. Therefore, components here are not entirely isolated as they inherit base styles. Classes of this category are prefixed with `c-`.</span>
**Components**
Components are independent parts of any system. However, unity only exists when design elements are in agreement. Therefore, components here are not entirely isolated as they inherit base styles. Classes of this category are prefixed with `c-`.

Utilities
<span class="subtle-text">Utilities are high-specificity, very explicit style rules which serve one purpose. Classes of this category are prefixed with `u-`.</span>
**Utilities**
Utilities are high-specificity, very explicit style rules which serve one purpose. Classes of this category are prefixed with `u-`.
5 changes: 5 additions & 0 deletions docs/_instructions/02-base.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Base Elements
slug: base
category: base
---
Loading

0 comments on commit d6c2ccd

Please sign in to comment.