uniform-ui 1.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/assets/config/manifest.js +1 -0
- data/lib/assets/javascripts/uniform/checkbox.js +31 -0
- data/lib/assets/javascripts/uniform/component.js +42 -0
- data/lib/assets/javascripts/uniform/dom-helpers.js +136 -0
- data/lib/assets/javascripts/uniform/dropdown.js +149 -0
- data/lib/assets/javascripts/uniform/floating-label.js +54 -0
- data/lib/assets/javascripts/uniform/icons.js +16 -0
- data/lib/assets/javascripts/uniform/modal.js +103 -0
- data/lib/assets/javascripts/uniform/resizer.js +43 -0
- data/lib/assets/javascripts/uniform/select.js +235 -0
- data/lib/assets/javascripts/uniform/tooltip.js +120 -0
- data/lib/assets/javascripts/uniform-es5.js +1 -0
- data/lib/assets/javascripts/uniform-jquery.js +124 -0
- data/lib/assets/javascripts/uniform.js +17 -0
- data/lib/assets/stylesheets/uniform/base.scss +3 -0
- data/lib/assets/stylesheets/uniform/components/alert.scss +72 -0
- data/lib/assets/stylesheets/uniform/components/buttons.scss +219 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/card.scss +33 -25
- data/lib/assets/stylesheets/uniform/components/container.scss +19 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/dropdown.scss +8 -4
- data/lib/assets/stylesheets/uniform/components/form/checkbox-collection.scss +103 -0
- data/lib/assets/stylesheets/uniform/components/form/checkbox.scss +58 -0
- data/lib/assets/stylesheets/uniform/components/form/floating-label.scss +64 -0
- data/lib/assets/stylesheets/uniform/components/form/input-group.scss +56 -0
- data/lib/assets/stylesheets/uniform/components/form.scss +143 -0
- data/lib/assets/stylesheets/uniform/components/grid.scss +158 -0
- data/lib/assets/stylesheets/uniform/components/label.scss +26 -0
- data/lib/assets/stylesheets/uniform/components/loaders.scss +80 -0
- data/{vendor → lib}/assets/stylesheets/uniform/components/modal.scss +26 -4
- data/lib/assets/stylesheets/uniform/components/nav.scss +124 -0
- data/lib/assets/stylesheets/uniform/components/row.scss +69 -0
- data/lib/assets/stylesheets/uniform/components/select.scss +122 -0
- data/lib/assets/stylesheets/uniform/components/table.scss +127 -0
- data/lib/assets/stylesheets/uniform/components/thumb.scss +41 -0
- data/lib/assets/stylesheets/uniform/components/tooltip.scss +63 -0
- data/lib/assets/stylesheets/uniform/components.scss +11 -0
- data/{vendor → lib}/assets/stylesheets/uniform/defaults.scss +7 -4
- data/lib/assets/stylesheets/uniform/functions.scss +31 -0
- data/lib/assets/stylesheets/uniform/helpers/border.scss +19 -0
- data/lib/assets/stylesheets/uniform/helpers/colors.scss +23 -0
- data/lib/assets/stylesheets/uniform/helpers/margin.scss +27 -0
- data/lib/assets/stylesheets/uniform/helpers/padding.scss +9 -0
- data/lib/assets/stylesheets/uniform/helpers/position.scss +13 -0
- data/lib/assets/stylesheets/uniform/helpers/sizes.scss +38 -0
- data/{vendor → lib}/assets/stylesheets/uniform/helpers/text.scss +86 -73
- data/lib/assets/stylesheets/uniform/helpers.scss +127 -0
- data/lib/assets/stylesheets/uniform/mixins.scss +116 -0
- data/lib/assets/stylesheets/uniform/print/grid.scss +50 -0
- data/lib/assets/stylesheets/uniform/variables.scss +72 -0
- data/lib/assets/stylesheets/uniform-print.scss +1 -0
- data/lib/assets/stylesheets/uniform.scss +11 -0
- data/lib/uniform/version.rb +3 -0
- data/lib/uniform.rb +15 -0
- metadata +87 -95
- data/.gitignore +0 -2
- data/CHANGELOG.md +0 -27
- data/CNAME +0 -1
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -40
- data/LICENSE +0 -22
- data/README.md +0 -35
- data/Rakefile +0 -74
- data/index.html +0 -251
- data/lib/uniform/rails/engine.rb +0 -8
- data/lib/uniform/rails.rb +0 -6
- data/lib/uniform/ui.rb +0 -1
- data/preview/alerts.html.erb +0 -1
- data/preview/buttons.html.erb +0 -62
- data/preview/cards.html.erb +0 -23
- data/preview/colors.html.erb +0 -22
- data/preview/dropdown.html.erb +0 -1
- data/preview/form.html.erb +0 -233
- data/preview/grid.html.erb +0 -304
- data/preview/helpers.html.erb +0 -225
- data/preview/index.html.erb +0 -77
- data/preview/labels.html.erb +0 -1
- data/preview/layout.html.erb +0 -63
- data/preview/loaders.html.erb +0 -83
- data/preview/modal.html.erb +0 -1
- data/preview/nav.html.erb +0 -77
- data/preview/preview.scss +0 -76
- data/preview/rows.html.erb +0 -36
- data/preview/select.html.erb +0 -1
- data/preview/tables.html.erb +0 -1
- data/preview/tabs.html.erb +0 -17
- data/preview/tiles.html.erb +0 -1
- data/preview/tooltip.erb +0 -1
- data/preview.css +0 -0
- data/site/alerts.html +0 -157
- data/site/alerts.html copy +0 -133
- data/site/buttons.html +0 -286
- data/site/cards.html +0 -177
- data/site/colors.html +0 -275
- data/site/dropdown.html +0 -157
- data/site/dropdown.html copy +0 -141
- data/site/form.html +0 -369
- data/site/grid.html +0 -716
- data/site/helpers.html +0 -1008
- data/site/index.html +0 -251
- data/site/labels.html +0 -157
- data/site/layout.html +0 -313
- data/site/loaders.html +0 -233
- data/site/logo.png +0 -0
- data/site/modal.html +0 -157
- data/site/nav.html +0 -229
- data/site/preview.css +0 -1
- data/site/preview.js +0 -59
- data/site/rows.html +0 -190
- data/site/select.html +0 -157
- data/site/tables.html +0 -157
- data/site/tabs.html +0 -171
- data/site/tiles.html +0 -157
- data/site/tiles.html copy +0 -109
- data/site/tooltip +0 -157
- data/site/uniform.css +0 -1
- data/uniform.gemspec +0 -22
- data/vendor/assets/stylesheets/uniform/base.scss +0 -2
- data/vendor/assets/stylesheets/uniform/components/alert.scss +0 -27
- data/vendor/assets/stylesheets/uniform/components/buttons.scss +0 -212
- data/vendor/assets/stylesheets/uniform/components/form.scss +0 -290
- data/vendor/assets/stylesheets/uniform/components/grid.scss +0 -225
- data/vendor/assets/stylesheets/uniform/components/label.scss +0 -63
- data/vendor/assets/stylesheets/uniform/components/loaders.scss +0 -82
- data/vendor/assets/stylesheets/uniform/components/nav.scss +0 -197
- data/vendor/assets/stylesheets/uniform/components/row.scss +0 -92
- data/vendor/assets/stylesheets/uniform/components/select.scss +0 -98
- data/vendor/assets/stylesheets/uniform/components/table.scss +0 -83
- data/vendor/assets/stylesheets/uniform/components/tabs.scss +0 -45
- data/vendor/assets/stylesheets/uniform/components/tile.scss +0 -20
- data/vendor/assets/stylesheets/uniform/components/tooltip.scss +0 -46
- data/vendor/assets/stylesheets/uniform/helpers/colors.scss +0 -37
- data/vendor/assets/stylesheets/uniform/helpers/margin.scss +0 -44
- data/vendor/assets/stylesheets/uniform/helpers/padding.scss +0 -74
- data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +0 -31
- data/vendor/assets/stylesheets/uniform/helpers.scss +0 -124
- data/vendor/assets/stylesheets/uniform/mixins.scss +0 -77
- data/vendor/assets/stylesheets/uniform/variables.scss +0 -36
- data/vendor/assets/stylesheets/uniform.scss +0 -9
data/index.html
DELETED
@@ -1,251 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<head>
|
3
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
4
|
-
<title>Uniform</title>
|
5
|
-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.css" type="text/css" media="screen">
|
6
|
-
<link rel="stylesheet" href="/site/uniform.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
7
|
-
<link rel="stylesheet" href="/site/preview.css" type="text/css" media="screen" charset="utf-8">
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
<div class="side-nav">
|
11
|
-
<div class="pad">
|
12
|
-
<a href="/">
|
13
|
-
<img src="/site/logo.png" class="block">
|
14
|
-
</a>
|
15
|
-
</div>
|
16
|
-
<div class="uniformNav vertical">
|
17
|
-
<div class="nav">
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<a href="/site/helpers.html">
|
22
|
-
Helpers
|
23
|
-
|
24
|
-
</a>
|
25
|
-
|
26
|
-
|
27
|
-
<a href="/site/colors.html">
|
28
|
-
Colors
|
29
|
-
|
30
|
-
</a>
|
31
|
-
|
32
|
-
|
33
|
-
<a href="/site/grid.html">
|
34
|
-
Grid
|
35
|
-
|
36
|
-
</a>
|
37
|
-
|
38
|
-
|
39
|
-
<a href="/site/buttons.html">
|
40
|
-
Buttons
|
41
|
-
|
42
|
-
</a>
|
43
|
-
|
44
|
-
|
45
|
-
<a href="/site/tables.html">
|
46
|
-
Tables
|
47
|
-
|
48
|
-
<span class="uniformLabel yellow">todo</span>
|
49
|
-
|
50
|
-
</a>
|
51
|
-
|
52
|
-
|
53
|
-
<a href="/site/cards.html">
|
54
|
-
Cards
|
55
|
-
|
56
|
-
</a>
|
57
|
-
|
58
|
-
|
59
|
-
<a href="/site/rows.html">
|
60
|
-
Rows
|
61
|
-
|
62
|
-
</a>
|
63
|
-
|
64
|
-
|
65
|
-
<a href="/site/form.html">
|
66
|
-
Form
|
67
|
-
|
68
|
-
</a>
|
69
|
-
|
70
|
-
|
71
|
-
<a href="/site/loaders.html">
|
72
|
-
Loaders
|
73
|
-
|
74
|
-
</a>
|
75
|
-
|
76
|
-
|
77
|
-
<a href="/site/nav.html">
|
78
|
-
Nav
|
79
|
-
|
80
|
-
</a>
|
81
|
-
|
82
|
-
|
83
|
-
<a href="/site/tabs.html">
|
84
|
-
Tabs
|
85
|
-
|
86
|
-
</a>
|
87
|
-
|
88
|
-
|
89
|
-
<a href="/site/tiles.html">
|
90
|
-
Tiles
|
91
|
-
|
92
|
-
<span class="uniformLabel yellow">todo</span>
|
93
|
-
|
94
|
-
</a>
|
95
|
-
|
96
|
-
|
97
|
-
<a href="/site/labels.html">
|
98
|
-
Labels
|
99
|
-
|
100
|
-
<span class="uniformLabel yellow">todo</span>
|
101
|
-
|
102
|
-
</a>
|
103
|
-
|
104
|
-
|
105
|
-
<a href="/site/alerts.html">
|
106
|
-
Alerts
|
107
|
-
|
108
|
-
<span class="uniformLabel yellow">todo</span>
|
109
|
-
|
110
|
-
</a>
|
111
|
-
|
112
|
-
|
113
|
-
<a href="/site/dropdown.html">
|
114
|
-
Dropdown
|
115
|
-
|
116
|
-
<span class="uniformLabel yellow">todo</span>
|
117
|
-
|
118
|
-
</a>
|
119
|
-
|
120
|
-
|
121
|
-
<a href="/site/modal.html">
|
122
|
-
Modal
|
123
|
-
|
124
|
-
<span class="uniformLabel yellow">todo</span>
|
125
|
-
|
126
|
-
</a>
|
127
|
-
|
128
|
-
|
129
|
-
<a href="/site/select.html">
|
130
|
-
Select
|
131
|
-
|
132
|
-
<span class="uniformLabel yellow">todo</span>
|
133
|
-
|
134
|
-
</a>
|
135
|
-
|
136
|
-
|
137
|
-
<a href="/site/tooltip.html">
|
138
|
-
Tooltip
|
139
|
-
|
140
|
-
<span class="uniformLabel yellow">todo</span>
|
141
|
-
|
142
|
-
</a>
|
143
|
-
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
</div>
|
147
|
-
<div class="main-content overflow-hidden">
|
148
|
-
<div class="text-center margin-top-more">
|
149
|
-
<img src="site/logo.png" width="451" height="101">
|
150
|
-
<p class="large">Sass components and helpers for building a UI.</p>
|
151
|
-
</div>
|
152
|
-
<div class="section">
|
153
|
-
<h1>Installation</h1>
|
154
|
-
<p>Add to your gem file<br/><code>gem 'uniform-ui'</code></p>
|
155
|
-
<p>Execute:<br/><code>$ bundle</code></p>
|
156
|
-
<p>Or install it yourself:<br/><code>$ gem install uniform-ui</code></p>
|
157
|
-
<p>Include the css library in your asset pipeline.<br/><code>@import 'uniform';</code></p>
|
158
|
-
<p>Include the javascript library in your asset pipeline.<br/><code>//= require uniform</code></p>
|
159
|
-
<h3>Scope Components</h3>
|
160
|
-
<p>Optionally, you can scope the components you want included in your assets.</p>
|
161
|
-
<pre class=''>// css
|
162
|
-
@import 'uniform';
|
163
|
-
// - OR -
|
164
|
-
@import 'uniform/base';
|
165
|
-
@import 'uniform/helpers';
|
166
|
-
@import 'uniform/defaults';
|
167
|
-
@import 'uniform/helpers/text';
|
168
|
-
@import 'uniform/helpers/colors';
|
169
|
-
@import 'uniform/helpers/sizes';
|
170
|
-
@import 'uniform/helpers/margin';
|
171
|
-
@import 'uniform/helpers/padding';
|
172
|
-
@import 'uniform/components/tile';
|
173
|
-
@import 'uniform/components/label';
|
174
|
-
@import 'uniform/components/form';
|
175
|
-
@import 'uniform/components/buttons';
|
176
|
-
@import 'uniform/components/select';
|
177
|
-
@import 'uniform/components/card';
|
178
|
-
@import 'uniform/components/grid';
|
179
|
-
@import 'uniform/components/table';
|
180
|
-
@import 'uniform/components/row';
|
181
|
-
@import 'uniform/components/tabs';
|
182
|
-
@import 'uniform/components/tooltip';
|
183
|
-
@import 'uniform/components/dropdown';
|
184
|
-
@import 'uniform/components/alert';
|
185
|
-
@import 'uniform/components/loaders';
|
186
|
-
@import 'uniform/components/nav';
|
187
|
-
@import 'uniform/components/modal';
|
188
|
-
|
189
|
-
// javascript
|
190
|
-
//= require uniform
|
191
|
-
// - OR -
|
192
|
-
//= require uniform/base
|
193
|
-
//= require uniform/select</pre>
|
194
|
-
|
195
|
-
</div>
|
196
|
-
<div class="section">
|
197
|
-
<h1>Philosophy</h1>
|
198
|
-
<h3>Don't use ID's</h3>
|
199
|
-
<p>Unless you have to, and even then, think twice. HTML Id's make things not
|
200
|
-
reusable. There should only be one instance of an id in a document</p>
|
201
|
-
|
202
|
-
<h3>Use Semanitc Classes Presentationaly :)</h3>
|
203
|
-
<p>
|
204
|
-
Here's a decent post on OOCSS (Object Oriented CSS) as it relates to
|
205
|
-
semantic vs presentational classes:
|
206
|
-
<a href="http://blackfalcon.roughdraft.io/5255648-oocss-v-ooscss-sasscast-show-notes">OOCSS v OOSCSS</a>
|
207
|
-
<p>
|
208
|
-
<strong>TL;DR:</strong> Semantic classes explain what that element is.
|
209
|
-
Presentational classes explain what the shoud look like.
|
210
|
-
</p>
|
211
|
-
<p>
|
212
|
-
<code>class="property-list"</code> vs <code>class="ul-list col-sm-4"</code>
|
213
|
-
</p>
|
214
|
-
<p>
|
215
|
-
Some of us don't want to touch css files (preference: presentational),
|
216
|
-
and some of us live there (preference: semantic). Honestly, the art of
|
217
|
-
good ui development is balancing semantic and presentational classes.
|
218
|
-
Each taken to their extreme is bad.
|
219
|
-
</p>
|
220
|
-
<p>
|
221
|
-
Structure html so that the semantic class is first and presentational
|
222
|
-
classes follow.
|
223
|
-
</p>
|
224
|
-
<p><code>class="property-list ul-list col-sm-4"</code></p>
|
225
|
-
|
226
|
-
<h3>Save the Namespace, save the world</h3>
|
227
|
-
<p>Don't make presentational classes that will clash with elements that could mean something else. I'm looking at you Bootsrap!</p>
|
228
|
-
<p><code>class="label"</code> should be <code>class="text-label"</code></p>
|
229
|
-
|
230
|
-
<h3>camelCase vs train-case</h3>
|
231
|
-
<p>Use camelCase for class names for components, not train-case or snake_case.</p>
|
232
|
-
<p>Use tran-case for class names for helpers or modifiers.</p>
|
233
|
-
|
234
|
-
<h3>Wrappers and Containers</h3>
|
235
|
-
<p>
|
236
|
-
Both <code>wrapper</code> and <code>container</code> can be used as class names
|
237
|
-
for an element that goes around a component. The difference is nuanced.
|
238
|
-
<code>wrapper</code> should be used to wrap a <strong>single</strong> element for a formatting purpose.
|
239
|
-
A <code>container</code> should be used to wrap <strong>multiple</strong> elements.
|
240
|
-
</p>
|
241
|
-
|
242
|
-
</div>
|
243
|
-
</div>
|
244
|
-
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
|
245
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
|
246
|
-
<script
|
247
|
-
src="https://code.jquery.com/jquery-1.11.3.min.js"
|
248
|
-
integrity="sha256-7LkWEzqTdpEfELxcZZlS6wAx5Ff13zZ83lYO2/ujj7g="
|
249
|
-
crossorigin="anonymous"></script>
|
250
|
-
<script src="/site/preview.js"></script>
|
251
|
-
</body>
|
data/lib/uniform/rails/engine.rb
DELETED
data/lib/uniform/rails.rb
DELETED
data/lib/uniform/ui.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'uniform/rails'
|
data/preview/alerts.html.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
TODO
|
data/preview/buttons.html.erb
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
<div class="section">
|
2
|
-
<h1>Buttons</h1>
|
3
|
-
<p>Mix and match styles to make the right button, all colors are available as well.</p>
|
4
|
-
<p><code><%= CGI::escapeHTML "<a href='#' class='uniformButton'></a>" %></code></p>
|
5
|
-
<table class="uniformTable" cellspacing="0" cellpadding="0">
|
6
|
-
<tr>
|
7
|
-
<th></th>
|
8
|
-
<th>Normal</th>
|
9
|
-
<th><code>.green</code></th>
|
10
|
-
<th><code>.blue</code></th>
|
11
|
-
<th><code>.red</code></th>
|
12
|
-
<th><code>.white</code></th>
|
13
|
-
<th><code>.gray</code></th>
|
14
|
-
</tr>
|
15
|
-
<tr>
|
16
|
-
<th></th>
|
17
|
-
<td><a class="uniformButton">Button</a></td>
|
18
|
-
<td><a class="uniformButton green">Button</a></td>
|
19
|
-
<td><a class="uniformButton blue">Button</a></td>
|
20
|
-
<td><a class="uniformButton red">Button</a></td>
|
21
|
-
<td><a class="uniformButton white">Button</a></td>
|
22
|
-
<td><a class="uniformButton gray">Button</a></td>
|
23
|
-
</tr>
|
24
|
-
<% [
|
25
|
-
['hover, :hover', 'hover'],
|
26
|
-
['active, :active', 'active'],
|
27
|
-
['disabled, :disabled', 'disabled'],
|
28
|
-
'small',
|
29
|
-
'large',
|
30
|
-
'warn',
|
31
|
-
'block',
|
32
|
-
'outline',
|
33
|
-
].each do |klass| %>
|
34
|
-
<% klass = [klass, klass] if !klass.is_a?(Array) %>
|
35
|
-
<tr>
|
36
|
-
<th><code>.<%= klass[0] %></code></th>
|
37
|
-
<td><a class="uniformButton <%= klass[1] %>">Button</a></td>
|
38
|
-
<td><a class="uniformButton green <%= klass[1] %>">Button</a></td>
|
39
|
-
<td><a class="uniformButton blue <%= klass[1] %>">Button</a></td>
|
40
|
-
<td><a class="uniformButton red <%= klass[1] %>">Button</a></td>
|
41
|
-
<td><a class="uniformButton white <%= klass[1] %>">Button</a></td>
|
42
|
-
<td><a class="uniformButton gray <%= klass[1] %>">Button</a></td>
|
43
|
-
</tr>
|
44
|
-
<% end %>
|
45
|
-
<tr>
|
46
|
-
<th><code>.outline</code></th>
|
47
|
-
<td class="bg-gray"><a class="uniformButton outline">Button</a></td>
|
48
|
-
<td class="bg-gray"><a class="uniformButton green outline">Button</a></td>
|
49
|
-
<td class="bg-gray"><a class="uniformButton blue outline">Button</a></td>
|
50
|
-
<td class="bg-gray"><a class="uniformButton red outline">Button</a></td>
|
51
|
-
<td class="bg-gray"><a class="uniformButton white outline">Button</a></td>
|
52
|
-
<td class="bg-gray"><a class="uniformButton gray outline">Button</a></td>
|
53
|
-
</tr>
|
54
|
-
</table>
|
55
|
-
|
56
|
-
<h3 class="margin-top-more">uniformButtonGroup</h3>
|
57
|
-
<div class="uniformButtonGroup">
|
58
|
-
<a href="#">Link 1</a>
|
59
|
-
<a href="#">Link 2</a>
|
60
|
-
<a href="#">Link 3</a>
|
61
|
-
</div>
|
62
|
-
</div>
|
data/preview/cards.html.erb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
<div class="section">
|
2
|
-
<h1>Cards</h1>
|
3
|
-
<div class="grid">
|
4
|
-
<div class="col-6">
|
5
|
-
<div class="uniformCard">
|
6
|
-
<div class="uniformCard-header">
|
7
|
-
<span class="title">Sample Card</span>
|
8
|
-
</div>
|
9
|
-
<div class="uniformCard-body">Put Content In Here</div>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
<div class="col-6">
|
13
|
-
<% html_block do %>
|
14
|
-
<div class="uniformCard">
|
15
|
-
<div class="uniformCard-header">
|
16
|
-
<span class="title">Sample Card</span>
|
17
|
-
</div>
|
18
|
-
<div class="uniformCard-body">Put Content In Here</div>
|
19
|
-
</div>
|
20
|
-
<% end %>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|
data/preview/colors.html.erb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<div class="section">
|
2
|
-
<h1>Colors</h1>
|
3
|
-
<table class="uniformTable">
|
4
|
-
<thead class="dark">
|
5
|
-
<tr>
|
6
|
-
<th></th>
|
7
|
-
<th>sass</th>
|
8
|
-
<th>class</th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
<% %w(green blue red gray yellow).each do |color| %>
|
12
|
-
<% ["-light", "", "-dark"].each do |style| %>
|
13
|
-
<tr>
|
14
|
-
<td><span class='swatch bg-<%= color %><%= style %>'></span></td>
|
15
|
-
<td><code>$<%= color %><%= style %></code></td>
|
16
|
-
<td><code>.<%= color %><%= style %></code></td>
|
17
|
-
</tr>
|
18
|
-
<% end %>
|
19
|
-
<tr><td colspan='3'> </td></tr>
|
20
|
-
<% end %>
|
21
|
-
</table>
|
22
|
-
</div>
|
data/preview/dropdown.html.erb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
TODO
|
data/preview/form.html.erb
DELETED
@@ -1,233 +0,0 @@
|
|
1
|
-
<div class="section">
|
2
|
-
<h1>Forms</h1>
|
3
|
-
<h3>UniformForm</h3>
|
4
|
-
<div class="grid">
|
5
|
-
<div class="col-6">
|
6
|
-
<form class="uniformForm">
|
7
|
-
<div class="form-group">
|
8
|
-
<label>Name</label>
|
9
|
-
<input type="text">
|
10
|
-
</div>
|
11
|
-
<div class="form-group" data-error-message="example error message">
|
12
|
-
<label>Phone</label>
|
13
|
-
<input type="text">
|
14
|
-
</div>
|
15
|
-
<div class="form-group">
|
16
|
-
<label>Email</label>
|
17
|
-
<input type="text">
|
18
|
-
</div>
|
19
|
-
</form>
|
20
|
-
</div>
|
21
|
-
<div class="col-6">
|
22
|
-
<% html_block do %>
|
23
|
-
<form class="uniformForm">
|
24
|
-
<div class="form-group">
|
25
|
-
<label>Name</label>
|
26
|
-
<input type="text">
|
27
|
-
</div>
|
28
|
-
<div class="form-group" data-error-message="example error message">
|
29
|
-
<label>Phone</label>
|
30
|
-
<input type="text">
|
31
|
-
</div>
|
32
|
-
<div class="form-group">
|
33
|
-
<label>Email</label>
|
34
|
-
<input type="text">
|
35
|
-
</div>
|
36
|
-
</form>
|
37
|
-
<% end %>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="grid">
|
42
|
-
<div class="col-6">
|
43
|
-
<form class="uniformForm uniformForm-table">
|
44
|
-
<div class="form-group">
|
45
|
-
<label>Name</label>
|
46
|
-
<div>
|
47
|
-
<input type="text">
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
<div class="form-group">
|
51
|
-
<label>Phone</label>
|
52
|
-
<div>
|
53
|
-
<div data-error-message="example error message">
|
54
|
-
<input type="text">
|
55
|
-
</div>
|
56
|
-
</div>
|
57
|
-
</div>
|
58
|
-
<div class="form-group">
|
59
|
-
<label>Email</label>
|
60
|
-
<div>
|
61
|
-
<input type="text">
|
62
|
-
</div>
|
63
|
-
</div>
|
64
|
-
</form>
|
65
|
-
</div>
|
66
|
-
<div class="col-6">
|
67
|
-
<% html_block do %>
|
68
|
-
<form class="uniformForm uniformForm-table">
|
69
|
-
<div class="form-group">
|
70
|
-
<label>Name</label>
|
71
|
-
<input type="text">
|
72
|
-
</div>
|
73
|
-
<div class="form-group" data-error-message="example error message">
|
74
|
-
<label>Phone</label>
|
75
|
-
<input type="text">
|
76
|
-
</div>
|
77
|
-
<div class="form-group">
|
78
|
-
<label>Email</label>
|
79
|
-
<input type="text">
|
80
|
-
</div>
|
81
|
-
</form>
|
82
|
-
<% end %>
|
83
|
-
</div>
|
84
|
-
</div>
|
85
|
-
|
86
|
-
|
87
|
-
<h3>UniformInput</h3>
|
88
|
-
<div class="grid">
|
89
|
-
<div class="col-6">
|
90
|
-
<p><input type="text" class="uniformInput" /></p>
|
91
|
-
<p><input type="text" class="uniformInput large" /></p>
|
92
|
-
</div>
|
93
|
-
<div class="col-6">
|
94
|
-
<% html_block do %>
|
95
|
-
<input type="text" class="uniformInput" />
|
96
|
-
<% end %>
|
97
|
-
<% html_block do %>
|
98
|
-
<input type="text" class="uniformInput large" />
|
99
|
-
<% end %>
|
100
|
-
</div>
|
101
|
-
</div>
|
102
|
-
|
103
|
-
<h3>Custom Inputs</h3>
|
104
|
-
<div class="grid nest">
|
105
|
-
<div class="col-6">
|
106
|
-
<p>Styled Select Box</p>
|
107
|
-
<p><span class="uniformSelect"><select><option>An Option</option></select></span></p>
|
108
|
-
</div>
|
109
|
-
<div class="col-6">
|
110
|
-
<% html_block do %>
|
111
|
-
<span class='uniformSelect'>
|
112
|
-
<select>
|
113
|
-
<option>An Option</option>
|
114
|
-
</select>
|
115
|
-
</span>
|
116
|
-
<% end %>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
<div class="col-6">
|
120
|
-
<p>uniformCheckboxCollection</p>
|
121
|
-
<div class="uniformCheckboxCollection">
|
122
|
-
<label><input type="checkbox"> Option 1</label>
|
123
|
-
<label><input type="checkbox"> Option 2</label>
|
124
|
-
<label><input type="checkbox"> Option 3</label>
|
125
|
-
</div>
|
126
|
-
</div>
|
127
|
-
<div class="col-6">
|
128
|
-
<% html_block do %>
|
129
|
-
<div class="uniformCheckboxCollection">
|
130
|
-
<label><input type="checkbox"> Option 1</label>
|
131
|
-
<label><input type="checkbox"> Option 2</label>
|
132
|
-
<label><input type="checkbox"> Option 3</label>
|
133
|
-
</div>
|
134
|
-
<% end %>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div class="col-6">
|
138
|
-
<p>uniformCheckboxCollection.inline</p>
|
139
|
-
<div class="uniformCheckboxCollection inline">
|
140
|
-
<label><input type="radio"> Option 1</label>
|
141
|
-
<label><input type="radio"> Option 2</label>
|
142
|
-
<label><input type="radio"> Option 3</label>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
<div class="col-6">
|
146
|
-
<% html_block do %>
|
147
|
-
<div class="uniformCheckboxCollection inline">
|
148
|
-
<label><input type="radio"> Option 1</label>
|
149
|
-
<label><input type="radio"> Option 2</label>
|
150
|
-
<label><input type="radio"> Option 3</label>
|
151
|
-
</div>
|
152
|
-
<% end %>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<h3>Floating Label</h3>
|
159
|
-
<p>Requires Javascript to fully work, but fails gracefully when not applied.</p>
|
160
|
-
<div class="grid">
|
161
|
-
<div class="col-6">
|
162
|
-
<div class="uniformFloatingLabel">
|
163
|
-
<label for="example-1">Name</label>
|
164
|
-
<input type="text" class="pad-more" id="example-1">
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
<div class="col-6">
|
168
|
-
<% html_block do %>
|
169
|
-
<div class="uniformFloatingLabel">
|
170
|
-
<label for="example-1">Name</label>
|
171
|
-
<input type="text" class="pad-more" id="example-1">
|
172
|
-
</div>
|
173
|
-
<% end %>
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
<h3>Input Group</h3>
|
178
|
-
<p>Ever want to put in an input and it's label in line, and have it be 100% width responsive? Well, you can't, unless you use something like uniformInputGroup.</p>
|
179
|
-
<div class="grid">
|
180
|
-
<div class="col-6">
|
181
|
-
<div class="uniformInputGroup">
|
182
|
-
<span class="label">
|
183
|
-
<label for="rate">$</label>
|
184
|
-
</span>
|
185
|
-
<span class="input">
|
186
|
-
<input id="rate">
|
187
|
-
</span>
|
188
|
-
<span class="units">
|
189
|
-
<label for="rate">/hour</label>
|
190
|
-
</span>
|
191
|
-
</div>
|
192
|
-
</div>
|
193
|
-
<div class="col-6">
|
194
|
-
<% html_block do %>
|
195
|
-
<div class="uniformInputGroup">
|
196
|
-
<span class="label">
|
197
|
-
<label for="rate">$</label>
|
198
|
-
</span>
|
199
|
-
<span class="input">
|
200
|
-
<input id="rate">
|
201
|
-
</span>
|
202
|
-
<span class="units">
|
203
|
-
<label for="rate">/hour</label>
|
204
|
-
</span>
|
205
|
-
</div>
|
206
|
-
<% end %>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
<div class="grid">
|
210
|
-
<div class="col-6">
|
211
|
-
<div class="uniformInputGroup">
|
212
|
-
<span class="label">
|
213
|
-
<label for="car">Car Preference</label>
|
214
|
-
</span>
|
215
|
-
<span>
|
216
|
-
<input id="name" value="Jonathan Doe" disabled>
|
217
|
-
</span>
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
<div class="col-6">
|
221
|
-
<% html_block do %>
|
222
|
-
<div class="uniformInputGroup">
|
223
|
-
<span class="label">
|
224
|
-
<label for="car">Car Preference</label>
|
225
|
-
</span>
|
226
|
-
<span class="input">
|
227
|
-
<input id="name" value="Jonathan Doe" disabled>
|
228
|
-
</span>
|
229
|
-
</div>
|
230
|
-
<% end %>
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
</div>
|