-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
191 lines (184 loc) · 5.79 KB
/
example.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
186
187
188
189
190
191
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0" />
<title>The Heads-Up Grid Example</title>
<link rel="stylesheet" href="hugrid.css">
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="hugrid.js"></script>
<script>
$(function () {
// Below are the default options and would normally only need to be included
// if different from the default, e.g. gridOnLoad has been changed from 'off' to 'on'
var options = {
// pageUnits: 'px',
// colUnits: 'px',
gridOnLoad: 'on', // default is 'off'
// pageWidth: 960,
// columns: 6,
// columnWidth: 140,
// gutterWidth: 24,
// pageTopMargin: 35,
// rowHeight: 20
};
$().HUG(options).init();
});
</script>
</head>
<body>
<div class="page">
<h1>The Heads-Up Grid</h1>
<p id="subhead"><a href="http://bohemianalps.com/tools/grid/">The Heads-Up Grid</a> is an overlay grid for use during in-browser website development, built with HTML + CSS + JavaScript.</p>
<div class="cols cols3">
<div class="col">
<h2>I’m Droppin’ Science</h2>
<p>This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said.</p>
</div>
<div class="col">
<h2>Like Galileo</h2>
<p>This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said.</p>
</div>
<div class="col">
<h2>Dropped the Orange!</h2>
<p>This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said. This is just some filler copy. I got nothing to say that this example hasn’t already said.</p>
</div>
</div>
</div>
<p id="footer">This is just some filler copy. I got nothing to say that this example hasn’t already said.</p>
<style type="text/css">
body {
margin:0;
padding:0;
background-color:#666;
font-family: 'Inconsolata', sans-serif;
text-align:left;
color:#444;
}
h1 {
margin:0 0 .1em 0;
padding:0;
font-family:Arial,sans-serif;
font-weight:bold;
font-size:80px;
line-height:100%;
text-align:center;
text-transform:uppercase;
}
h2 {
margin:1em 0 .3em 0;
padding:0;
font-family:Arial,sans-serif;
font-weight:bold;
font-size:27px;
line-height:100%;
text-align:center;
}
p {
font-size:.9em;
line-height:1.3em;
margin:0 0 1.5em 0;
padding:0;
}
p#subhead {
margin-bottom:0;
text-align:center;
}
p#footer {
position:relative;
z-index:200000;
clear:both;
margin:1em 0;
font-size:.8em;
text-align:center;
color:#FFF;
}
pre {
overflow:auto;
margin:0 0 1em 0;
padding:20px;
background-color:#ECE9D0;
border-radius:8px;
font-family:'Andale Mono',monospace;
font-size:.7em;
line-height:1.2em;
color:#666;
}
pre i {
font-style:normal;
color:#514CD6;
}
pre b {
font-weight:normal;
color:#BE0009;
}
a:link,
a:visited {
border-width:0 0 1px 0;
border-style:dashed;
border-color:#3773B7;
text-decoration:none;
color:#3773B7;
}
a:hover {
border-style:solid;
}
a.button {
position:relative;
z-index:200000;
overflow:hidden;
display:block;
margin:4px;
padding:10px;
border-radius:8px;
border-width:0;
}
a.button:hover {
background-color:#ECE9D0;
box-shadow:1px 2px 8px #999;
}
a.button span {
display:block;
float:right;
width:175px;
padding-top:20px;
font-size:.9em;
}
a.button span strong {
font-size:1.4em;
}
#footer a:link,
#footer a:visited {
border-color:#FFF;
color:#FFF;
}
/* Page Structure */
div.page {
overflow:hidden;
width:960px;
margin:35px auto .5em auto;
padding:2em 2em 3em 2em;
background-color:#F7F4DB;
box-shadow:1px 2px 8px #222;
}
div.cols3 {
overflow:hidden;
}
div.col {
float:left;
margin:0;
}
div.cols3 div.col {
width:304px;
padding:0 0 0 24px;
}
div.cols2 div.col {
width:468px;
padding:0 0 0 24px;
}
div.cols div.col:first-child {
padding-left:0;
}
</style>
</body>
</html>