mini.css/docs/v2/index.html

196 lines
9.2 KiB
HTML
Raw Normal View History

2016-10-12 16:18:02 +00:00
<!DOCTYPE html>
<html>
<head>
<title>mini.css - A minimal Sass-y responsive mobile-first style-agnostic CSS framework</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="mini.css - A minimal Sass-y responsive mobile-first style-agnostic CSS framework">
<meta name="keywords" content="mini, mini.css, CSS, responsive, framework, mobile first, style agnostic, Sass">
<meta name="author" content="Angelos Chalaris (chalarangelo)">
<link rel="icon" type="image/png" href="favicon.png">
2016-10-21 14:26:20 +00:00
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
2016-10-21 14:50:43 +00:00
<!-- Live demo styled as of 20161021 -->
<link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/a97fea6596ae4692eb019b19877e4f3a1fc5f3d0/flavors/v2/mini-default.min.css">
<link rel="stylesheet" href="../../flavors/v2/mini-default.css">
2016-10-21 14:26:20 +00:00
<style>
#top-logo {
display: inline-block; height: 66px; width: 70px; margin: 64px auto -30px; border-radius: 1px;
background: #558b2f; padding: 8px; padding-top: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
#top-header {
color: #f5f5f5; font-size: 2.4em; text-shadow: 0 1px 2px rgba(0,0,0,0.35); margin-bottom: -8px;
}
#top-version-tag {
padding: 3px 5px; font-size: 0.85em; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.box-centered { text-align: center; }
2016-10-21 14:50:43 +00:00
.box-colored { background: #0277bd; border-radius: 2px; padding: 14px; margin-bottom: 8px; min-height: 14px;}
2016-10-21 14:26:20 +00:00
</style>
2016-10-12 16:18:02 +00:00
</head>
<body>
2016-10-21 14:26:20 +00:00
<div class="container" style="height: 320px; background: -webkit-linear-gradient(#455a64,#263238); background: linear-gradient(#455a64,#263238);">
<div class="row">
<div class="col-xs">
<div class="box-centered">
<img src="mini-logo.svg" id="top-logo">
<h1 id="top-header"><span style="font-size: 1.35em;">m</span>ini<span style="font-size:0.65em; color: #558b2f;">.css</span></h1>
<mark class="tag tertiary" id="top-version-tag">v2.0</mark>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-12 col-md">
<div class="box-centered">
<h2>Minimal</h2>
<i class="fa fa-compress fa-4x" aria-hidden="true"></i>
<br><br>
<p><strong>mini.css</strong> is one of the lightest front-end frameworks on the web: about 5KB gzipped. This helps your websites load faster, while still looking great!</p>
</div>
</div>
<div class="col-xs-12 col-md">
<div class="box-centered">
<h2>Reponsive</h2>
<i class="fa fa-mobile fa-4x" aria-hidden="true"></i>
<br><br>
<p><strong>mini.css</strong> is built in such a way that it will look great on most devices and especially phones and tablets. This allows you to easily tailor your websites to different users!</p>
</div>
</div>
<div class="col-xs-12 col-md">
<div class="box-centered">
<h2>Style-agnostic</h2>
<i class="fa fa-paint-brush fa-4x" aria-hidden="true"></i>
<br><br>
<p><strong>mini.css</strong> gives you the power of customization, using its fully moddable flavors. This will give you control over how your websites look and allow great designs to stand out!</p>
</div>
</div>
</div>
<div class="row">
<div class="col-xs">
<div>
<hr>
<p>Below you can see a showcase of the features and styles included in the <strong>default</strong> flavor of <strong>mini.css</strong>.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-xs">
<div>
2016-10-21 14:50:43 +00:00
<h2>Typography <small>Styles for common textual elements</small></h2>
2016-10-21 14:26:20 +00:00
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<div><h1>Heading 1 <small>Subheading</small></h1></div>
</div>
<div class="col-xs-12 col-md-4">
<div><h2>Heading 2 <small>Subheading</small></h2></div>
</div>
<div class="col-xs-12 col-md-4">
<div><h3>Heading 3 <small>Subheading</small></h3></div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-4">
<div><h4>Heading 4 <small>Subheading</small></h4></div>
</div>
<div class="col-xs-12 col-md-4">
<div><h5>Heading 5 <small>Subheading</small></h5></div>
</div>
<div class="col-xs-12 col-md-4">
<div><h6>Heading 6 <small>Subheading</small></h6></div>
</div>
</div>
<div class="row">
<div class="col-xs">
<div>
<br>
<p>This is a paragraph with some sample text. Did you know <strong>mini.css</strong> v2.0 is codenamed <strong>Fermion</strong>? No? Well, now you do! Maybe you want to know what our inline elements look like. For example a <a href="https://github.com/Chalarangelo/mini.css">link to the Github repository of mini.css</a> looks like that! Neat, right? Maybe you want to see some <code>inline code</code> or some sample <kbd>input</kbd>. Oh, also <small>small text</small> is cool, along with its siblings: the subscript<sub>hi!</sub> and the superscript<sup>hello!</sup>. We use <mark>highlights</mark> quite a lot as well. Apart from the primary color, you can also try the <mark class="secondary">secondary</mark> and <mark class="tertiary">tertiary</mark> colors. If you wanna be fancy, maybe use a <mark class="tag">tag</mark> or a <mark class="bubble">bubble</mark>. All of these work well inside headings and the like. To finish our typography tour, check out the preformatted code block below.</p><br>
</div>
<div>
<pre>function sum(num1, num2) {
var num3 = num1 + num2;
console.log('Result: ' + num3);
}</pre>
<br>
</div>
</div>
</div>
2016-10-21 14:50:43 +00:00
<div class="row">
<div class="col-xs">
<div>
<hr>
<h2>Grid system <small>Easy layout using flexbox</small></h2>
</div>
</div>
</div>
2016-10-21 14:50:43 +00:00
<div class="row">
<div class="col-xs">
<div>
<p><strong>mini.css</strong> uses the Flexible Layout Module (commonly known as <code>flexbox</code>) to create a grid system for easy page layout. The grid system is not the most feature-rich one, but it contains all the essential components. The <code>container</code> of the grid is fluid by default, meaning it will adjust to fill its parent container. Rows are easily created using the <code>row</code> class and columns can be created using the usual <code>col-SZ-XX</code> syntax where <code>SZ</code> and <code>XX</code> are replaced by a screen size and a number of vertical columns respectively. Columns can also scale themselves automatically if you omit the number of vertical columns in the class name. Similarly, you can use offsets with the <code>col-SZ-offset-XX</code> syntax. The <strong>default</strong> grid is separated into 12 vertical columns. You can see some examples below.</p><br>
</p></div>
<div class="container">
<div class="row">
<div class="col-xs">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="box-colored"></div>
</div>
<div class="col-xs-6">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-7">
<div class="box-colored"></div>
</div>
<div class="col-xs-5">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-2">
<div class="box-colored"></div>
</div>
<div class="col-xs-4">
<div class="box-colored"></div>
</div>
<div class="col-xs-6">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-xs-offset-3">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-4 col-xs-offset-2">
<div class="box-colored"></div>
</div>
<div class="col-xs-4">
<div class="box-colored"></div>
</div>
</div>
<div class="row">
<div class="col-xs-3 col-xs-offset-1">
<div class="box-colored"></div>
</div>
<div class="col-xs-2 col-xs-offset-3">
<div class="box-colored"></div>
</div>
<div class="col-xs">
<div class="box-colored"></div>
</div>
</div>
</div>
</div>
</div>
</div>
2016-10-12 16:18:02 +00:00
</body>
</html>