twitter-bootstrap-rails-ajax 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +221 -0
- data/Rakefile +14 -0
- data/lib/generators/bootstrap/install/install_generator.rb +53 -0
- data/lib/generators/bootstrap/install/templates/application.css +7 -0
- data/lib/generators/bootstrap/install/templates/application.js +10 -0
- data/lib/generators/bootstrap/install/templates/bootstrap.coffee +4 -0
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +29 -0
- data/lib/generators/bootstrap/layout/layout_generator.rb +23 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +97 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +70 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +70 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +16 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -0
- data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +4 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.haml +3 -0
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +3 -0
- data/lib/generators/bootstrap/themed/templates/index.html.erb +38 -0
- data/lib/generators/bootstrap/themed/templates/index.html.haml +24 -0
- data/lib/generators/bootstrap/themed/templates/index.html.slim +26 -0
- data/lib/generators/bootstrap/themed/templates/new.html.erb +4 -0
- data/lib/generators/bootstrap/themed/templates/new.html.haml +3 -0
- data/lib/generators/bootstrap/themed/templates/new.html.slim +3 -0
- data/lib/generators/bootstrap/themed/templates/show.html.erb +21 -0
- data/lib/generators/bootstrap/themed/templates/show.html.haml +14 -0
- data/lib/generators/bootstrap/themed/templates/show.html.slim +16 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +14 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +11 -0
- data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +12 -0
- data/lib/generators/bootstrap/themed/themed_generator.rb +99 -0
- data/lib/twitter-bootstrap-rails.rb +10 -0
- data/lib/twitter/bootstrap/rails/bootstrap.rb +2 -0
- data/lib/twitter/bootstrap/rails/engine.rb +24 -0
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +30 -0
- data/lib/twitter/bootstrap/rails/version.rb +7 -0
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
- data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +94 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +161 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +138 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +92 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +210 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +95 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +125 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +324 -0
- data/vendor/toolkit/fontawesome.less +267 -0
- data/vendor/toolkit/twitter/bootstrap/accordion.less +28 -0
- data/vendor/toolkit/twitter/bootstrap/alerts.less +58 -0
- data/vendor/toolkit/twitter/bootstrap/badges.less +36 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +63 -0
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +24 -0
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +172 -0
- data/vendor/toolkit/twitter/bootstrap/buttons.less +187 -0
- data/vendor/toolkit/twitter/bootstrap/carousel.less +121 -0
- data/vendor/toolkit/twitter/bootstrap/close.less +18 -0
- data/vendor/toolkit/twitter/bootstrap/code.less +57 -0
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +20 -0
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +148 -0
- data/vendor/toolkit/twitter/bootstrap/forms.less +555 -0
- data/vendor/toolkit/twitter/bootstrap/grid.less +5 -0
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +22 -0
- data/vendor/toolkit/twitter/bootstrap/labels.less +38 -0
- data/vendor/toolkit/twitter/bootstrap/layouts.less +17 -0
- data/vendor/toolkit/twitter/bootstrap/mixins.less +614 -0
- data/vendor/toolkit/twitter/bootstrap/modals.less +90 -0
- data/vendor/toolkit/twitter/bootstrap/navbar.less +341 -0
- data/vendor/toolkit/twitter/bootstrap/navs.less +363 -0
- data/vendor/toolkit/twitter/bootstrap/pager.less +36 -0
- data/vendor/toolkit/twitter/bootstrap/pagination.less +56 -0
- data/vendor/toolkit/twitter/bootstrap/popovers.less +49 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +109 -0
- data/vendor/toolkit/twitter/bootstrap/reset.less +126 -0
- data/vendor/toolkit/twitter/bootstrap/responsive.less +371 -0
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +29 -0
- data/vendor/toolkit/twitter/bootstrap/sprites.less +158 -0
- data/vendor/toolkit/twitter/bootstrap/tables.less +159 -0
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +35 -0
- data/vendor/toolkit/twitter/bootstrap/type.less +234 -0
- data/vendor/toolkit/twitter/bootstrap/utilities.less +23 -0
- data/vendor/toolkit/twitter/bootstrap/variables.less +201 -0
- data/vendor/toolkit/twitter/bootstrap/wells.less +27 -0
- data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
- metadata +138 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
/* ===================================================
|
2
|
+
* bootstrap-transition.js v2.0.2
|
3
|
+
* http://twitter.github.com/bootstrap/javascript.html#transitions
|
4
|
+
* ===================================================
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
* ========================================================== */
|
19
|
+
|
20
|
+
!function( $ ) {
|
21
|
+
|
22
|
+
$(function () {
|
23
|
+
|
24
|
+
"use strict"
|
25
|
+
|
26
|
+
/* CSS TRANSITION SUPPORT (https://gist.github.com/373874)
|
27
|
+
* ======================================================= */
|
28
|
+
|
29
|
+
$.support.transition = (function () {
|
30
|
+
var thisBody = document.body || document.documentElement
|
31
|
+
, thisStyle = thisBody.style
|
32
|
+
, support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined
|
33
|
+
|
34
|
+
return support && {
|
35
|
+
end: (function () {
|
36
|
+
var transitionEnd = "TransitionEnd"
|
37
|
+
if ( $.browser.webkit ) {
|
38
|
+
transitionEnd = "webkitTransitionEnd"
|
39
|
+
} else if ( $.browser.mozilla ) {
|
40
|
+
transitionEnd = "transitionend"
|
41
|
+
} else if ( $.browser.opera ) {
|
42
|
+
transitionEnd = "oTransitionEnd"
|
43
|
+
}
|
44
|
+
return transitionEnd
|
45
|
+
}())
|
46
|
+
}
|
47
|
+
})()
|
48
|
+
|
49
|
+
})
|
50
|
+
|
51
|
+
}( window.jQuery );
|
@@ -0,0 +1,324 @@
|
|
1
|
+
/* =============================================================
|
2
|
+
* bootstrap-typeahead.js v2.0.3
|
3
|
+
* http://twitter.github.com/bootstrap/javascript.html#typeahead
|
4
|
+
* =============================================================
|
5
|
+
* Copyright 2012 Twitter, Inc.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
* ============================================================ */
|
19
|
+
|
20
|
+
|
21
|
+
!function($){
|
22
|
+
|
23
|
+
"use strict"; // jshint ;_;
|
24
|
+
|
25
|
+
|
26
|
+
/* TYPEAHEAD PUBLIC CLASS DEFINITION
|
27
|
+
* ================================= */
|
28
|
+
|
29
|
+
var Typeahead = function (element, options) {
|
30
|
+
this.$element = $(element)
|
31
|
+
this.options = $.extend({}, $.fn.typeahead.defaults, options)
|
32
|
+
this.matcher = this.options.matcher || this.matcher
|
33
|
+
this.sorter = this.options.sorter || this.sorter
|
34
|
+
this.highlighter = this.options.highlighter || this.highlighter
|
35
|
+
this.updater = this.options.updater || this.updater
|
36
|
+
this.$menu = $(this.options.menu).appendTo('body')
|
37
|
+
this.source = this.options.source
|
38
|
+
this.onselect = this.options.onselect
|
39
|
+
this.strings = true
|
40
|
+
this.shown = false
|
41
|
+
this.listen()
|
42
|
+
}
|
43
|
+
|
44
|
+
Typeahead.prototype = {
|
45
|
+
|
46
|
+
constructor: Typeahead
|
47
|
+
|
48
|
+
, select: function () {
|
49
|
+
var val = JSON.parse(this.$menu.find('.active').attr('data-value'))
|
50
|
+
, text
|
51
|
+
|
52
|
+
if (!this.strings) text = val[this.options.property]
|
53
|
+
else text = val
|
54
|
+
|
55
|
+
this.$element.val(this.updater(text)).change()
|
56
|
+
|
57
|
+
if (typeof this.onselect == "function")
|
58
|
+
this.onselect(val)
|
59
|
+
|
60
|
+
return this.hide()
|
61
|
+
}
|
62
|
+
|
63
|
+
, updater: function (item) {
|
64
|
+
return item
|
65
|
+
}
|
66
|
+
|
67
|
+
, show: function () {
|
68
|
+
var pos = $.extend({}, this.$element.position(), {
|
69
|
+
height: this.$element[0].offsetHeight
|
70
|
+
})
|
71
|
+
|
72
|
+
this.$menu.css({
|
73
|
+
top: pos.top + pos.height
|
74
|
+
, left: pos.left
|
75
|
+
})
|
76
|
+
|
77
|
+
this.$menu.show()
|
78
|
+
this.shown = true
|
79
|
+
return this
|
80
|
+
}
|
81
|
+
|
82
|
+
, hide: function () {
|
83
|
+
this.$menu.hide()
|
84
|
+
this.shown = false
|
85
|
+
return this
|
86
|
+
}
|
87
|
+
|
88
|
+
, lookup: function (event) {
|
89
|
+
var that = this
|
90
|
+
, items
|
91
|
+
, q
|
92
|
+
, value
|
93
|
+
|
94
|
+
this.query = this.$element.val()
|
95
|
+
|
96
|
+
if (typeof this.source == "function")
|
97
|
+
value = this.source(this, this.query)
|
98
|
+
if (value)
|
99
|
+
this.process(value)
|
100
|
+
else
|
101
|
+
this.process(this.source)
|
102
|
+
}
|
103
|
+
|
104
|
+
, process: function (results) {
|
105
|
+
var that = this
|
106
|
+
, items
|
107
|
+
, q
|
108
|
+
|
109
|
+
if (results.length && typeof results[0] != "string")
|
110
|
+
this.strings = false
|
111
|
+
|
112
|
+
this.query = this.$element.val()
|
113
|
+
|
114
|
+
if (!this.query) {
|
115
|
+
return this.shown ? this.hide() : this
|
116
|
+
}
|
117
|
+
|
118
|
+
items = $.grep(results, function (item) {
|
119
|
+
if (!that.strings)
|
120
|
+
item = item[that.options.property]
|
121
|
+
|
122
|
+
return that.matcher(item)
|
123
|
+
})
|
124
|
+
|
125
|
+
items = this.sorter(items)
|
126
|
+
|
127
|
+
if (!items.length) {
|
128
|
+
return this.shown ? this.hide() : this
|
129
|
+
}
|
130
|
+
|
131
|
+
return this.render(items.slice(0, this.options.items)).show()
|
132
|
+
}
|
133
|
+
|
134
|
+
, matcher: function (item) {
|
135
|
+
return ~item.toLowerCase().indexOf(this.query.toLowerCase())
|
136
|
+
}
|
137
|
+
|
138
|
+
, sorter: function (items) {
|
139
|
+
var beginswith = []
|
140
|
+
, caseSensitive = []
|
141
|
+
, caseInsensitive = []
|
142
|
+
, item
|
143
|
+
, sortby
|
144
|
+
|
145
|
+
while (item = items.shift()) {
|
146
|
+
if (this.strings) sortby = item
|
147
|
+
else sortby = item[this.options.property]
|
148
|
+
|
149
|
+
if (!sortby.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item)
|
150
|
+
else if (~sortby.indexOf(this.query)) caseSensitive.push(item)
|
151
|
+
else caseInsensitive.push(item)
|
152
|
+
}
|
153
|
+
|
154
|
+
return beginswith.concat(caseSensitive, caseInsensitive)
|
155
|
+
}
|
156
|
+
|
157
|
+
, highlighter: function (item) {
|
158
|
+
var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&')
|
159
|
+
return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
|
160
|
+
return '<strong>' + match + '</strong>'
|
161
|
+
})
|
162
|
+
}
|
163
|
+
|
164
|
+
, render: function (items) {
|
165
|
+
var that = this
|
166
|
+
|
167
|
+
items = $(items).map(function (i, item) {
|
168
|
+
i = $(that.options.item).attr('data-value', JSON.stringify(item))
|
169
|
+
if (!that.strings)
|
170
|
+
item = item[that.options.property]
|
171
|
+
i.find('a').html(that.highlighter(item))
|
172
|
+
return i[0]
|
173
|
+
})
|
174
|
+
|
175
|
+
items.first().addClass('active')
|
176
|
+
this.$menu.html(items)
|
177
|
+
return this
|
178
|
+
}
|
179
|
+
|
180
|
+
, next: function (event) {
|
181
|
+
var active = this.$menu.find('.active').removeClass('active')
|
182
|
+
, next = active.next()
|
183
|
+
|
184
|
+
if (!next.length) {
|
185
|
+
next = $(this.$menu.find('li')[0])
|
186
|
+
}
|
187
|
+
|
188
|
+
next.addClass('active')
|
189
|
+
}
|
190
|
+
|
191
|
+
, prev: function (event) {
|
192
|
+
var active = this.$menu.find('.active').removeClass('active')
|
193
|
+
, prev = active.prev()
|
194
|
+
|
195
|
+
if (!prev.length) {
|
196
|
+
prev = this.$menu.find('li').last()
|
197
|
+
}
|
198
|
+
|
199
|
+
prev.addClass('active')
|
200
|
+
}
|
201
|
+
|
202
|
+
, listen: function () {
|
203
|
+
this.$element
|
204
|
+
.on('blur', $.proxy(this.blur, this))
|
205
|
+
.on('keypress', $.proxy(this.keypress, this))
|
206
|
+
.on('keyup', $.proxy(this.keyup, this))
|
207
|
+
|
208
|
+
if ($.browser.webkit || $.browser.msie) {
|
209
|
+
this.$element.on('keydown', $.proxy(this.keypress, this))
|
210
|
+
}
|
211
|
+
|
212
|
+
this.$menu
|
213
|
+
.on('click', $.proxy(this.click, this))
|
214
|
+
.on('mouseenter', 'li', $.proxy(this.mouseenter, this))
|
215
|
+
}
|
216
|
+
|
217
|
+
, keyup: function (e) {
|
218
|
+
switch(e.keyCode) {
|
219
|
+
case 40: // down arrow
|
220
|
+
case 38: // up arrow
|
221
|
+
break
|
222
|
+
|
223
|
+
case 9: // tab
|
224
|
+
case 13: // enter
|
225
|
+
if (!this.shown) return
|
226
|
+
this.select()
|
227
|
+
break
|
228
|
+
|
229
|
+
case 27: // escape
|
230
|
+
if (!this.shown) return
|
231
|
+
this.hide()
|
232
|
+
break
|
233
|
+
|
234
|
+
default:
|
235
|
+
this.lookup();
|
236
|
+
}
|
237
|
+
|
238
|
+
e.stopPropagation()
|
239
|
+
e.preventDefault()
|
240
|
+
}
|
241
|
+
|
242
|
+
, keypress: function (e) {
|
243
|
+
if (!this.shown) return
|
244
|
+
|
245
|
+
switch(e.keyCode) {
|
246
|
+
case 9: // tab
|
247
|
+
case 13: // enter
|
248
|
+
case 27: // escape
|
249
|
+
e.preventDefault()
|
250
|
+
break
|
251
|
+
|
252
|
+
case 38: // up arrow
|
253
|
+
if (e.type != 'keydown') break
|
254
|
+
e.preventDefault()
|
255
|
+
this.prev()
|
256
|
+
break
|
257
|
+
|
258
|
+
case 40: // down arrow
|
259
|
+
if (e.type != 'keydown') break
|
260
|
+
e.preventDefault()
|
261
|
+
this.next()
|
262
|
+
break
|
263
|
+
}
|
264
|
+
|
265
|
+
e.stopPropagation()
|
266
|
+
}
|
267
|
+
|
268
|
+
, blur: function (e) {
|
269
|
+
var that = this
|
270
|
+
setTimeout(function () { that.hide() }, 150)
|
271
|
+
}
|
272
|
+
|
273
|
+
, click: function (e) {
|
274
|
+
e.stopPropagation()
|
275
|
+
e.preventDefault()
|
276
|
+
this.select()
|
277
|
+
}
|
278
|
+
|
279
|
+
, mouseenter: function (e) {
|
280
|
+
this.$menu.find('.active').removeClass('active')
|
281
|
+
$(e.currentTarget).addClass('active')
|
282
|
+
}
|
283
|
+
|
284
|
+
}
|
285
|
+
|
286
|
+
|
287
|
+
/* TYPEAHEAD PLUGIN DEFINITION
|
288
|
+
* =========================== */
|
289
|
+
|
290
|
+
$.fn.typeahead = function (option) {
|
291
|
+
return this.each(function () {
|
292
|
+
var $this = $(this)
|
293
|
+
, data = $this.data('typeahead')
|
294
|
+
, options = typeof option == 'object' && option
|
295
|
+
if (!data) $this.data('typeahead', (data = new Typeahead(this, options)))
|
296
|
+
if (typeof option == 'string') data[option]()
|
297
|
+
})
|
298
|
+
}
|
299
|
+
|
300
|
+
$.fn.typeahead.defaults = {
|
301
|
+
source: []
|
302
|
+
, items: 8
|
303
|
+
, menu: '<ul class="typeahead dropdown-menu"></ul>'
|
304
|
+
, item: '<li><a href="#"></a></li>'
|
305
|
+
, onselect: null
|
306
|
+
, property: 'value'
|
307
|
+
}
|
308
|
+
|
309
|
+
$.fn.typeahead.Constructor = Typeahead
|
310
|
+
|
311
|
+
|
312
|
+
/* TYPEAHEAD DATA-API
|
313
|
+
* ================== */
|
314
|
+
|
315
|
+
$(function () {
|
316
|
+
$('body').on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) {
|
317
|
+
var $this = $(this)
|
318
|
+
if ($this.data('typeahead')) return
|
319
|
+
e.preventDefault()
|
320
|
+
$this.typeahead($this.data())
|
321
|
+
})
|
322
|
+
})
|
323
|
+
|
324
|
+
}(window.jQuery);
|
@@ -0,0 +1,267 @@
|
|
1
|
+
/* Font Awesome
|
2
|
+
the iconic font designed for use with Twitter Bootstrap
|
3
|
+
-------------------------------------------------------
|
4
|
+
The full suite of pictographic icons, examples, and documentation
|
5
|
+
can be found at: http://fortawesome.github.com/Font-Awesome/
|
6
|
+
|
7
|
+
License
|
8
|
+
-------------------------------------------------------
|
9
|
+
The Font Awesome webfont, CSS, and LESS files are licensed under CC BY 3.0:
|
10
|
+
http://creativecommons.org/licenses/by/3.0/ A mention of
|
11
|
+
'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable
|
12
|
+
source code is considered acceptable attribution (most common on the web).
|
13
|
+
If human readable source code is not available to the end user, a mention in
|
14
|
+
an 'About' or 'Credits' screen is considered acceptable (most common in desktop
|
15
|
+
or mobile software).
|
16
|
+
|
17
|
+
Contact
|
18
|
+
-------------------------------------------------------
|
19
|
+
Email: dave@davegandy.com
|
20
|
+
Twitter: http://twitter.com/fortaweso_me
|
21
|
+
Work: http://lemonwi.se co-founder
|
22
|
+
|
23
|
+
Email: matwb@ug.edu.pl
|
24
|
+
|
25
|
+
TODO: use font-url helper from the less-rails gem
|
26
|
+
*/
|
27
|
+
|
28
|
+
@font-face {
|
29
|
+
font-family: 'FontAwesome';
|
30
|
+
src: url(@fontAwesomeEotPath);
|
31
|
+
src: url('@{@fontAwesomeEotPath}?#iefix') format('embedded-opentype'),
|
32
|
+
url(@fontAwesomeWoffPath) format('woff'),
|
33
|
+
url(@fontAwesomeTtfPath) format('truetype'),
|
34
|
+
url('@{@fontAwesomeSvgzPath}#FontAwesomeRegular') format('svg'),
|
35
|
+
url('@{@fontAwesomeSvgPath}#FontAwesomeRegular') format('svg');
|
36
|
+
font-weight: normal;
|
37
|
+
font-style: normal;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* sprites.less reset */
|
41
|
+
[class^="icon-"],
|
42
|
+
[class*=" icon-"] {
|
43
|
+
display: inline;
|
44
|
+
width: auto;
|
45
|
+
height: auto;
|
46
|
+
line-height: inherit;
|
47
|
+
vertical-align: baseline;
|
48
|
+
background-image: none;
|
49
|
+
background-position: 0% 0%;
|
50
|
+
background-repeat: repeat;
|
51
|
+
}
|
52
|
+
li[class^="icon-"],
|
53
|
+
li[class*=" icon-"] {
|
54
|
+
display: block;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* Font Awesome styles
|
58
|
+
------------------------------------------------------- */
|
59
|
+
[class^="icon-"]:before,
|
60
|
+
[class*=" icon-"]:before {
|
61
|
+
font-family: FontAwesome;
|
62
|
+
font-weight: normal;
|
63
|
+
font-style: normal;
|
64
|
+
display: inline-block;
|
65
|
+
text-decoration: inherit;
|
66
|
+
}
|
67
|
+
|
68
|
+
a [class^="icon-"],
|
69
|
+
a [class*=" icon-"] {
|
70
|
+
display: inline-block;
|
71
|
+
text-decoration: inherit;
|
72
|
+
}
|
73
|
+
|
74
|
+
/* makes the font 33% larger relative to the icon container */
|
75
|
+
.icon-large:before {
|
76
|
+
vertical-align: top;
|
77
|
+
font-size: 4/3em;
|
78
|
+
}
|
79
|
+
|
80
|
+
.btn {
|
81
|
+
[class^="icon-"],
|
82
|
+
[class*=" icon-"] {
|
83
|
+
/* keeps button heights with and without icons the same */
|
84
|
+
line-height: .9em;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
li {
|
89
|
+
[class^="icon-"],
|
90
|
+
[class*=" icon-"] {
|
91
|
+
display: inline-block;
|
92
|
+
width: 1.25em;
|
93
|
+
text-align: center;
|
94
|
+
}
|
95
|
+
.icon-large[class^="icon-"],
|
96
|
+
.icon-large[class*=" icon-"] {
|
97
|
+
/* 1.5 increased font size for icon-large * 1.25 width */
|
98
|
+
width: 1.5*1.25em;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
li[class^="icon-"],
|
103
|
+
li[class*=" icon-"] {
|
104
|
+
margin-left: 0;
|
105
|
+
list-style-type: none;
|
106
|
+
|
107
|
+
&:before {
|
108
|
+
text-indent: -2em;
|
109
|
+
text-align: center;
|
110
|
+
}
|
111
|
+
&.icon-large:before {
|
112
|
+
text-indent: -4/3em;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
117
|
+
readers do not read off random characters that represent icons */
|
118
|
+
.icon-glass:before { content: "\f000"; }
|
119
|
+
.icon-music:before { content: "\f001"; }
|
120
|
+
.icon-search:before { content: "\f002"; }
|
121
|
+
.icon-envelope:before { content: "\f003"; }
|
122
|
+
.icon-heart:before { content: "\f004"; }
|
123
|
+
.icon-star:before { content: "\f005"; }
|
124
|
+
.icon-star-empty:before { content: "\f006"; }
|
125
|
+
.icon-user:before { content: "\f007"; }
|
126
|
+
.icon-film:before { content: "\f008"; }
|
127
|
+
.icon-th-large:before { content: "\f009"; }
|
128
|
+
.icon-th:before { content: "\f00a"; }
|
129
|
+
.icon-th-list:before { content: "\f00b"; }
|
130
|
+
.icon-ok:before { content: "\f00c"; }
|
131
|
+
.icon-remove:before { content: "\f00d"; }
|
132
|
+
.icon-zoom-in:before { content: "\f00e"; }
|
133
|
+
|
134
|
+
.icon-zoom-out:before { content: "\f010"; }
|
135
|
+
.icon-off:before { content: "\f011"; }
|
136
|
+
.icon-signal:before { content: "\f012"; }
|
137
|
+
.icon-cog:before { content: "\f013"; }
|
138
|
+
.icon-trash:before { content: "\f014"; }
|
139
|
+
.icon-home:before { content: "\f015"; }
|
140
|
+
.icon-file:before { content: "\f016"; }
|
141
|
+
.icon-time:before { content: "\f017"; }
|
142
|
+
.icon-road:before { content: "\f018"; }
|
143
|
+
.icon-download-alt:before { content: "\f019"; }
|
144
|
+
.icon-download:before { content: "\f01a"; }
|
145
|
+
.icon-upload:before { content: "\f01b"; }
|
146
|
+
.icon-inbox:before { content: "\f01c"; }
|
147
|
+
.icon-play-circle:before { content: "\f01d"; }
|
148
|
+
.icon-repeat:before { content: "\f01e"; }
|
149
|
+
|
150
|
+
/* \f020 is not a valid unicode character. all shifted one down */
|
151
|
+
.icon-refresh:before { content: "\f021"; }
|
152
|
+
.icon-list-alt:before { content: "\f022"; }
|
153
|
+
.icon-lock:before { content: "\f023"; }
|
154
|
+
.icon-flag:before { content: "\f024"; }
|
155
|
+
.icon-headphones:before { content: "\f025"; }
|
156
|
+
.icon-volume-off:before { content: "\f026"; }
|
157
|
+
.icon-volume-down:before { content: "\f027"; }
|
158
|
+
.icon-volume-up:before { content: "\f028"; }
|
159
|
+
.icon-qrcode:before { content: "\f029"; }
|
160
|
+
.icon-barcode:before { content: "\f02a"; }
|
161
|
+
.icon-tag:before { content: "\f02b"; }
|
162
|
+
.icon-tags:before { content: "\f02c"; }
|
163
|
+
.icon-book:before { content: "\f02d"; }
|
164
|
+
.icon-bookmark:before { content: "\f02e"; }
|
165
|
+
.icon-print:before { content: "\f02f"; }
|
166
|
+
|
167
|
+
.icon-camera:before { content: "\f030"; }
|
168
|
+
.icon-font:before { content: "\f031"; }
|
169
|
+
.icon-bold:before { content: "\f032"; }
|
170
|
+
.icon-italic:before { content: "\f033"; }
|
171
|
+
.icon-text-height:before { content: "\f034"; }
|
172
|
+
.icon-text-width:before { content: "\f035"; }
|
173
|
+
.icon-align-left:before { content: "\f036"; }
|
174
|
+
.icon-align-center:before { content: "\f037"; }
|
175
|
+
.icon-align-right:before { content: "\f038"; }
|
176
|
+
.icon-align-justify:before { content: "\f039"; }
|
177
|
+
.icon-list:before { content: "\f03a"; }
|
178
|
+
.icon-indent-left:before { content: "\f03b"; }
|
179
|
+
.icon-indent-right:before { content: "\f03c"; }
|
180
|
+
.icon-facetime-video:before { content: "\f03d"; }
|
181
|
+
.icon-picture:before { content: "\f03e"; }
|
182
|
+
|
183
|
+
.icon-pencil:before { content: "\f040"; }
|
184
|
+
.icon-map-marker:before { content: "\f041"; }
|
185
|
+
.icon-adjust:before { content: "\f042"; }
|
186
|
+
.icon-tint:before { content: "\f043"; }
|
187
|
+
.icon-edit:before { content: "\f044"; }
|
188
|
+
.icon-share:before { content: "\f045"; }
|
189
|
+
.icon-check:before { content: "\f046"; }
|
190
|
+
.icon-move:before { content: "\f047"; }
|
191
|
+
.icon-step-backward:before { content: "\f048"; }
|
192
|
+
.icon-fast-backward:before { content: "\f049"; }
|
193
|
+
.icon-backward:before { content: "\f04a"; }
|
194
|
+
.icon-play:before { content: "\f04b"; }
|
195
|
+
.icon-pause:before { content: "\f04c"; }
|
196
|
+
.icon-stop:before { content: "\f04d"; }
|
197
|
+
.icon-forward:before { content: "\f04e"; }
|
198
|
+
|
199
|
+
.icon-fast-forward:before { content: "\f050"; }
|
200
|
+
.icon-step-forward:before { content: "\f051"; }
|
201
|
+
.icon-eject:before { content: "\f052"; }
|
202
|
+
.icon-chevron-left:before { content: "\f053"; }
|
203
|
+
.icon-chevron-right:before { content: "\f054"; }
|
204
|
+
.icon-plus-sign:before { content: "\f055"; }
|
205
|
+
.icon-minus-sign:before { content: "\f056"; }
|
206
|
+
.icon-remove-sign:before { content: "\f057"; }
|
207
|
+
.icon-ok-sign:before { content: "\f058"; }
|
208
|
+
.icon-question-sign:before { content: "\f059"; }
|
209
|
+
.icon-info-sign:before { content: "\f05a"; }
|
210
|
+
.icon-screenshot:before { content: "\f05b"; }
|
211
|
+
.icon-remove-circle:before { content: "\f05c"; }
|
212
|
+
.icon-ok-circle:before { content: "\f05d"; }
|
213
|
+
.icon-ban-circle:before { content: "\f05e"; }
|
214
|
+
|
215
|
+
.icon-arrow-left:before { content: "\f060"; }
|
216
|
+
.icon-arrow-right:before { content: "\f061"; }
|
217
|
+
.icon-arrow-up:before { content: "\f062"; }
|
218
|
+
.icon-arrow-down:before { content: "\f063"; }
|
219
|
+
.icon-share-alt:before { content: "\f064"; }
|
220
|
+
.icon-resize-full:before { content: "\f065"; }
|
221
|
+
.icon-resize-small:before { content: "\f066"; }
|
222
|
+
.icon-plus:before { content: "\f067"; }
|
223
|
+
.icon-minus:before { content: "\f068"; }
|
224
|
+
.icon-asterisk:before { content: "\f069"; }
|
225
|
+
.icon-exclamation-sign:before { content: "\f06a"; }
|
226
|
+
.icon-gift:before { content: "\f06b"; }
|
227
|
+
.icon-leaf:before { content: "\f06c"; }
|
228
|
+
.icon-fire:before { content: "\f06d"; }
|
229
|
+
.icon-eye-open:before { content: "\f06e"; }
|
230
|
+
|
231
|
+
.icon-eye-close:before { content: "\f070"; }
|
232
|
+
.icon-warning-sign:before { content: "\f071"; }
|
233
|
+
.icon-plane:before { content: "\f072"; }
|
234
|
+
.icon-calendar:before { content: "\f073"; }
|
235
|
+
.icon-random:before { content: "\f074"; }
|
236
|
+
.icon-comment:before { content: "\f075"; }
|
237
|
+
.icon-magnet:before { content: "\f076"; }
|
238
|
+
.icon-chevron-up:before { content: "\f077"; }
|
239
|
+
.icon-chevron-down:before { content: "\f078"; }
|
240
|
+
.icon-retweet:before { content: "\f079"; }
|
241
|
+
.icon-shopping-cart:before { content: "\f07a"; }
|
242
|
+
.icon-folder-close:before { content: "\f07b"; }
|
243
|
+
.icon-folder-open:before { content: "\f07c"; }
|
244
|
+
.icon-resize-vertical:before { content: "\f07d"; }
|
245
|
+
.icon-resize-horizontal:before { content: "\f07e"; }
|
246
|
+
|
247
|
+
.icon-bar-chart:before { content: "\f080"; }
|
248
|
+
.icon-twitter-sign:before { content: "\f081"; }
|
249
|
+
.icon-facebook-sign:before { content: "\f082"; }
|
250
|
+
.icon-camera-retro:before { content: "\f083"; }
|
251
|
+
.icon-key:before { content: "\f084"; }
|
252
|
+
.icon-cogs:before { content: "\f085"; }
|
253
|
+
.icon-comments:before { content: "\f086"; }
|
254
|
+
.icon-thumbs-up:before { content: "\f087"; }
|
255
|
+
.icon-thumbs-down:before { content: "\f088"; }
|
256
|
+
.icon-star-half:before { content: "\f089"; }
|
257
|
+
.icon-heart-empty:before { content: "\f08a"; }
|
258
|
+
.icon-signout:before { content: "\f08b"; }
|
259
|
+
.icon-linkedin-sign:before { content: "\f08c"; }
|
260
|
+
.icon-pushpin:before { content: "\f08d"; }
|
261
|
+
.icon-external-link:before { content: "\f08e"; }
|
262
|
+
|
263
|
+
.icon-signin:before { content: "\f090"; }
|
264
|
+
.icon-trophy:before { content: "\f091"; }
|
265
|
+
.icon-github-sign:before { content: "\f092"; }
|
266
|
+
.icon-upload-alt:before { content: "\f093"; }
|
267
|
+
.icon-lemon:before { content: "\f094"; }
|