This repository has been archived by the owner on Jan 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
196 lines (176 loc) · 9.57 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YUI Grid Builder</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.0.2/pure-min.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/tilomitra/yuicss-common/master/ui.css">
<link rel="stylesheet" type="text/css" href="public/css/user-interface.css">
<link rel="stylesheet" type="text/css" href="https://rawgh.neting.cc/ccampbell/rainbow/master/themes/github.css">
<!-- TYPEKIT -->
<script type="text/javascript" src="//use.typekit.net/ajf8ggy.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<style id="demo-grid-styles" type="text/css">
</style>
</head>
<body class="pure-g yui3-skin-sam">
<div id="wrapper" class="pure-g">
<div id="headerMenu" class="pure-menu pure-menu-open pure-menu-horizontal pure-menu-fixed">
<a href="/gridbuilder/" class="pure-u pure-menu-heading">YUI GridBuilder</a>
<ul>
<li class='pure-u'><a href="docs.html" alt="Documentation">Documentation</a></li>
<li class='pure-u'><a href="examples/magazine/" alt="Example">Example</a></li>
<li class='pure-u'><a href="https://github.com/yui/gridbuilder/issues" alt="File an issue">File an issue</a></li>
</ul>
</div>
<div class="header pure-u-1">
<h1 class="pure-u-1">YUI Grid Builder</h1>
<h2 class="pure-u">Build a custom grid for your project</h2>
</div>
<div class="pure-u-1">
<div class="pure-g" id="controlPanel">
<div class="pure-u-1-6">
<div class="cell" id="width">
<label for="grid-width">Width</label>
<input type="text" id="grid-width" value="960" disabled='true'/> <small>px</small>
</div>
</div>
<div class="pure-u-1-6">
<div class="cell" id="columns">
<label for="grid-columns">Columns</label>
<input type="text" id="grid-columns" value="12" />
</div>
</div>
<div class="pure-u-1-6">
<div class="cell" id="layout">
<label for="grid-layout">Type of Layout</label><br/>
<input type="radio" name="grid-layout" id="grid-layout-fixed" /> <small>Fixed</small>
<input type="radio" name="grid-layout" id="grid-layout-fluid" checked /> <small>Fluid</small>
</div>
</div>
<!--
<div class="pure-u-1-5">
<div class="cell" id="responsive">
<label for="grid-gutter">Gutter</label>
<input type="text" id="grid-gutter" value="6" /><small>px</small>
</div>
</div>
-->
<div class="pure-u-1-6">
<div class="cell" id="responsive">
<label for="grid-responsive">Responsive</label><br/>
<input type="radio" name="grid-responsive" id="grid-responsive-yes" checked/> <small>Yes</small>
<input type="radio" name="grid-responsive" id="grid-responsive-no" /> <small>No</small>
</div>
</div>
<div class="pure-u-1-6">
<div class="cell" id="prefix">
<label for="grid-prefix">Prefix</label>
<label for="grid-prefix">Row</label>
<label for="grid-prefix">Column</label>
<br/>
<input type="text" id="grid-prefix" value="pure-" placeholder='pure-'/>
<input type="text" id="grid-classname" value="g" placeholder="row" />
<input type="text" id="grid-unitClassName" value="u" placeholder="col"/>
</div>
</div>
<div class="pure-u-1-6">
<div class="cell" id="media-queries">
<label>Media Queries</label><br/>
<span id="current-media-queries"></span>
<input type="button" class="pure-button" id="default-media-queries" value="Edit Defaults"/>
<!-- <input type="button" class="pure-button notice" id="add-media-queries" value="Add"/> -->
</div>
</div>
</div>
</div>
<div id="demo" class="pure-u-1">
<h3>Demo</h3>
<div id="d"></div>
<div id="css-toggle" class="pure-u-1">
<h3>Grid CSS</h3>
<p>
Using <span>Pure Grids</span> v0.0.2<br/>
<input id="css-toggle-chkbox" type="checkbox"> View Minified CSS
</p>
</div>
<!-- <div class="centered">
<input class='pure-button notice' id="show-css-button" value="Show CSS"/>
</div> -->
<div id="demo-css"></div>
</div>
<div class="footer" class="pure-u-1">
<small class="pure-u-1 centered">
Built with <3 by the YUI Team. File issues and send pull requests on <a href="http://github.com/yui/gridbuilder">GitHub</a>.
</small>
</div>
</div>
<!-- <div id="screen-width" class="pure-u-1">This bar displays the screen width as you resize the window.</div> -->
<div id="panel-content"></div>
<script id="edit-media-query-view" type='text/x-template'>
<div class="yui3-widget-bd pure-u-1">
<h3>{name} <span>{id}</span></h3>
<p>This media query has the following rules attached to it:</p>
<p class="desc">{description}</p>
</div>
</script>
<script id="add-media-query-view" type='text/x-template'>
<div class="pure-widget-bd pure-u-1">
<h3>Add A New Media Query</h3>
<p>This media query has the following rules attached to it:</p>
<p class="desc">{description}</p>
</div>
</script>
<script id="default-media-query-view" type='text/x-template'>
<div class="yui3-widget-bd pure-u-1">
<h2>Edit Media Queries</h2>
<h3>Change the width values at which media queries are activated, or remove media queries that you do not need.</h3>
<div class="pure-g">
<div class="pure-u-1-2">
<div class="cell">
<h3>Smartphones <br/><span><input id="phone-query" class="media-query-input" value="480">px and below</span></h3>
<ul>
<li>Collapses responsive elements to 100% width </li>
<li>Includes helper classes to show/hide elements on smartphones</li>
</ul>
<input type="button" class="pure-button minibutton dmq-button" id="dmq-phone" value="{phoneValue}">
</div>
</div>
<div class="pure-u-1-2">
<div class="cell">
<h3>Smartphones to Tablets <br/><span><input id="phone-tablet-query" class="media-query-input" value="767">px and below</span></h3>
<ul>
<li>Collapses responsive elements to 100% width</li>
<li>Includes helper classes to show/hide elements on smaller tablets</li>
</ul>
<input type="button" class="pure-button minibutton dmq-button" id="dmq-phoneTablet" value="{phoneTabletValue}">
</div>
</div>
<div class="pure-u-1-2">
<div class="cell">
<h3>Tablets <br/><span><input class="media-query-input" id="tablet-min-query" value="768">px to <input id="tablet-max-query" class="media-query-input" value="979">px</span></h3>
<ul>
<li>Includes helper classes to show/hide elements on regular tablets such as iPads</li>
</ul>
<input type="button" class="pure-button minibutton dmq-button" id="dmq-tablet" value="{tabletValue}">
</div>
</div>
<div class="pure-u-1-2">
<div class="cell">
<h3>Default <br/><span><input class="media-query-input" id="default-query" value="980">px and above</span></h3>
<ul>
<li>Includes helper classes to show/hide elements on standard monitors/laptops screens</li>
</ul>
<input type="button" class="pure-button minibutton dmq-button" id="dmq-default" value="{defaultValue}">
</div>
</div>
</div>
</div>
</script>
<script src="http://yui.yahooapis.com/3.9.0/build/yui/yui-debug.js"></script>
<script src="public/js/builder.js"></script>
<script src="https://rawgh.neting.cc/ccampbell/rainbow/master/js/rainbow.min.js"></script>
<script src="https://rawgh.neting.cc/ccampbell/rainbow/master/js/language/css.js"></script>
</body>
</html>