-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
185 lines (140 loc) · 3.58 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Antler @ Cartalyst Labs</title>
<link rel="stylesheet/less" type="text/css" href="assets/style.less">
</head>
<body>
<div class="site">
<header class="site__header">
<a href=""><img class="site__brand" src="assets/img/brand.png" title="Antler"></a>
<h1>A micro CSS framework</h1>
</header>
<section class="layout">
<h2>Layouts</h2>
<p>Antler uses layouts as opposed to a grid & column approach. Through the power of fractions the <code>.layout(numerator, denominator)</code> method allows you to divide your elements according to its container. That means expressive class names, cleaner markup, and total responsive control.</p>
<input type="radio" name="nav" id="example" checked="checked"/>
<label for="example">Example</label>
<input type="radio" name="nav" id="html"/>
<label for="html">HTML</label>
<input type="radio" name="nav" id="less"/>
<label for="less">LESS</label>
<section class="content example">
<div class="example--layout">
<h3>General</h3>
<div class="full">
<div>.layout(1,1)</div>
</div>
<div class="halfs">
<div>.layout(1,2)</div>
<div>.layout(1,2)</div>
</div>
<div class="thirds">
<div>.layout(1,3)</div>
<div>.layout(1,3)</div>
<div>.layout(1,3)</div>
</div>
<div class="fourths">
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
</div>
<h3>Push</h3>
<div>
<div class="push-1">.layout(3, 4, push, 1);</div>
</div>
<div>
<div class="push-2">.layout(2, 4, push, 2);</div>
</div>
<div>
<div class="push-3">.layout(1, 4, push, 3);</div>
</div>
<h3>Center</h3>
<div>
<div class="center-1">.layout(1, 4, center);</div>
</div>
<div>
<div class="center-2">.layout(2, 4, center);</div>
</div>
<div>
<div class="center-3">.layout(3, 4, center);</div>
</div>
</div>
</section>
<section class="content html">
<pre><code>
<div class="example--layout">
<div class="full">
<div>.layout(1,1)</div>
</div>
<div class="halfs">
<div>.layout(1,2)</div>
<div>.layout(1,2)</div>
</div>
<div class="thirds">
<div>.layout(1,3)</div>
<div>.layout(1,3)</div>
<div>.layout(1,3)</div>
</div>
<div class="fourths">
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
<div>.layout(1,4)</div>
</div>
</div>
</code></pre>
</section>
<section class="content less">
<pre><code>
.example--layout {
.clearfix();
div {
padding:8px;
margin:4px 0;
color:@white;
text-align:center;
border-right:1px solid @white;
&:last-child {
border-right:none;
}
}
.full {
.clearfix();
div {
background: @palette3;
.layout(1,1);
}
}
.halfs {
.clearfix();
div {
background: @palette3;
.layout(1, 2);
}
}
.thirds {
.clearfix();
div {
background: @palette3;
.layout(1, 3);
}
}
.fourths {
.clearfix();
div {
background: @palette3;
.layout(1, 4);
}
}
}
</code></pre>
</section>
</section>
</div>
<script src="assets/js/less.js" type="text/javascript"></script>
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
</body>
</html>