From fdbcb9218f0ce45b66de2eca1b9f8b51ff426d95 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 28 Apr 2017 09:49:26 +0300 Subject: [PATCH] Fixed core documentation Removed extra tabs, which made the preformatted code look weird. --- docs/core.html | 64 +++++++++++++++++++++++------------------------ docs/v2/DEVLOG.md | 5 ++++ 2 files changed, 37 insertions(+), 32 deletions(-) diff --git a/docs/core.html b/docs/core.html index 0fda140..32757ab 100644 --- a/docs/core.html +++ b/docs/core.html @@ -99,7 +99,7 @@

For the basic typography rules we did the following, along with other things presented below:

@@ -125,11 +125,11 @@

All six of the HTML headings (<h1> - <h6>) are styled with simple rules, providing a clean base for your pages' headings. Apart from the headings themselves, complementary rules are provided for <small> elements inside headings, allowing you to define subheadings or explanatory text for those headings. These subheadings are stylized to display below the headings in smaller, lighter type.

Sample code

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

+<h2>Heading 2<small>Subheading</small></h2> +<h3>Heading 3<small>Subheading</small></h3> +<h4>Heading 4<small>Subheading</small></h4> +<h5>Heading 5<small>Subheading</small></h5> +<h6>Heading 6<small>Subheading</small></h6>
@@ -143,9 +143,9 @@

This is a paragraph with some sample text. Did you know mini.css v2.1 is codenamed Fermion? No? Well, now you do! Oh, by the way, that was some Bold text and here is some text in Italics. Maybe you want to know what our inline elements look like. For example a link to the Github repository of mini.css looks like that! Neat, right? Maybe you want to see some inline code or some sample input. Oh, also small text is cool, along with its siblings: the subscripthi! and the superscripthello!. Finally, check out the horizontal rule, preformatted code block and quotation below.


function sum(num1, num2) {
-		    var num3 = num1 + num2;
-		    console.log('Result: ' + num3);
-		}
+ var num3 = num1 + num2; + console.log('Result: ' + num3); +}
This is some quoted text from elsewhere.

@@ -153,17 +153,17 @@

The most common HTML5 elements must be things like <p>aragraphs, bold (<strong>) & italics (<em>) text, links (<a>), horizontal rules (<hr>) and <small> text. These, along with a few others, are styled by default using clean, modern design to make your pages look cool and stand out from the rest of the internet.

Sample code

<p>This is a paragraph with some <strong>bold text</strong> and some <em>italics text</em>.</p>
-		<a href="#">This is a link.</a>
-		<small>This is some small text.</small>
-		<sub>Subscript</sub>
-		<sup>Superscript</sup>
-		<code>Inline code</code>
-		<kbd>Keyboard Input</kbd>
-		<hr>
-		<pre>This is some preformatted text.</pre>
-		<blockquote cite="Quotation source">
-		  This is some quoted text from another website or person.
-		</blockquote>

+<a href="#">This is a link.</a> +<small>This is some small text.</small> +<sub>Subscript</sub> +<sup>Superscript</sup> +<code>Inline code</code> +<kbd>Keyboard Input</kbd> +<hr> +<pre>This is some preformatted text.</pre> +<blockquote cite="Quotation source"> + This is some quoted text from another website or person. +</blockquote>
@@ -192,16 +192,16 @@

Lists are also very commonly used in websites and apps. We tweaked a few margins and paddings to save some space and make them align properly with the rest of the common HTML elements that we use, but both unordered lists (<ul>) and ordered lists (<ol>) are minimally pre-styled to make things a little bit easier for you.

Sample code

<ul>
-		  <li>Apple</li>
-		  <li>Orange</li>
-		  <li>Strawberry</li>
-		</ul>
+  <li>Apple</li>
+  <li>Orange</li>
+  <li>Strawberry</li>
+</ul>
 
-		<ol>
-		  <li>Wake up</li>
-		  <li>Eat breakfast</li>
-		  <li>Go to work</li>
-		</ol>

+<ol> + <li>Wake up</li> + <li>Eat breakfast</li> + <li>Go to work</li> +</ol>
@@ -219,9 +219,9 @@

Image elements (<img>) are responsive by default, without the need for any special classes or anything else. We made sure they will scale down as necessary to display properly on smaller devices, while keeping their original aspect ratio, but they will never scale up above their original size.

On a side note, if you want to add captions to images, you can use a <figcaption> element, while wrapping both the image and it inside a <figure>.

Sample code

<figure>
-		  <img src="...">
-		  <figcaption>Image caption</figcaption>
-		</figure>

+ <img src="..."> + <figcaption>Image caption</figcaption> +</figure>
diff --git a/docs/v2/DEVLOG.md b/docs/v2/DEVLOG.md index bac401a..64cf5e0 100644 --- a/docs/v2/DEVLOG.md +++ b/docs/v2/DEVLOG.md @@ -1044,3 +1044,8 @@ - Tested aforementioned changes, everything seems to work ok. Size of `default` flavor is now `6.71KB` compared to a `6.89KB` in previous release. Pretty sweet reduction. - Built sidebar navigation into modules pages. - Tweaked color of `button` elements slightly to look less terrible. + +## 20170428 + +- Checked online if support for old `flexbox` syntax can be removed, but due to **UC Browser** (~9% of the market) it cannot. Shame really, because it's the only browser that needs it, all other legacy browsers have a low market share or are already deprecated due to other changes. Thus, we keep the old syntax, but a flag might come later down the line for people who don't care about legacy and UC. Also, the `-webkit` prefix for the newer syntax is still needed in many modern-ish browsers, so no changes in that department, either. At least, I checked. +- Fixed the extra tabbing in `core` module documentation.