-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
261 lines (241 loc) · 6.13 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css">
<!-- For local development -->
<link rel="stylesheet" href="/dist/flexpad.css">
<!-- For github.io page -->
<link rel="stylesheet" href="/flexpad/dist/flexpad.css">
<style>
* {
box-sizing: border-box;
}
body {
min-height: 100vh;
font-family: sans-serif;
font-size: 20px;
color: SlateGray;
padding: 2rem;
}
h1 {
margin: 40px 0 35px 0;
color: GoldenRod;
}
a {
color: GoldenRod;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
width: 370px;
margin: 35px 0 40px 0;
text-align: center;
}
nav {
min-width: 780px;
}
article {
margin-top: 20px;
flex-grow: 1;
}
section {
min-width: 144px;
min-height: 174px;
margin: 5px 15px 0 15px;
}
label {
display: block;
width: 100%;
font-size: 24px;
font-weight: bold;
font-family: monospace;
text-align: center;
color: rgba(218, 165, 32, 0.75);
margin-bottom: 3px;
}
input {
width: 180px;
margin: 0 5px;
}
button {
cursor: pointer;
min-width: 50px;
min-height: 50px;
background-color: white;
padding: 10px;
border: 2px solid SlateGray;
margin: 0px 0.25rem;
font-family: monospace;
color: SlateGray;
}
button:focus, input:focus {
outline: none;
}
.buttons {
padding: 0;
max-width: 60px;
min-height: 60px;
border: 2px solid SlateGray;
}
.separator {
width: 2px;
background-color: SlateGray;
height: 46px;
margin: 0 5px;
}
.buttons button, .zero {
padding: 0;
width: 25px;
height: 25px;
min-width: 25px;
min-height: 25px;
margin: 0;
border: none;
font-size: 16px;
}
.zero {
margin-top: 0.5rem;
border: 2px solid SlateGray;
}
.button-active {
font-weight: bold;
color: GoldenRod;
border-color: GoldenRod;
}
.lock {
border: none;
}
.lock-x {
border-top: 2px solid SlateGray;
border-bottom: 2px solid SlateGray;
}
.lock-y {
border-left: 2px solid SlateGray;
border-right: 2px solid SlateGray;
}
.container {
background-color: rgba(238, 238, 238, 0.33);
min-width: 144px;
min-height: 144px;
}
.y-locked {
max-height: 144px;
}
.x-locked {
max-width: 144px;
}
.box {
min-width: 34px;
min-height: 34px;
margin: 1px;
border: 2px solid SlateGray;
font-size: 16px;
font-weight: bold;
background-color: white;
cursor: default;
}
.box-baseline:nth-child(2) {
font-size: 20px;
}
.box-baseline:nth-child(3) {
font-size: 24px;
}
.grow {
flex-grow: 1;
}
.ml {
margin-left: 1rem;
}
</style>
<title>Flexpad</title>
</head>
<body class="y8">
<h1>Flexpad</h1>
<nav class="x51b">
<div class="x41">
<button class="button-active" title="X axis">x</button>
<button title="Y axis">y</button>
<div class="separator"></div>
<button title="space-around">a</button>
<button title="space-between">b</button>
<button title="space-evenly">e</button>
<div class="separator"></div>
<button title="stretch">s</button>
<button title="baseline">z</button>
<button title="first baseline">f</button>
<button title="last baseline">l</button>
</div>
<div class="y8 ml">
<div id="wrap-origin" class="x51 buttons" title="wrap origin">
<button>⌜</button>
<button>⌝</button>
<button>⌞</button>
<button>⌟</button>
</div>
<button class="zero" title="nowrap reverse">0</button>
</div>
<div class="x41 ml">
<button class="lock" title="lock dimensions">🔒</button>
<button title="grow children">↹</button>
</div>
<input type="range" min="1" max="20" value="3" title="number of children" class="ml" />
</nav>
<article class="y8">
<div class="x5">
<section id="1">
<label></label>
<div></div>
</section>
<section id="2">
<label></label>
<div></div>
</section>
<section id="3">
<label></label>
<div></div>
</section>
</div>
<div class="x5">
<section id="4">
<label></label>
<div></div>
</section>
<section id="5">
<label></label>
<div></div>
</section>
<section id="6">
<label></label>
<div></div>
</section>
</div>
<div class="x5">
<section id="7">
<label></label>
<div></div>
</section>
<section id="8">
<label></label>
<div></div>
</section>
<section id="9">
<label></label>
<div></div>
</section>
</div>
</article>
<footer class="x8b">
<a href="https://github.com/dherault/flexpad" target="_blank">Documentation</a>
<a href="https://raw.githubusercontent.com/dherault/flexpad/master/dist/flexpad.css" target="_blank">CSS file</a>
<a href="https://github.com/dherault/flexpad/blob/master/LICENSE" target="_blank">MIT License</a>
</footer>
<!-- For local development -->
<script src="/demo.js"></script>
<!-- For github.io page -->
<script src="/flexpad/demo.js"></script>
</body>
</html>