uniform-ui 0.6 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/CNAME +1 -0
- data/Gemfile +0 -4
- data/Gemfile.lock +1 -11
- data/README.md +2 -3
- data/Rakefile +34 -24
- data/index.html +240 -1160
- data/preview/{_tables.html.erb → alerts.html.erb} +0 -0
- data/preview/buttons.html.erb +62 -0
- data/preview/cards.html.erb +23 -0
- data/preview/colors.html.erb +22 -0
- data/preview/{_tabs.html.erb → dropdown.html.erb} +0 -0
- data/preview/form.html.erb +233 -0
- data/preview/grid.html.erb +304 -0
- data/preview/helpers.html.erb +225 -0
- data/preview/index.html.erb +74 -50
- data/preview/{_tiles.html.erb → labels.html.erb} +0 -0
- data/preview/layout.html.erb +63 -0
- data/preview/loaders.html.erb +83 -0
- data/preview/modal.html.erb +1 -0
- data/preview/nav.html.erb +77 -0
- data/preview/preview.scss +39 -10
- data/preview/rows.html.erb +36 -0
- data/preview/select.html.erb +1 -0
- data/preview/tables.html.erb +1 -0
- data/preview/tabs.html.erb +17 -0
- data/preview/tiles.html.erb +1 -0
- data/preview/tooltip.erb +1 -0
- data/site/alerts.html +157 -0
- data/site/alerts.html copy +133 -0
- data/site/buttons.html +286 -0
- data/site/cards.html +177 -0
- data/site/colors.html +275 -0
- data/site/dropdown.html +157 -0
- data/site/dropdown.html copy +141 -0
- data/site/form.html +369 -0
- data/site/grid.html +716 -0
- data/site/helpers.html +1008 -0
- data/site/index.html +208 -617
- data/site/labels.html +157 -0
- data/site/layout.html +313 -0
- data/site/loaders.html +233 -0
- data/site/modal.html +157 -0
- data/site/nav.html +229 -0
- data/site/preview.css +1 -1
- data/site/preview.js +59 -0
- data/site/rows.html +190 -0
- data/site/select.html +157 -0
- data/site/tables.html +157 -0
- data/site/tabs.html +171 -0
- data/site/tiles.html +157 -0
- data/site/tiles.html copy +109 -0
- data/site/tooltip +157 -0
- data/site/uniform.css +1 -1
- data/uniform.gemspec +2 -8
- data/vendor/assets/stylesheets/uniform.scss +4 -4
- data/vendor/assets/stylesheets/uniform/base.scss +2 -0
- data/vendor/assets/stylesheets/uniform/components/alert.scss +27 -0
- data/vendor/assets/stylesheets/uniform/components/buttons.scss +135 -86
- data/vendor/assets/stylesheets/uniform/components/card.scss +69 -67
- data/vendor/assets/stylesheets/uniform/components/dropdown.scss +69 -0
- data/vendor/assets/stylesheets/uniform/components/form.scss +268 -85
- data/vendor/assets/stylesheets/uniform/components/grid.scss +214 -72
- data/vendor/assets/stylesheets/uniform/components/label.scss +63 -0
- data/vendor/assets/stylesheets/uniform/components/loaders.scss +38 -18
- data/vendor/assets/stylesheets/uniform/components/modal.scss +51 -0
- data/vendor/assets/stylesheets/uniform/components/nav.scss +171 -54
- data/vendor/assets/stylesheets/uniform/components/row.scss +69 -101
- data/vendor/assets/stylesheets/uniform/components/select.scss +98 -0
- data/vendor/assets/stylesheets/uniform/components/table.scss +83 -0
- data/vendor/assets/stylesheets/uniform/components/tabs.scss +39 -26
- data/vendor/assets/stylesheets/uniform/components/tile.scss +15 -27
- data/vendor/assets/stylesheets/uniform/components/tooltip.scss +46 -0
- data/vendor/assets/stylesheets/uniform/defaults.scss +85 -19
- data/vendor/assets/stylesheets/uniform/helpers.scss +82 -81
- data/vendor/assets/stylesheets/uniform/helpers/colors.scss +37 -0
- data/vendor/assets/stylesheets/uniform/helpers/margin.scss +44 -0
- data/vendor/assets/stylesheets/uniform/helpers/padding.scss +74 -0
- data/vendor/assets/stylesheets/uniform/helpers/sizes.scss +31 -0
- data/vendor/assets/stylesheets/uniform/helpers/text.scss +121 -0
- data/vendor/assets/stylesheets/uniform/mixins.scss +25 -48
- data/vendor/assets/stylesheets/uniform/variables.scss +10 -28
- metadata +61 -85
- data/preview/_buttons.html.erb +0 -59
- data/preview/_cards.html.erb +0 -82
- data/preview/_colors.html.erb +0 -12
- data/preview/_forms.html.erb +0 -196
- data/preview/_grid.html.erb +0 -49
- data/preview/_helpers.html.erb +0 -158
- data/preview/_inputs.html.erb +0 -93
- data/preview/_installation.html.erb +0 -4
- data/preview/_lists.html.erb +0 -53
- data/preview/_loaders.html.erb +0 -72
- data/preview/_nav.html.erb +0 -46
- data/preview/_philosophy.html.erb +0 -33
- data/preview/_rows.html.erb +0 -35
- data/preview/_uniform.html.erb +0 -4
- data/site/site/logo.png +0 -0
- data/site/site/preview.css +0 -1
- data/site/site/uniform.css +0 -1
- data/vendor/assets/stylesheets/uniform/components/inputs.scss +0 -131
- data/vendor/assets/stylesheets/uniform/components/lists.scss +0 -62
- data/vendor/assets/stylesheets/uniform/components/table-container.scss +0 -44
- data/vendor/assets/stylesheets/uniform/components/table-form.scss +0 -159
- data/vendor/assets/stylesheets/uniform/mixins/grid-framework.scss +0 -142
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78d7885a26d44334dccad5dcdee337d2c17c28dc
|
4
|
+
data.tar.gz: 2be1c8cca98e9cd70a222ccf9e9d892b3607c8c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bcea05b4291727254ac7104e88fc48d6b111fe2c14b85b81b0aef93368eecbd21bd88cfc1f9235305355cb9fe85b06ec3040094b4b2f321251e3eef92e47e58
|
7
|
+
data.tar.gz: 8d0834ad0c8679c74dbcbf9dec284e455185d33fe050132e2cfff14cf301ec675f5b6642639e94cb82cb23961802a3c407dd71657ced01601cc77bee40f0d431
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## 1.0
|
4
|
+
This is the first really stable and usable release of Uniform. Many of the components were rewritten, removed, and added. In general, this release brings a shift in methodology. Building with Uniform now supplies and relies on more helpers to build things out.
|
5
|
+
|
6
|
+
*This will break everything in previous versions.* Many component names went from `title-case` to `camelCase`, and many modifier classes inside of components were removed in favor of using helper classes in html.
|
7
|
+
|
8
|
+
### Added
|
9
|
+
- `uniformAlert`
|
10
|
+
- `uniformDropdown`
|
11
|
+
- `uniformSelect`
|
12
|
+
- `uniformFloatingLabel`
|
13
|
+
- `uniformModal`
|
14
|
+
- `uniformTable`
|
15
|
+
- `uniformTooltip`
|
16
|
+
- tons of helper classes like `margin`, `pad`, `border-top`...
|
17
|
+
|
18
|
+
### Removed
|
19
|
+
- `bourbon` and `neat` dependencies
|
20
|
+
- custom sass functions
|
21
|
+
- `uniform-list`, `uniform-checks`, `uniform-step`, `uniform-icons`
|
22
|
+
|
23
|
+
### Changed
|
24
|
+
- `title-case` to `camelCase` for all compontents
|
25
|
+
- `inline-input` to `uniformInputGroup`
|
26
|
+
- `.container` to `.grid` was completely overhauld to use flexbox
|
27
|
+
- `table-container` to `table`
|
data/CNAME
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
uniform-ui.com
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
2
|
remote: https://rubygems.org/
|
4
3
|
specs:
|
5
4
|
activesupport (5.0.0.1)
|
@@ -7,17 +6,11 @@ GEM
|
|
7
6
|
i18n (~> 0.7)
|
8
7
|
minitest (~> 5.1)
|
9
8
|
tzinfo (~> 1.1)
|
10
|
-
bourbon (4.2.7)
|
11
|
-
sass (~> 3.4)
|
12
|
-
thor (~> 0.19)
|
13
9
|
concurrent-ruby (1.0.2)
|
14
10
|
hike (1.2.3)
|
15
11
|
i18n (0.7.0)
|
16
12
|
minitest (5.9.0)
|
17
13
|
multi_json (1.12.1)
|
18
|
-
neat (1.8.0)
|
19
|
-
sass (>= 3.3)
|
20
|
-
thor (~> 0.19)
|
21
14
|
rack (1.6.4)
|
22
15
|
rake (11.3.0)
|
23
16
|
sass (3.4.22)
|
@@ -29,7 +22,6 @@ GEM
|
|
29
22
|
sprockets-sass (1.3.1)
|
30
23
|
sprockets (~> 2.0)
|
31
24
|
tilt (~> 1.1)
|
32
|
-
thor (0.19.1)
|
33
25
|
thread_safe (0.3.5)
|
34
26
|
tilt (1.4.1)
|
35
27
|
tzinfo (1.2.2)
|
@@ -40,11 +32,9 @@ PLATFORMS
|
|
40
32
|
|
41
33
|
DEPENDENCIES
|
42
34
|
activesupport
|
43
|
-
bourbon
|
44
|
-
neat
|
45
35
|
rake
|
46
36
|
sass
|
47
37
|
sprockets-sass
|
48
38
|
|
49
39
|
BUNDLED WITH
|
50
|
-
1.
|
40
|
+
1.15.4
|
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
=======
|
1
|
+
![alt text](https://raw.githubusercontent.com/bemky/uniform/master/site/logo.png)
|
3
2
|
|
4
3
|
A rails gem of sass compenents and defaults for building a UI that's on fleak.
|
5
4
|
|
6
|
-
Demo and Documentation: http://
|
5
|
+
Demo and Documentation: http://uniform-ui.com
|
7
6
|
|
8
7
|
## Installation
|
9
8
|
|
data/Rakefile
CHANGED
@@ -12,14 +12,6 @@ environment.append_path 'vendor/assets/stylesheets'
|
|
12
12
|
environment.append_path 'preview'
|
13
13
|
environment.css_compressor = :scss
|
14
14
|
|
15
|
-
module Sass::Script::Functions
|
16
|
-
def global_variable(name)
|
17
|
-
assert_type name, :String, :name
|
18
|
-
environment.global_env.var(name.value)
|
19
|
-
end
|
20
|
-
declare :global_variable, [:string]
|
21
|
-
end
|
22
|
-
|
23
15
|
desc "Compile page"
|
24
16
|
task :compile do
|
25
17
|
|
@@ -33,27 +25,45 @@ task :compile do
|
|
33
25
|
|
34
26
|
# Render the test html file
|
35
27
|
File.open('./index.html', 'w') do |file|
|
36
|
-
file.write(
|
28
|
+
file.write(
|
29
|
+
render_with_layout("preview/index.html.erb")
|
30
|
+
)
|
37
31
|
end
|
38
|
-
|
39
|
-
end
|
40
32
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
File.open('./site/site/preview.css', "w") do |file|
|
49
|
-
file << environment['preview.scss']
|
33
|
+
Dir.foreach(File.join('preview')).select{|file| file =~ /\.erb$/}.each do |file_name|
|
34
|
+
File.open("./site/#{file_name.gsub('.erb', '')}", 'w') do |file|
|
35
|
+
file.write(
|
36
|
+
render_with_layout("preview/#{file_name}")
|
37
|
+
)
|
38
|
+
end
|
50
39
|
end
|
51
40
|
|
52
|
-
|
53
|
-
|
54
|
-
|
41
|
+
end
|
42
|
+
|
43
|
+
def capture
|
44
|
+
old_output = @output
|
45
|
+
@output = ""
|
46
|
+
yield
|
47
|
+
ensure
|
48
|
+
@output = old_output
|
49
|
+
end
|
50
|
+
|
51
|
+
def html_block(**options, &block)
|
52
|
+
@output << "<pre class='#{options[:class]}'>"
|
53
|
+
@output << CGI::escapeHTML(capture(&block).strip)
|
54
|
+
@output << "</pre>"
|
55
|
+
end
|
56
|
+
|
57
|
+
def render_with_layout(template_path, context = self)
|
58
|
+
template = File.read(template_path)
|
59
|
+
layout = File.read('preview/layout.html.erb')
|
60
|
+
[template, layout].inject(nil) do |prev, temp|
|
61
|
+
render(temp){prev}
|
55
62
|
end
|
56
|
-
|
63
|
+
end
|
64
|
+
|
65
|
+
def render(template)
|
66
|
+
ERB.new(template, nil, nil, "@output").result( binding )
|
57
67
|
end
|
58
68
|
|
59
69
|
class UrlGenerator < Sprockets::DirectiveProcessor
|
data/index.html
CHANGED
@@ -3,1169 +3,249 @@
|
|
3
3
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
4
4
|
<title>Uniform</title>
|
5
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/
|
7
|
-
<link rel="stylesheet" href="site/
|
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
8
|
</head>
|
9
9
|
<body>
|
10
|
-
|
11
10
|
<div class="side-nav">
|
12
|
-
<div
|
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
|
-
|
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">
|
61
149
|
<img src="site/logo.png" width="451" height="101">
|
62
|
-
<p class="large">Sass components and
|
63
|
-
</div>
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
<p>
|
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
|
-
<div class="
|
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
|
-
</tr>
|
157
|
-
|
158
|
-
<tr>
|
159
|
-
<td><span class='swatch blue-dark-bg'></span></td>
|
160
|
-
<td><code>sass// $blue-dark</code></td>
|
161
|
-
<td><code>class// .blue-dark</code></td>
|
162
|
-
</tr>
|
163
|
-
|
164
|
-
<tr><td colspan='3'> </td></tr>
|
165
|
-
|
166
|
-
|
167
|
-
<tr>
|
168
|
-
<td><span class='swatch red-light-bg'></span></td>
|
169
|
-
<td><code>sass// $red-light</code></td>
|
170
|
-
<td><code>class// .red-light</code></td>
|
171
|
-
</tr>
|
172
|
-
|
173
|
-
<tr>
|
174
|
-
<td><span class='swatch red-bg'></span></td>
|
175
|
-
<td><code>sass// $red</code></td>
|
176
|
-
<td><code>class// .red</code></td>
|
177
|
-
</tr>
|
178
|
-
|
179
|
-
<tr>
|
180
|
-
<td><span class='swatch red-dark-bg'></span></td>
|
181
|
-
<td><code>sass// $red-dark</code></td>
|
182
|
-
<td><code>class// .red-dark</code></td>
|
183
|
-
</tr>
|
184
|
-
|
185
|
-
<tr><td colspan='3'> </td></tr>
|
186
|
-
|
187
|
-
|
188
|
-
<tr>
|
189
|
-
<td><span class='swatch gray-light-bg'></span></td>
|
190
|
-
<td><code>sass// $gray-light</code></td>
|
191
|
-
<td><code>class// .gray-light</code></td>
|
192
|
-
</tr>
|
193
|
-
|
194
|
-
<tr>
|
195
|
-
<td><span class='swatch gray-bg'></span></td>
|
196
|
-
<td><code>sass// $gray</code></td>
|
197
|
-
<td><code>class// .gray</code></td>
|
198
|
-
</tr>
|
199
|
-
|
200
|
-
<tr>
|
201
|
-
<td><span class='swatch gray-dark-bg'></span></td>
|
202
|
-
<td><code>sass// $gray-dark</code></td>
|
203
|
-
<td><code>class// .gray-dark</code></td>
|
204
|
-
</tr>
|
205
|
-
|
206
|
-
<tr><td colspan='3'> </td></tr>
|
207
|
-
|
208
|
-
|
209
|
-
<tr>
|
210
|
-
<td><span class='swatch yellow-light-bg'></span></td>
|
211
|
-
<td><code>sass// $yellow-light</code></td>
|
212
|
-
<td><code>class// .yellow-light</code></td>
|
213
|
-
</tr>
|
214
|
-
|
215
|
-
<tr>
|
216
|
-
<td><span class='swatch yellow-bg'></span></td>
|
217
|
-
<td><code>sass// $yellow</code></td>
|
218
|
-
<td><code>class// .yellow</code></td>
|
219
|
-
</tr>
|
220
|
-
|
221
|
-
<tr>
|
222
|
-
<td><span class='swatch yellow-dark-bg'></span></td>
|
223
|
-
<td><code>sass// $yellow-dark</code></td>
|
224
|
-
<td><code>class// .yellow-dark</code></td>
|
225
|
-
</tr>
|
226
|
-
|
227
|
-
<tr><td colspan='3'> </td></tr>
|
228
|
-
|
229
|
-
</table>
|
230
|
-
</div>
|
231
|
-
|
232
|
-
<a name="buttons"></a>
|
233
|
-
<div class="section">
|
234
|
-
|
235
|
-
<h1>Buttons</h1>
|
236
|
-
|
237
|
-
<p>Mix and match styles to make the right button, all colors are available as well.</p>
|
238
|
-
<p><code><a href='#' class='uniform-btn'></a></code></p>
|
239
|
-
<table class="table" cellspacing="0" cellpadding="0">
|
240
|
-
<tr>
|
241
|
-
<th></th>
|
242
|
-
<th>Normal</th>
|
243
|
-
<th><code>.green</code></th>
|
244
|
-
</tr>
|
245
|
-
<tr>
|
246
|
-
<th></th>
|
247
|
-
<td><a class="uniform-btn">Button</a></td>
|
248
|
-
<td><a class="uniform-btn green">Button</a></td>
|
249
|
-
</tr>
|
250
|
-
<tr>
|
251
|
-
<th><code>:hover</code> or <code>.hover</code></th>
|
252
|
-
<td><a class="uniform-btn hover">Button</a></td>
|
253
|
-
<td><a class="uniform-btn green hover">Button</a></td>
|
254
|
-
</tr>
|
255
|
-
<tr>
|
256
|
-
<th><code>:active</code> or <code>.active</code></th>
|
257
|
-
<td><a class="uniform-btn active">Button</a></td>
|
258
|
-
<td><a class="uniform-btn green active">Button</a></td>
|
259
|
-
</tr>
|
260
|
-
<tr>
|
261
|
-
<th><code>:disabled</code> or <code>.disabled</code></th>
|
262
|
-
<td><a class="uniform-btn disabled">Button</a></td>
|
263
|
-
<td><a class="uniform-btn green disabled">Button</a></td>
|
264
|
-
</tr>
|
265
|
-
<tr>
|
266
|
-
<th><code>.subtle</code></th>
|
267
|
-
<td><a class="uniform-btn subtle">Button</a></td>
|
268
|
-
<td><a class="uniform-btn green subtle">Button</a></td>
|
269
|
-
</tr>
|
270
|
-
<tr>
|
271
|
-
<th><code>.small</code></th>
|
272
|
-
<td><a class="uniform-btn small">Button</a></td>
|
273
|
-
<td><a class="uniform-btn green small">Button</a></td>
|
274
|
-
</tr>
|
275
|
-
<tr>
|
276
|
-
<th><code>.large</code></th>
|
277
|
-
<td><a class="uniform-btn large">Button</a></td>
|
278
|
-
<td><a class="uniform-btn green large">Button</a></td>
|
279
|
-
</tr>
|
280
|
-
<tr>
|
281
|
-
<th><code>.outline</code></th>
|
282
|
-
<td><a class="uniform-btn outline">Button</a></td>
|
283
|
-
<td><a class="uniform-btn green outline">Button</a></td>
|
284
|
-
</tr>
|
285
|
-
<tr>
|
286
|
-
<th><code>.circle</code></th>
|
287
|
-
<td><a class="uniform-btn circle">Button</a></td>
|
288
|
-
<td><a class="uniform-btn green circle">Button</a></td>
|
289
|
-
</tr>
|
290
|
-
<tr>
|
291
|
-
<th><code>.block</code></th>
|
292
|
-
<td><a class="uniform-btn block">Button</a></td>
|
293
|
-
<td><a class="uniform-btn green block">Button</a></td>
|
294
|
-
</tr>
|
295
|
-
</table>
|
296
|
-
</div>
|
297
|
-
|
298
|
-
<a name="grid"></a>
|
299
|
-
<div class="section">
|
300
|
-
|
301
|
-
<h1>Grid</h1>
|
302
|
-
|
303
|
-
<p>Uses Bootstrap3 grid notation</p>
|
304
|
-
<div class="row">
|
305
|
-
<div class="col-sm-4">
|
306
|
-
<div class="green-light-bg">col-sm-4</div>
|
307
|
-
</div>
|
308
|
-
<div class="col-sm-4">
|
309
|
-
<div class="green-light-bg">col-sm-4</div>
|
310
|
-
</div>
|
311
|
-
<div class="col-sm-4">
|
312
|
-
<div class="green-light-bg">col-sm-4</div>
|
313
|
-
</div>
|
314
|
-
</div>
|
315
|
-
<br>
|
316
|
-
<div class="row">
|
317
|
-
<div class="col-sm-2">
|
318
|
-
<div class="green-light-bg">col-sm-2</div>
|
319
|
-
</div>
|
320
|
-
<div class="col-sm-6">
|
321
|
-
<div class="green-light-bg">col-sm-6</div>
|
322
|
-
</div>
|
323
|
-
<div class="col-sm-4">
|
324
|
-
<div class="green-light-bg">col-sm-4</div>
|
325
|
-
</div>
|
326
|
-
</div>
|
327
|
-
<br>
|
328
|
-
<pre><xmp><div class="row">
|
329
|
-
<div class="col-sm-4">
|
330
|
-
<div class="green-light-bg">col-sm-4</div>
|
331
|
-
</div>
|
332
|
-
<div class="col-sm-4">
|
333
|
-
<div class="green-light-bg">col-sm-4</div>
|
334
|
-
</div>
|
335
|
-
<div class="col-sm-4">
|
336
|
-
<div class="green-light-bg">col-sm-4</div>
|
337
|
-
</div>
|
338
|
-
</div></xmp></pre>
|
339
|
-
<br>
|
340
|
-
<div class="row">
|
341
|
-
<div class="col-sm-3 col-sm-push-2">
|
342
|
-
<div class="green-light-bg">.col-sm-3 .col-sm-push-2</div>
|
343
|
-
</div>
|
344
|
-
</div>
|
345
|
-
<br>
|
346
|
-
|
347
|
-
<h3>Breakpoints</h3>
|
348
|
-
<p><code>xs</code> = 480px</p>
|
349
|
-
<p><code>sm</code> = 768px</p>
|
350
|
-
<p><code>md</code> = 992px</p>
|
351
|
-
<p><code>lg</code> = 1200px</p>
|
352
|
-
</div>
|
353
|
-
|
354
|
-
<a name="inputs"></a>
|
355
|
-
<div class="section">
|
356
|
-
|
357
|
-
<h1>Inputs</h1>
|
358
|
-
|
359
|
-
<h3>Uniform Input</h3>
|
360
|
-
<div class="row">
|
361
|
-
<div class="col-sm-6">
|
362
|
-
<p><input type="text" class="uniform-input" /></p>
|
363
|
-
<p><input type="text" class="uniform-input large" /></p>
|
364
|
-
</div>
|
365
|
-
<div class="col-sm-6">
|
366
|
-
<pre><xmp><input type="text" class="uniform-input" /></xmp></pre>
|
367
|
-
<pre><xmp><input type="text" class="uniform-input large" /></xmp></pre>
|
368
|
-
</div>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
<h3>Custom Inputs</h3>
|
372
|
-
<div class="row">
|
373
|
-
<div class="col-sm-6">
|
374
|
-
<p>Styled Select Box</p>
|
375
|
-
<p><span class="uniform-select"><select><option>An Option</option></select></span></p>
|
376
|
-
</div>
|
377
|
-
<div class="col-sm-6">
|
378
|
-
<pre><xmp><span class='uniform-select'>
|
379
|
-
<select>
|
380
|
-
<option>An Option</option>
|
381
|
-
</select>
|
382
|
-
</span></xmp></pre>
|
383
|
-
</div>
|
384
|
-
</div>
|
385
|
-
|
386
|
-
<h3>Inline Inputs</h3>
|
387
|
-
<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 inline-input.</p>
|
388
|
-
<div class="row">
|
389
|
-
<div class="col-sm-6">
|
390
|
-
<div class="inline-input">
|
391
|
-
<span class="label">
|
392
|
-
<label for="rate">$</label>
|
393
|
-
</span>
|
394
|
-
<span>
|
395
|
-
<input id="rate">
|
396
|
-
</span>
|
397
|
-
<span class="units">
|
398
|
-
<label for="rate">/hour</label>
|
399
|
-
</span>
|
400
|
-
</div>
|
401
|
-
</div>
|
402
|
-
<div class="col-sm-6">
|
403
|
-
<pre><xmp><div class="inline-input">
|
404
|
-
<span class="label">$</span>
|
405
|
-
<span>
|
406
|
-
<input id="name" placeholder="Jonathan Doe">
|
407
|
-
</span>
|
408
|
-
<span class="units">/hour</span>
|
409
|
-
</div></xmp></pre>
|
410
|
-
</div>
|
411
|
-
</div>
|
412
|
-
<div class="row">
|
413
|
-
<div class="col-sm-6">
|
414
|
-
<div class="inline-input">
|
415
|
-
<span class="label"><label for="car">Car Preference</label></span>
|
416
|
-
<span class="select"><select id="car"><option>Tesla</option></select></span>
|
417
|
-
</div>
|
418
|
-
</div>
|
419
|
-
<div class="col-sm-6">
|
420
|
-
<pre><xmp><div class="inline-input">
|
421
|
-
<span class="label">
|
422
|
-
<label for="car">Car Preference</label>
|
423
|
-
</span>
|
424
|
-
<span>
|
425
|
-
<select id="car"><option>Tesla</option></select>
|
426
|
-
</span>
|
427
|
-
</div></xmp></pre>
|
428
|
-
</div>
|
429
|
-
</div>
|
430
|
-
<div class="row">
|
431
|
-
<div class="col-sm-6">
|
432
|
-
<div class="inline-input block">
|
433
|
-
<span class="label">
|
434
|
-
<label for="car">Car Preference</label>
|
435
|
-
</span>
|
436
|
-
<span>
|
437
|
-
<input id="name" value="Jonathan Doe" disabled>
|
438
|
-
</span>
|
439
|
-
</div>
|
440
|
-
</div>
|
441
|
-
<div class="col-sm-6">
|
442
|
-
<pre><xmp><div class="inline-input block">
|
443
|
-
<span class="label">
|
444
|
-
<label for="car">Car Preference</label>
|
445
|
-
</span>
|
446
|
-
<span>
|
447
|
-
<input id="name" value="Jonathan Doe" disabled>
|
448
|
-
</span>
|
449
|
-
</div></xmp></pre>
|
450
|
-
</div>
|
451
|
-
</div>
|
452
|
-
</div>
|
453
|
-
|
454
|
-
<a name="forms"></a>
|
455
|
-
<div class="section">
|
456
|
-
|
457
|
-
<h1>Forms</h1>
|
458
|
-
|
459
|
-
<div class="row">
|
460
|
-
<div class="col-sm-6">
|
461
|
-
<form class="uniform-form">
|
462
|
-
<div class="row">
|
463
|
-
<div class="uniform-form-group col-sm-4">
|
464
|
-
<label>Name</label>
|
465
|
-
<input type="text">
|
466
|
-
</div>
|
467
|
-
<div class="uniform-form-group col-sm-4">
|
468
|
-
<label>Email</label>
|
469
|
-
<input type="text">
|
470
|
-
</div>
|
471
|
-
<div class="uniform-form-group col-sm-4">
|
472
|
-
<label>Phone</label>
|
473
|
-
<input type="text">
|
474
|
-
</div>
|
475
|
-
</div>
|
476
|
-
<div class="row">
|
477
|
-
<div class="uniform-form-group col-sm-4">
|
478
|
-
<label>Twitter</label>
|
479
|
-
<input type="text">
|
480
|
-
<label>Facebook</label>
|
481
|
-
<input type="text">
|
482
|
-
<label>Instagram</label>
|
483
|
-
<input type="text">
|
484
|
-
</div>
|
485
|
-
<div class="uniform-form-group col-sm-8">
|
486
|
-
<label>Details</label>
|
487
|
-
<textarea rows="9"></textarea>
|
488
|
-
</div>
|
489
|
-
</div>
|
490
|
-
</form>
|
491
|
-
</div>
|
492
|
-
<div class="col-sm-6">
|
493
|
-
<pre><xmp><form class="uniform-form">
|
494
|
-
<div class="row">
|
495
|
-
<div class="uniform-form-group col-sm-4">
|
496
|
-
<label>Name</label>
|
497
|
-
<input type="text">
|
498
|
-
</div>
|
499
|
-
<div class="uniform-form-group col-sm-4">
|
500
|
-
<label>Email</label>
|
501
|
-
<input type="text">
|
502
|
-
</div>
|
503
|
-
<div class="uniform-form-group col-sm-4">
|
504
|
-
<label>Phone</label>
|
505
|
-
<input type="text">
|
506
|
-
</div>
|
507
|
-
</div>
|
508
|
-
<div class="row">
|
509
|
-
<div class="uniform-form-group col-sm-4">
|
510
|
-
<label>Twitter</label>
|
511
|
-
<input type="text">
|
512
|
-
<label>Facebook</label>
|
513
|
-
<input type="text">
|
514
|
-
<label>Instagram</label>
|
515
|
-
<input type="text">
|
516
|
-
</div>
|
517
|
-
<div class="uniform-form-group col-sm-8">
|
518
|
-
<label>Details</label>
|
519
|
-
<textarea rows="9"></textarea>
|
520
|
-
</div>
|
521
|
-
</div>
|
522
|
-
</form></xmp></pre>
|
523
|
-
</div>
|
524
|
-
</div>
|
525
|
-
|
526
|
-
<h3>Has Error</h3>
|
527
|
-
<div class="row">
|
528
|
-
<div class="col-sm-6">
|
529
|
-
<form class="uniform-form">
|
530
|
-
<div class="row">
|
531
|
-
<div class="uniform-form-group col-sm-12">
|
532
|
-
<div class="has-error">
|
533
|
-
<label>Name</label>
|
534
|
-
<input type="text">
|
535
|
-
</div>
|
536
|
-
</div>
|
537
|
-
</div>
|
538
|
-
</form>
|
539
|
-
</div>
|
540
|
-
<div class="col-sm-6">
|
541
|
-
<pre><xmp><form class="uniform-form">
|
542
|
-
<div class="row">
|
543
|
-
<div class="uniform-form-group col-sm-4">
|
544
|
-
<div class="has-error">
|
545
|
-
<label>Name</label>
|
546
|
-
<input type="text">
|
547
|
-
</div>
|
548
|
-
</div>
|
549
|
-
</div>
|
550
|
-
</form></xmp></pre>
|
551
|
-
</div>
|
552
|
-
</div>
|
553
|
-
|
554
|
-
<div class="row">
|
555
|
-
<div class="col-sm-6">
|
556
|
-
<form class="uniform-form uniform-form-table">
|
557
|
-
<div class="row">
|
558
|
-
<div class="uniform-form-group col-sm-4">
|
559
|
-
<label>Name</label>
|
560
|
-
<input type="text">
|
561
|
-
</div>
|
562
|
-
<div class="uniform-form-group col-sm-4">
|
563
|
-
<label>Email</label>
|
564
|
-
<input type="text">
|
565
|
-
</div>
|
566
|
-
<div class="uniform-form-group col-sm-4">
|
567
|
-
<label>Phone</label>
|
568
|
-
<input type="text">
|
569
|
-
</div>
|
570
|
-
</div>
|
571
|
-
<div class="row">
|
572
|
-
<div class="uniform-form-group col-sm-4">
|
573
|
-
<label>Twitter</label>
|
574
|
-
<input type="text">
|
575
|
-
<label>Facebook</label>
|
576
|
-
<input type="text">
|
577
|
-
<label>Instagram</label>
|
578
|
-
<input type="text">
|
579
|
-
</div>
|
580
|
-
<div class="uniform-form-group col-sm-8 col-span-2">
|
581
|
-
<label>Details</label>
|
582
|
-
<textarea rows="6"></textarea>
|
583
|
-
</div>
|
584
|
-
</div>
|
585
|
-
</form>
|
586
|
-
<br>
|
587
|
-
<form class="uniform-form uniform-form-table">
|
588
|
-
<div class="row">
|
589
|
-
<div class="uniform-form-group col-sm-4">
|
590
|
-
<label>Name</label>
|
591
|
-
<input type="text">
|
592
|
-
</div>
|
593
|
-
<div class="uniform-form-group col-sm-4">
|
594
|
-
<div class="has-error">
|
595
|
-
<label>Email</label>
|
596
|
-
<input type="text">
|
597
|
-
</div>
|
598
|
-
</div>
|
599
|
-
<div class="uniform-form-group col-sm-4">
|
600
|
-
<label>Phone</label>
|
601
|
-
<input type="text">
|
602
|
-
</div>
|
603
|
-
</div>
|
604
|
-
<div class="row">
|
605
|
-
<div class="uniform-form-group col-sm-4">
|
606
|
-
<label>Twitter</label>
|
607
|
-
<input type="text">
|
608
|
-
<label>Facebook</label>
|
609
|
-
<input type="text">
|
610
|
-
<div class="has-error">
|
611
|
-
<label>Instagram</label>
|
612
|
-
<input type="text">
|
613
|
-
</div>
|
614
|
-
</div>
|
615
|
-
<div class="uniform-form-group col-sm-8 col-span-2">
|
616
|
-
<label>Details</label>
|
617
|
-
<textarea rows="6"></textarea>
|
618
|
-
</div>
|
619
|
-
</div>
|
620
|
-
</form>
|
621
|
-
</div>
|
622
|
-
<div class="col-sm-6">
|
623
|
-
<pre><xmp><form class="uniform-form uniform-form-table">
|
624
|
-
<div class="row">
|
625
|
-
<div class="uniform-form-group col-sm-4">
|
626
|
-
<label>Name</label>
|
627
|
-
<input type="text">
|
628
|
-
</div>
|
629
|
-
<div class="uniform-form-group col-sm-4">
|
630
|
-
<label>Email</label>
|
631
|
-
<input type="text">
|
632
|
-
</div>
|
633
|
-
<div class="uniform-form-group col-sm-4">
|
634
|
-
<label>Phone</label>
|
635
|
-
<input type="text">
|
636
|
-
</div>
|
637
|
-
</div>
|
638
|
-
<div class="row">
|
639
|
-
<div class="uniform-form-group col-sm-4">
|
640
|
-
<label>Twitter</label>
|
641
|
-
<input type="text">
|
642
|
-
<label>Facebook</label>
|
643
|
-
<input type="text">
|
644
|
-
<label>Instagram</label>
|
645
|
-
<input type="text">
|
646
|
-
</div>
|
647
|
-
<div class="uniform-form-group col-sm-8 col-span-2">
|
648
|
-
<label>Details</label>
|
649
|
-
<textarea rows="6"></textarea>
|
650
|
-
</div>
|
651
|
-
</div>
|
652
|
-
</form></xmp></pre>
|
653
|
-
</div>
|
654
|
-
</div>
|
655
|
-
</div>
|
656
|
-
|
657
|
-
<a name="loaders"></a>
|
658
|
-
<div class="section">
|
659
|
-
|
660
|
-
<h1>Loaders</h1>
|
661
|
-
|
662
|
-
<div class="row">
|
663
|
-
<div class="col-sm-6">
|
664
|
-
<div class="uniform-loader">
|
665
|
-
<div class="uniform-loader-container">
|
666
|
-
<span>•</span>
|
667
|
-
<span>•</span>
|
668
|
-
<span>•</span>
|
669
|
-
</div>
|
670
|
-
</div>
|
671
|
-
</div>
|
672
|
-
<div class="col-sm-6">
|
673
|
-
<pre><xmp><div class="uniform-loader">
|
674
|
-
<div class="uniform-loader-container">
|
675
|
-
<span>•</span>
|
676
|
-
<span>•</span>
|
677
|
-
<span>•</span>
|
678
|
-
</div>
|
679
|
-
</div></xmp></pre>
|
680
|
-
</div>
|
681
|
-
</div>
|
682
|
-
<div class="row">
|
683
|
-
<div class="col-sm-6">
|
684
|
-
<span style="position:relative; display:inline-block">
|
685
|
-
<img src="https://unsplash.it/150/100/?random" style="display:block;" width="150" height="100">
|
686
|
-
<div class="uniform-loader cover">
|
687
|
-
<div class="uniform-loader-container">
|
688
|
-
<span>•</span>
|
689
|
-
<span>•</span>
|
690
|
-
<span>•</span>
|
691
|
-
</div>
|
692
|
-
</div>
|
693
|
-
</span>
|
694
|
-
</div>
|
695
|
-
<div class="col-sm-6">
|
696
|
-
<pre><xmp><span style="position:relative; display:inline-block">
|
697
|
-
<img src="https://unsplash.it/150/100/?random" style="display:block;">
|
698
|
-
<div class="uniform-loader cover">
|
699
|
-
<div class="uniform-loader-container">
|
700
|
-
<span>•</span>
|
701
|
-
<span>•</span>
|
702
|
-
<span>•</span>
|
703
|
-
</div>
|
704
|
-
</div>
|
705
|
-
</span></xmp></pre>
|
706
|
-
</div>
|
707
|
-
</div>
|
708
|
-
<div class="row">
|
709
|
-
<div class="col-sm-6">
|
710
|
-
<span style="position:relative; display:inline-block">
|
711
|
-
<img src="https://unsplash.it/150/100/?random" style="display:block;" width="150" height="100">
|
712
|
-
<div class="uniform-loader cover light">
|
713
|
-
<div class="uniform-loader-container">
|
714
|
-
<span>•</span>
|
715
|
-
<span>•</span>
|
716
|
-
<span>•</span>
|
717
|
-
</div>
|
718
|
-
</div>
|
719
|
-
</span>
|
720
|
-
</div>
|
721
|
-
<div class="col-sm-6">
|
722
|
-
<pre><xmp><span style="position:relative; display:inline-block">
|
723
|
-
<img src="https://unsplash.it/150/100/?random" style="display:block;">
|
724
|
-
<div class="uniform-loader cover light">
|
725
|
-
<div class="uniform-loader-container">
|
726
|
-
<span>•</span>
|
727
|
-
<span>•</span>
|
728
|
-
<span>•</span>
|
729
|
-
</div>
|
730
|
-
</div>
|
731
|
-
</span></xmp></pre>
|
732
|
-
</div>
|
733
|
-
</div>
|
734
|
-
</div>
|
735
|
-
|
736
|
-
<a name="cards"></a>
|
737
|
-
<div class="section">
|
738
|
-
|
739
|
-
<h1>Cards</h1>
|
740
|
-
|
741
|
-
<div class="row">
|
742
|
-
<div class="col-sm-6">
|
743
|
-
<div class="uniform-card">
|
744
|
-
<div class="uniform-card-title">
|
745
|
-
<span class="type">Sample Card</span>
|
746
|
-
</div>
|
747
|
-
<div class="uniform-card-body">Put Content In Here</div>
|
748
|
-
</div>
|
749
|
-
</div>
|
750
|
-
<div class="col-sm-6">
|
751
|
-
<pre><xmp><div class="uniform-card">
|
752
|
-
<div class="uniform-card-title">
|
753
|
-
<span class="type">Sample Card</span>
|
754
|
-
</div>
|
755
|
-
<div class="uniform-card-body">Put Content In Here</div>
|
756
|
-
</div></xmp></pre>
|
757
|
-
</div>
|
758
|
-
</div>
|
759
|
-
<div class="row">
|
760
|
-
<div class="col-sm-6">
|
761
|
-
<div class="uniform-card">
|
762
|
-
<div class="uniform-card-avatar">
|
763
|
-
<img src="https://unsplash.it/166/166/?random" style="display:block;" height="166" width="166">
|
764
|
-
</div>
|
765
|
-
<div class="uniform-card-container">
|
766
|
-
<div class="uniform-card-title">
|
767
|
-
<span class="type">John Dozer</span>
|
768
|
-
<div class="actions">
|
769
|
-
<a class="uniform-btn">Edit</a>
|
770
|
-
</div>
|
771
|
-
</div>
|
772
|
-
<div class="uniform-card-body">
|
773
|
-
<div class="uniform-card-attributes">
|
774
|
-
<div>
|
775
|
-
<div>Company</div>
|
776
|
-
<div>Friendly Associates</div>
|
777
|
-
</div>
|
778
|
-
<div>
|
779
|
-
<div>Title</div>
|
780
|
-
<div>Head Dude</div>
|
781
|
-
</div>
|
782
|
-
<div>
|
783
|
-
<div>Skills</div>
|
784
|
-
<div>Stapling, Jogging</div>
|
785
|
-
</div>
|
786
|
-
</div>
|
787
|
-
</div>
|
788
|
-
</div>
|
789
|
-
</div>
|
790
|
-
</div>
|
791
|
-
<div class="col-sm-6">
|
792
|
-
<pre><xmp><div class="uniform-card">
|
793
|
-
<div class="uniform-card-avatar">
|
794
|
-
<img src="https://unsplash.it/166/166/?random" style="display:block;" height="166" width="166">
|
795
|
-
</div>
|
796
|
-
<div class="uniform-card-container">
|
797
|
-
<div class="uniform-card-title">
|
798
|
-
<span class="type">John Dozer</span>
|
799
|
-
<div class="actions">
|
800
|
-
<a class="uniform-btn">Edit</a>
|
801
|
-
</div>
|
802
|
-
</div>
|
803
|
-
<div class="uniform-card-body">
|
804
|
-
<div class="uniform-card-attributes">
|
805
|
-
<div>
|
806
|
-
<div>Company</div>
|
807
|
-
<div>Friendly Associates</div>
|
808
|
-
</div>
|
809
|
-
<div>
|
810
|
-
<div>Title</div>
|
811
|
-
<div>Head Dude</div>
|
812
|
-
</div>
|
813
|
-
<div>
|
814
|
-
<div>Skills</div>
|
815
|
-
<div>Stapling, Jogging</div>
|
816
|
-
</div>
|
817
|
-
</div>
|
818
|
-
</div>
|
819
|
-
</div>
|
820
|
-
</div></xmp></pre>
|
821
|
-
</div>
|
822
|
-
</div>
|
823
|
-
</div>
|
824
|
-
|
825
|
-
<a name="tiles"></a>
|
826
|
-
<div class="section">
|
827
|
-
|
828
|
-
<h1>Tiles</h1>
|
829
|
-
|
830
|
-
TODO
|
831
|
-
</div>
|
832
|
-
|
833
|
-
<a name="rows"></a>
|
834
|
-
<div class="section">
|
835
|
-
|
836
|
-
<h1>Rows</h1>
|
837
|
-
|
838
|
-
<a class="uniform-row" href="#rows">
|
839
|
-
<span class="uniform-row-avatar">
|
840
|
-
<img src="https://unsplash.it/63/47/?random" width="63" height="47">
|
841
|
-
</span>
|
842
|
-
<span class="uniform-row-container">
|
843
|
-
<span class="col-sm-6">
|
844
|
-
John Doe
|
845
|
-
<span class="uniform-row-secondary">ABC Designs</span>
|
846
|
-
</span>
|
847
|
-
<span class="col-sm-3">
|
848
|
-
Garland, TX
|
849
|
-
</span>
|
850
|
-
<span class="col-sm-3">
|
851
|
-
Texas Ranger Fan
|
852
|
-
</span>
|
853
|
-
</span>
|
854
|
-
</a>
|
855
|
-
<br><br>
|
856
|
-
<pre><xmp><a class="uniform-row" href="#rows">
|
857
|
-
<span class="uniform-row-avatar">
|
858
|
-
<img src="https://unsplash.it/63/47/?random" width="63" height="47">
|
859
|
-
</span>
|
860
|
-
<span class="uniform-row-container">
|
861
|
-
<span class="col-sm-6">
|
862
|
-
John Doe
|
863
|
-
<span class="uniform-row-secondary">ABC Designs</span>
|
864
|
-
</span>
|
865
|
-
<span class="col-sm-3">
|
866
|
-
Garland, TX
|
867
|
-
</span>
|
868
|
-
<span class="col-sm-3">
|
869
|
-
Texas Ranger Fan
|
870
|
-
</span>
|
871
|
-
</span>
|
872
|
-
</a></xmp></pre>
|
873
|
-
</div>
|
874
|
-
|
875
|
-
<a name="lists"></a>
|
876
|
-
<div class="section">
|
877
|
-
|
878
|
-
<h1>Lists</h1>
|
879
|
-
|
880
|
-
<div class="row">
|
881
|
-
<div class="col-sm-6">
|
882
|
-
<ol class="uniform-step">
|
883
|
-
<li>Fill out the form</li>
|
884
|
-
<li>Join the club</li>
|
885
|
-
<li>Chill</li>
|
886
|
-
</ol>
|
887
|
-
</div>
|
888
|
-
<div class="col-sm-6">
|
889
|
-
<pre><xmp>
|
890
|
-
<ol class="uniform-step">
|
891
|
-
<li>Fill out the form</li>
|
892
|
-
<li>Join the club</li>
|
893
|
-
<li>Chill</li>
|
894
|
-
</ol></xmp></pre>
|
895
|
-
</div>
|
896
|
-
</div>
|
897
|
-
|
898
|
-
<div class="row">
|
899
|
-
<div class="col-sm-6">
|
900
|
-
<ul class="uniform-checks">
|
901
|
-
<li>Fill out the form</li>
|
902
|
-
<li>Join the club</li>
|
903
|
-
<li>Chill</li>
|
904
|
-
</ul>
|
905
|
-
</div>
|
906
|
-
<div class="col-sm-6">
|
907
|
-
<pre><xmp>
|
908
|
-
<ul class="uniform-checks">
|
909
|
-
<li>Fill out the form</li>
|
910
|
-
<li>Join the club</li>
|
911
|
-
<li>Chill</li>
|
912
|
-
</ul></xmp></pre>
|
913
|
-
</div>
|
914
|
-
</div>
|
915
|
-
|
916
|
-
<div class="row">
|
917
|
-
<div class="col-sm-6">
|
918
|
-
<ul class="uniform-icons">
|
919
|
-
<li data-icon="">Fill out the form</li>
|
920
|
-
<li data-icon="">Join the club</li>
|
921
|
-
<li data-icon="">Chill</li>
|
922
|
-
</ul>
|
923
|
-
</div>
|
924
|
-
<div class="col-sm-6">
|
925
|
-
<pre><xmp>
|
926
|
-
<ul class="uniform-icons">
|
927
|
-
<li data-icon="">Fill out the form</li>
|
928
|
-
<li data-icon="">Join the club</li>
|
929
|
-
<li data-icon="">Chill</li>
|
930
|
-
</ul></xmp></pre>
|
931
|
-
</div>
|
932
|
-
</div>
|
933
|
-
</div>
|
934
|
-
|
935
|
-
<a name="tables"></a>
|
936
|
-
<div class="section">
|
937
|
-
|
938
|
-
<h1>Tables</h1>
|
939
|
-
|
940
|
-
TODO
|
941
|
-
</div>
|
942
|
-
|
943
|
-
<a name="nav"></a>
|
944
|
-
<div class="section">
|
945
|
-
|
946
|
-
<h1>Nav</h1>
|
947
|
-
|
948
|
-
<div class="uniform-nav">
|
949
|
-
<div class="brand">
|
950
|
-
<img src="site/logo.png" height="31" width="137">
|
951
|
-
</div>
|
952
|
-
<ul>
|
953
|
-
<li><a href="#">Home</a></li>
|
954
|
-
<li><a href="#">About</a></li>
|
955
|
-
<li><a href="#">Contact</a></li>
|
956
|
-
</ul>
|
957
|
-
<ul class="uniform-nav-right">
|
958
|
-
<li><a href="#">Login</a></li>
|
959
|
-
</ul>
|
960
|
-
</div>
|
961
|
-
<div class="uniform-nav uniform-nav-subnav">
|
962
|
-
<ul>
|
963
|
-
<li><a href="#">Home</a></li>
|
964
|
-
<li><span style="font-family: 'fortycons'"></span></li>
|
965
|
-
<li><a href="#">Nav</a></li>
|
966
|
-
<li><span style="font-family: 'fortycons'"></span></li>
|
967
|
-
<li><a href="#">Preview</a></li>
|
968
|
-
</ul>
|
969
|
-
</div>
|
970
|
-
|
971
|
-
<br><br>
|
972
|
-
<pre><xmp><div class="uniform-nav">
|
973
|
-
<div class="brand">
|
974
|
-
<img src="site/logo.png" height="31" width="137">
|
975
|
-
</div>
|
976
|
-
<ul>
|
977
|
-
<li><a href="#">Home</a></li>
|
978
|
-
<li><a href="#">About</a></li>
|
979
|
-
<li><a href="#">Contact</a></li>
|
980
|
-
</ul>
|
981
|
-
<ul class="uniform-nav-right">
|
982
|
-
<li><a href="#">Login</a></li>
|
983
|
-
</ul>
|
984
|
-
</div>
|
985
|
-
<div class="uniform-nav uniform-nav-subnav">
|
986
|
-
<ul>
|
987
|
-
<li><a href="#">Home</a></li>
|
988
|
-
<li><span style="font-family: 'fortycons'"></span></li>
|
989
|
-
<li><a href="#">Nav</a></li>
|
990
|
-
<li><span style="font-family: 'fortycons'"></span></li>
|
991
|
-
<li><a href="#">Preview</a></li>
|
992
|
-
</ul>
|
993
|
-
</div></xmp></pre>
|
994
|
-
</div>
|
995
|
-
|
996
|
-
<a name="tabs"></a>
|
997
|
-
<div class="section">
|
998
|
-
|
999
|
-
<h1>Tabs</h1>
|
1000
|
-
|
1001
|
-
TODO
|
1002
|
-
</div>
|
1003
|
-
|
1004
|
-
<a name="helpers"></a>
|
1005
|
-
<div class="section">
|
1006
|
-
|
1007
|
-
<h1>Helpers</h1>
|
1008
|
-
|
1009
|
-
<div class="row">
|
1010
|
-
<div class="col-sm-6">
|
1011
|
-
<vr>
|
1012
|
-
</div>
|
1013
|
-
<div class="col-sm-6">
|
1014
|
-
<pre><xmp><vr></xmp></pre>
|
1015
|
-
</div>
|
1016
|
-
</div>
|
1017
|
-
<br>
|
1018
|
-
<br>
|
1019
|
-
<div class="row">
|
1020
|
-
<div class="col-sm-6">
|
1021
|
-
<code>.rounded</code>, <code>.round</code>
|
1022
|
-
</div>
|
1023
|
-
<div class="col-sm-6">
|
1024
|
-
<pre><xmp>border-radius: 50%</xmp></pre>
|
1025
|
-
</div>
|
1026
|
-
</div>
|
1027
|
-
<div class="row">
|
1028
|
-
<div class="col-sm-6">
|
1029
|
-
<code>.handle</code>
|
1030
|
-
</div>
|
1031
|
-
<div class="col-sm-6">
|
1032
|
-
<pre><xmp>cursor: hand;</xmp></pre>
|
1033
|
-
</div>
|
1034
|
-
</div>
|
1035
|
-
<div class="row">
|
1036
|
-
<div class="col-sm-6">
|
1037
|
-
<code>.pointer</code>
|
1038
|
-
</div>
|
1039
|
-
<div class="col-sm-6">
|
1040
|
-
<pre><xmp>cursor: pointer;</xmp></pre>
|
1041
|
-
</div>
|
1042
|
-
</div>
|
1043
|
-
<div class="row">
|
1044
|
-
<div class="col-sm-6">
|
1045
|
-
<code>.honeypot</code>
|
1046
|
-
</div>
|
1047
|
-
<div class="col-sm-6">
|
1048
|
-
<pre><xmp>position:absolute !important;
|
1049
|
-
left:-999999px !important;
|
1050
|
-
width:1px !important;
|
1051
|
-
display:block !important;
|
1052
|
-
</xmp></pre>
|
1053
|
-
</div>
|
1054
|
-
</div>
|
1055
|
-
<div class="row">
|
1056
|
-
<div class="col-sm-6">
|
1057
|
-
<code>.hidden, .hide</code>
|
1058
|
-
</div>
|
1059
|
-
<div class="col-sm-6">
|
1060
|
-
<pre><xmp>display:none;</xmp></pre>
|
1061
|
-
</div>
|
1062
|
-
</div>
|
1063
|
-
<div class="row">
|
1064
|
-
<div class="col-sm-6">
|
1065
|
-
<code>.right</code>
|
1066
|
-
</div>
|
1067
|
-
<div class="col-sm-6">
|
1068
|
-
<pre><xmp>float:right;</xmp></pre>
|
1069
|
-
</div>
|
1070
|
-
</div>
|
1071
|
-
<div class="row">
|
1072
|
-
<div class="col-sm-6">
|
1073
|
-
<code>.text-right</code>
|
1074
|
-
</div>
|
1075
|
-
<div class="col-sm-6">
|
1076
|
-
<pre><xmp>text-align: right;</xmp></pre>
|
1077
|
-
</div>
|
1078
|
-
</div>
|
1079
|
-
<div class="row">
|
1080
|
-
<div class="col-sm-6">
|
1081
|
-
<code>.text-center</code>
|
1082
|
-
</div>
|
1083
|
-
<div class="col-sm-6">
|
1084
|
-
<pre><xmp>text-align: center;</xmp></pre>
|
1085
|
-
</div>
|
1086
|
-
</div>
|
1087
|
-
<div class="row">
|
1088
|
-
<div class="col-sm-6">
|
1089
|
-
<code>.clear</code>
|
1090
|
-
</div>
|
1091
|
-
<div class="col-sm-6">
|
1092
|
-
<pre><xmp>clear:both;</xmp></pre>
|
1093
|
-
</div>
|
1094
|
-
</div>
|
1095
|
-
<div class="row">
|
1096
|
-
<div class="col-sm-6">
|
1097
|
-
<code>.pad</code>
|
1098
|
-
</div>
|
1099
|
-
<div class="col-sm-6">
|
1100
|
-
<pre><xmp>padding:10px;</xmp></pre>
|
1101
|
-
</div>
|
1102
|
-
</div>
|
1103
|
-
<div class="row">
|
1104
|
-
<div class="col-sm-6">
|
1105
|
-
<code>.text-overflow</code>
|
1106
|
-
</div>
|
1107
|
-
<div class="col-sm-6">
|
1108
|
-
<pre><xmp>text-overflow: inherit;
|
1109
|
-
white-space: inherit;
|
1110
|
-
overflow: inherit;</xmp></pre>
|
1111
|
-
</div>
|
1112
|
-
</div>
|
1113
|
-
<div class="row">
|
1114
|
-
<div class="col-sm-6">
|
1115
|
-
<code>.strong, .bold</code>
|
1116
|
-
</div>
|
1117
|
-
<div class="col-sm-6">
|
1118
|
-
<pre><xmp>font-weight: 700;</xmp></pre>
|
1119
|
-
</div>
|
1120
|
-
</div>
|
1121
|
-
<div class="row">
|
1122
|
-
<div class="col-sm-6">
|
1123
|
-
<code>.light, .text-light</code>
|
1124
|
-
</div>
|
1125
|
-
<div class="col-sm-6">
|
1126
|
-
<pre><xmp>font-weight: 300;</xmp></pre>
|
1127
|
-
</div>
|
1128
|
-
</div>
|
1129
|
-
<div class="row">
|
1130
|
-
<div class="col-sm-6">
|
1131
|
-
<code>.text-normal</code>
|
1132
|
-
</div>
|
1133
|
-
<div class="col-sm-6">
|
1134
|
-
<pre><xmp>font-weight: normal;</xmp></pre>
|
1135
|
-
</div>
|
1136
|
-
</div>
|
1137
|
-
<div class="row">
|
1138
|
-
<div class="col-sm-6">
|
1139
|
-
<code>.warn</code>
|
1140
|
-
</div>
|
1141
|
-
<div class="col-sm-6">
|
1142
|
-
<pre><xmp>color:lighten($gray, 20);
|
1143
|
-
&:hover{
|
1144
|
-
color:$red;
|
1145
|
-
}</xmp></pre>
|
1146
|
-
</div>
|
1147
|
-
</div>
|
1148
|
-
<div class="row">
|
1149
|
-
<div class="col-sm-6">
|
1150
|
-
<code>p.large</code>
|
1151
|
-
</div>
|
1152
|
-
<div class="col-sm-6">
|
1153
|
-
<pre><xmp>font-size:1.5em;
|
1154
|
-
font-weight:300;
|
1155
|
-
margin-bottom:20px;</xmp></pre>
|
1156
|
-
</div>
|
1157
|
-
</div>
|
1158
|
-
<div class="row">
|
1159
|
-
<div class="col-sm-6">
|
1160
|
-
<code>.nowrap</code>
|
1161
|
-
</div>
|
1162
|
-
<div class="col-sm-6">
|
1163
|
-
<pre><xmp>white-space: nowrap;
|
1164
|
-
overflow:hidden;</xmp></pre>
|
1165
|
-
</div>
|
1166
|
-
</div>
|
1167
|
-
</div>
|
1168
|
-
|
1169
|
-
</div>
|
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>
|
1170
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>
|
1171
251
|
</body>
|