diff --git a/.gitignore b/.gitignore index 285d026..44faf1e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ docs/v3/index-splash-o1\.jpg docs/v3/index-splash-o2\.jpg docs/v3/responsive-original\.svg + +docs/v3/index-splash_original\.jpg diff --git a/docs/build-docs.js b/docs/build-docs.js index b96ba29..2f768d4 100644 --- a/docs/build-docs.js +++ b/docs/build-docs.js @@ -1,17 +1,93 @@ var fs = require('fs'); +var version = require('./vinf'); // Gets version info. +// INDEX + +var indexHtml = ` + +
+ + +minimal, responsive, style-agnostic
CSS framework
${version.version}
+ Get started +Want to build websites that look beautiful on any and all devices, but also load fast on mobile connections? Then mini.css is the right tool for you! Its tiny size (under 10KB gzipped), along with its responsive grid and modern components ensures that all your users are satisfied and can access your website anytime, anywhere. Bridging the gap between fully-featured frameworks (e.g. Bootstrap and Semantic UI) and micro frameworks (e.g. Milligram and Pure.CSS), mini.css packs a lot of features in a small package, while it relies solely on CSS, meaning you do not have to worry about any conflicts with other Javascript libraries you might be using.
+Creating a CSS framework that caters to everyone's needs is no easy task, but mini.css manages to rise to the occasion by providing extensive and coherent documentation in combination with templates, examples and semantic HTML5 markup. Modern UX patterns and accessibility guidelines are well-documented and can be used out of the box, using one of the unique flavors that the framework provides. If you still want more, you can create your own custom flavor or tweak an existing one just by opening its CSS file and changing a few custom properties. It's that simple!
+Head over to the documentation to learn how to get started using mini.css, as well as what flavors and components are availble and how to use them to create the website or web app you've always wanted. If you like the framework and want to support it, remember to to star it on Github. It means a lot to us and it only takes a couple of seconds!
+ + mini.css on Github +200px
.`,
- `Due to the media sections using object-fit
, you might want to use a polyfill for better browser support (recommended: image polyfill, video polyfill).`,
+ `Due to the media sections using Normalize.css v7.0.0 to reliably deal with inconsistencies between browsers, while applying some tasteful defaults on top, such as using native font stack to figure out the best font for each device, setting the background and foreground colors, as well as the size of the text to 16px
and its line height to 1.5
.
+ description: `mini.css utilizes the ruleset of Normalize.css v7.0.0 to reliably deal with inconsistencies between browsers, while applying some tasteful defaults on top, such as using native font stack to figure out the best font for each device, setting the background and foreground colors, as well as the size of the text to 16px
and its line height to 1.5
.
All of the most common HTML5 elements, such as paragraphs, links, bold, small and slanted text, have been styled by default using clean, modern typography to make your pages look cool and stand out from the rest of the internet.
`, example: `This is a paragraph with some sample text. Did you know that the latest version of mini.css is codenamed Gluon? Well, now you do!
Remember that mini.css is totally free, no fine print involved!
`, samples: [ diff --git a/docs/doc-fragments/grid.js b/docs/doc-fragments/grid.js index 1a3c661..b08abb8 100644 --- a/docs/doc-fragments/grid.js +++ b/docs/doc-fragments/grid.js @@ -2,7 +2,7 @@ module.exports = { id: 'grid', title: 'Grid system', keywords: [`grid`, `grid system`, `col`, `column`, `layout`, `row`, `container`, `small`, `medium`, `large`, `sm`, `md`, `lg`, `cols`, `predefined`, `offset`, `order`, `reorder`, `first`, `last`, `normal`], - description: `The grid system of mini.css utilizes the Flexbox layout to provide you with a simple, modern, responsive layout system for your web apps. Like most modern CSS frameworks' grid systems, it is composed of three main components - containers, rows and columns:
+ description: `The grid system of mini.css utilizes the Flexbox layout to provide you with a simple, modern, responsive layout system for your web apps. Like most modern CSS frameworks' grid systems, it is composed of three main components - containers, rows and columns:
.container
) is the outermost layer of the grid system and serves as a fluid wrapper, which can be used as the basis for your layout..row
), which will in turn house the columns.col-*-*
) are placed inside rows and they can be customized to display differently on different screen sizes, make use of fluid layouts, use offsets or change ordering.mini.css utilizes the ruleset of Normalize.css v7.0.0 to reliably deal with inconsistencies between browsers, while applying some tasteful defaults on top, such as using native font stack to figure out the best font for each device, setting the background and foreground colors, as well as the size of the text to 16px
and its line height to 1.5
.
mini.css utilizes the ruleset of Normalize.css v7.0.0 to reliably deal with inconsistencies between browsers, while applying some tasteful defaults on top, such as using native font stack to figure out the best font for each device, setting the background and foreground colors, as well as the size of the text to 16px
and its line height to 1.5
.
All of the most common HTML5 elements, such as paragraphs, links, bold, small and slanted text, have been styled by default using clean, modern typography to make your pages look cool and stand out from the rest of the internet.
This is a paragraph with some sample text. Did you know that the latest version of mini.css is codenamed Gluon? Well, now you do!
Remember that mini.css is totally free, no fine print involved!
<p>This is a paragraph. with some <strong>bold text</strong> and some <em>italics text</em>.</p> @@ -142,7 +140,7 @@Customization
- Text color can be changed globally by changing the value of the
--fore-color
variable. This will affect the text color of<code>
and<pre>
elements and background color of<kbd>
elements.- Background color can be changed globally by changing the value of the
--back-color
variable. This will affect the background color of<blockquote>
elements and text color of<kbd>
.- You can change the background color of
<code>
and<pre>
elements by changing the value of the--secondary-back-color
variable.- You can change the text color of
<blockquote>
elements by changing the value of the--secondary-fore-color
variable.- You can change the border color of
<pre>
and<blockquote>
elements by changing the value of the--secondary-border-color
variable.- You can change the border color of the left border of
<pre>
elements by changing the value of the--pre-color
variable.- You can change the border color of the left border of
<blockquote>
elements by changing the value of the--blockquote-color
variable.- Universal margin for elements can be changed globally by changing the value of the
--universal-margin
variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.- Universal padding for elements can be changed globally by changing the value of the
--universal-padding
variable.- Universal border radius for elements can be changed globally by changing the value of the
--universal-border-radius
variable.
The grid system of mini.css utilizes the Flexbox layout to provide you with a simple, modern, responsive layout system for your web apps. Like most modern CSS frameworks' grid systems, it is composed of three main components - containers, rows and columns:
+The grid system of mini.css utilizes the Flexbox layout to provide you with a simple, modern, responsive layout system for your web apps. Like most modern CSS frameworks' grid systems, it is composed of three main components - containers, rows and columns:
.container
) is the outermost layer of the grid system and serves as a fluid wrapper, which can be used as the basis for your layout..row
), which will in turn house the columns.col-*-*
) are placed inside rows and they can be customized to display differently on different screen sizes, make use of fluid layouts, use offsets or change ordering.Don't: Avoid mixing regular content with content in sections. Instead, wrap all of your card's contents in sections.
200px
.object-fit
, you might want to use a polyfill for better browser support (recommended: image polyfill, video polyfill).200px
.--card-fore-color
variable.--card-back-color
variable.--card-border-color
variable.--universal-padding
variable.minimal, responsive, style-agnostic
CSS framework
v3
+v3.0.0-alpha.1
+ Get started