-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (131 loc) · 5.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css">
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500" rel="stylesheet">
<link rel="stylesheet" href="./styles/styles-min.css">
<link rel="stylesheet" href="./styles/simpleton-grid-dist.css">
<title>Simpleton Grid</title>
</head>
<body>
<header>
<div class="header-content">
<h1>SimpletonGrid</h1>
<p>SimpletonGrid is a simple mobile first flexbox based grid system that can be dropped into any project 👍🏻</p>
<div class="social">
<a class="github-button" href="https://github.com/coreygriffin/simpleton-grid" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star coreygriffin/simpleton-grid on GitHub">Star</a>
<a class="github-button" href="https://github.com/coreygriffin/simpleton-grid/fork" data-size="large" data-show-count="true" aria-label="Fork coreygriffin/simpleton-grid on GitHub">Fork</a>
</div>
</div>
</header>
<main class="container center">
<section id="example">
<div class="grid-example center">
<div class="simple-row gutters">
<div class="simple-col">
<p>1/4</p>
</div>
<div class="simple-col">
<p>1/4</p>
</div>
<div class="simple-col">
<p>1/4</p>
</div>
<div class="simple-col">
<p>1/4</p>
</div>
</div>
<div class="simple-row gutters">
<div class="simple-col-one-qt">
<p>1/4</p>
</div>
<div class="simple-col-one-qt">
<p>1/4</p>
</div>
<div class="simple-col-half">
<p>1/2</p>
</div>
</div>
<div class="simple-row gutters">
<div class="simple-col">
<p>1/3</p>
</div>
<div class="simple-col">
<p>1/3</p>
</div>
<div class="simple-col">
<p>1/3</p>
</div>
</div>
<div class="simple-row gutters">
<div class="simple-col">
<p>1/2</p>
</div>
<div class="simple-col">
<p>1/2</p>
</div>
</div>
<div class="simple-row gutters">
<div class="simple-col-one-qt">
<p>1/4</p>
</div>
<div class="simple-col-three-qt">
<p>3/4</p>
</div>
</div>
<div class="simple-row">
<div class="simple-col">
<p>1</p>
</div>
</div>
</div>
<a href="./styles/simpleton-grid-dist.css" class="example-download">Download</a>
</section>
<section id="directions">
<h3>How do I use it?</h3>
<pre>
<code class="code-example">
<!-- .container is the main wrapper which can be centered with the .center helper class -->
<div class="<strong>container center</strong>">
<!-- rows are initiated with the .simple-row class and gutters can be applied with the .gutters helper class -->
<div class="<strong>simple-row gutters</strong>">
<!-- columns should be immediate children of rows and are created with the .simple-col class -->
<div class="<strong>simple-col</strong>">1/4</div>
<div class="<strong>simple-col</strong>">1/4</div>
<div class="<strong>simple-col</strong>">1/4</div>
<div class="<strong>simple-col</strong>">1/4</div>
</div>
<!-- Since the layout is determined by the number columns added and flexbox will distrubuite evenly, there are a few one-off classes for uneven columns -->
<div class="<strong>simple-row gutters</strong>">
<div class="<strong>simple-col-one-qt</strong>">25%</div>
<div class="<strong>simple-col-one-qt</strong>">25%</div>
<div class="<strong>simple-col-half</strong>">50%</div>
</div>
<div class="<strong>simple-row gutters</strong>">
<div class="<strong>simple-col-one-qt</strong>">25%</div>
<div class="<strong>simple-col-three-qt</strong>">75%</div>
</div>
</div>
</code>
</pre>
<ul class="direction-recap">
<li>Simpleton comes with two helper classes: <strong>.center</strong> and <strong>.gutters</strong></li>
<li><strong>.container</strong> is the main wrapper for your layout and is available in 3 sizes: <strong>.container-sm (960px)</strong> -
<strong>.container (1200px)</strong> - <strong>.container-lg (1400px)</strong>
</li>
<li><strong>.simple-col</strong> will always fill 100% of container unless a one-off class is used.</li>
<li><em>BONUS:</em> holy grail layout available with these classes: <strong>hg-left</strong>, <strong>hg-center</strong>, <strong>hg-right</strong>.</li>
</ul>
</section>
</main>
<footer> <p>© 2018 - Brought to you by Corey Griffin</p></footer>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>