css3-microsoft-metro-buttons-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # Css3::Microsoft::Metro::Buttons::Rails
2
+
3
+ Just a bundle of the [ace-subido's](https://github.com/ace-subido) [css3-microsoft-metro-buttons](https://github.com/ace-subido/css3-microsoft-metro-buttons) project to use with Ruby on Rails projects.
4
+
5
+ Based on version 1.1.0 of the original project.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'css3-microsoft-metro-buttons-rails'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install css3-microsoft-metro-buttons-rails
20
+
21
+ ## Usage
22
+
23
+ Add to your `application.css` file:
24
+
25
+ *= require_self
26
+ *= require m-buttons
27
+ *= require m-forms
28
+ *= require bootstrap_and_overrides
29
+ *= require m-icons
30
+
31
+ You can swap the order of the requires, the last file required could override others styles from others. (as normal css)
32
+
33
+ And to your `application.js`:
34
+
35
+ //= require jquery
36
+ //= require jquery_ujs
37
+ //= require twitter/bootstrap
38
+ //= require m-dropdown
39
+ //= require m-radio
40
+ //= require turbolinks
41
+ //= require_tree .
42
+
43
+ I pasted all the requires, so you can see the order that I use here and works just fine.
44
+
45
+
46
+ ## Contributing
47
+
48
+ 1. Fork it
49
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
50
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
51
+ 4. Push to the branch (`git push origin my-new-feature`)
52
+ 5. Create new Pull Request
53
+
54
+
55
+ ## License
56
+
57
+ Same as the original project.
58
+
59
+ <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.
@@ -0,0 +1,14 @@
1
+ require "css3-microsoft-metro-buttons-rails/version"
2
+
3
+ module Css3
4
+ module Microsoft
5
+ module Metro
6
+ module Buttons
7
+ module Rails
8
+ class Engine < ::Rails::Engine
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ module Css3
2
+ module Microsoft
3
+ module Metro
4
+ module Buttons
5
+ module Rails
6
+ VERSION = "0.0.1"
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,95 @@
1
+ /* ============================================================
2
+ * bootstrap-dropdown.js v2.0.0
3
+ * http://twitter.github.com/bootstrap/javascript.html#dropdowns
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"
24
+
25
+ /* DROPDOWN CLASS DEFINITION
26
+ * ========================= */
27
+
28
+ var toggle = '[data-toggle="dropdown"]'
29
+ , Dropdown = function ( element ) {
30
+ var $el = $(element).on('click.dropdown.data-api', this.toggle)
31
+ $('html').on('click.dropdown.data-api', function () {
32
+ $el.parent().removeClass('open')
33
+ })
34
+ }
35
+
36
+ Dropdown.prototype = {
37
+
38
+ constructor: Dropdown
39
+
40
+ , toggle: function ( e ) {
41
+ var $this = $(this)
42
+ , selector = $this.attr('data-target')
43
+ , $parent
44
+ , isActive
45
+
46
+ if (!selector) {
47
+ selector = $this.attr('href')
48
+ selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
49
+ }
50
+
51
+ $parent = $(selector)
52
+ $parent.length || ($parent = $this.parent())
53
+
54
+ isActive = $parent.hasClass('open')
55
+
56
+ clearMenus()
57
+ !isActive && $parent.toggleClass('open')
58
+
59
+ return false
60
+ }
61
+
62
+ }
63
+
64
+ function clearMenus() {
65
+ $(toggle).parent().removeClass('open')
66
+ }
67
+
68
+
69
+ /* DROPDOWN PLUGIN DEFINITION
70
+ * ========================== */
71
+
72
+ $.fn.dropdown = function ( option ) {
73
+ return this.each(function () {
74
+ var $this = $(this)
75
+ , data = $this.data('dropdown')
76
+ if (!data) $this.data('dropdown', (data = new Dropdown(this)))
77
+ if (typeof option == 'string') data[option].call($this)
78
+ })
79
+ }
80
+
81
+ $.fn.dropdown.Constructor = Dropdown
82
+
83
+
84
+ /* APPLY TO STANDARD DROPDOWN ELEMENTS
85
+ * =================================== */
86
+
87
+ function init_metro_dropdown() {
88
+ $('html').on('click.dropdown.data-api', clearMenus)
89
+ $('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
90
+ }
91
+
92
+ $(init_metro_dropdown);
93
+ $(document).on('page:load', init_metro_dropdown);
94
+
95
+ }( window.jQuery )
@@ -0,0 +1,14 @@
1
+ !function ($) {
2
+
3
+ "use strict"
4
+
5
+ function init_metro_radio() {
6
+ $(".toggle-buttons > .m-btn").click(function() {
7
+ $(this).siblings(".m-btn").removeClass("active");
8
+ $(this).addClass("active");
9
+ });
10
+ }
11
+
12
+ $(init_metro_radio);
13
+ $(document).on('page:load', init_metro_radio);
14
+ }(window.jQuery);
@@ -0,0 +1,640 @@
1
+ /*!
2
+ * CSS3 Microsoft Metro Buttons
3
+ * Inspired by Tim O'Donnell's CSS3 Google Buttons, Twitter Bootstrap, and Microsoft. Icons from glyphicons.com and Syncfusion's Metro Studio.
4
+ * I do not claim ownership on the origin of design and icons.
5
+ * Built by Ace Subido (http://github.com/ace-subido)
6
+ */
7
+ article,
8
+ aside,
9
+ details,
10
+ figcaption,
11
+ figure,
12
+ footer,
13
+ header,
14
+ hgroup,
15
+ nav,
16
+ section {
17
+ display: block;
18
+ }
19
+ audio, canvas, video {
20
+ display: inline-block;
21
+ *display: inline;
22
+ *zoom: 1;
23
+ }
24
+ audio:not([controls]) {
25
+ display: none;
26
+ }
27
+ html {
28
+ font-size: 100%;
29
+ -webkit-text-size-adjust: 100%;
30
+ -ms-text-size-adjust: 100%;
31
+ }
32
+ a:focus {
33
+ outline: thin dotted;
34
+ outline: 5px auto -webkit-focus-ring-color;
35
+ outline-offset: -2px;
36
+ }
37
+ a:hover, a:active {
38
+ outline: 0;
39
+ }
40
+ sub, sup {
41
+ position: relative;
42
+ font-size: 75%;
43
+ line-height: 0;
44
+ vertical-align: baseline;
45
+ }
46
+ sup {
47
+ top: -0.5em;
48
+ }
49
+ sub {
50
+ bottom: -0.25em;
51
+ }
52
+ img {
53
+ max-width: 100%;
54
+ height: auto;
55
+ border: 0;
56
+ -ms-interpolation-mode: bicubic;
57
+ }
58
+ button,
59
+ input,
60
+ select,
61
+ textarea {
62
+ margin: 0;
63
+ font-size: 100%;
64
+ /*vertical-align: middle;*/
65
+
66
+ }
67
+ button, input {
68
+ *overflow: visible;
69
+ line-height: normal;
70
+ }
71
+ button::-moz-focus-inner, input::-moz-focus-inner {
72
+ padding: 0;
73
+ border: 0;
74
+ }
75
+ button,
76
+ input[type="button"],
77
+ input[type="reset"],
78
+ input[type="submit"] {
79
+ cursor: pointer;
80
+ -webkit-appearance: button;
81
+ -moz-appearance: none;
82
+ }
83
+ /* overrides button presets for mozilla clients*/
84
+ @-moz-document url-prefix() {
85
+ button,
86
+ input[type="button"],
87
+ input[type="reset"],
88
+ input[type="submit"] {
89
+ cursor: pointer;
90
+ padding: 6px 14px;
91
+ }
92
+ }
93
+ input[type="search"] {
94
+ -webkit-appearance: textfield;
95
+ -webkit-box-sizing: content-box;
96
+ -moz-box-sizing: content-box;
97
+ box-sizing: content-box;
98
+ }
99
+ input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
100
+ -webkit-appearance: none;
101
+ }
102
+ textarea {
103
+ overflow: auto;
104
+ vertical-align: top;
105
+ }
106
+ .dropdown {
107
+ position: relative;
108
+ }
109
+ .dropdown-toggle {
110
+ *margin-bottom: -3px;
111
+ }
112
+ .dropdown-toggle:active, .open .dropdown-toggle {
113
+ outline: 0;
114
+ }
115
+
116
+ .caret {
117
+ display: inline-block;
118
+ width: 0;
119
+ height: 0;
120
+ text-indent: -99999px;
121
+ *text-indent: 0;
122
+ vertical-align: top;
123
+ margin-top: 5px;
124
+ margin-left: 2px;
125
+ margin-right: 2px;
126
+ border-left: 4px solid transparent;
127
+ border-right: 4px solid transparent;
128
+ border-top: 4px solid black;
129
+ opacity: 0.5;
130
+ filter: alpha(opacity=50);
131
+ content: "\2193";
132
+ }
133
+ .caret.white{
134
+ border-left: 4px solid transparent;
135
+ border-right: 4px solid transparent;
136
+ border-top: 4px solid white;
137
+ opacity: 0.95;
138
+ filter: alpha(opacity=95);
139
+ }
140
+ .dropdown .caret {
141
+ margin-top: 8px;
142
+ margin-left: 2px;
143
+ }
144
+
145
+ .dropdown:hover .caret, .open.dropdown .caret {
146
+ opacity: 1;
147
+ filter: alpha(opacity=100);
148
+ }
149
+
150
+ .m-dropdown-menu {
151
+ position: absolute;
152
+ top: 98%;
153
+ left: 0;
154
+ z-index: 1000;
155
+ float: left;
156
+ display: none;
157
+ min-width: 225px;
158
+ max-width: 225px;
159
+ padding: 0 0 6px 0;
160
+ margin: 0 0 0;
161
+ list-style: none;
162
+ background-color: white;
163
+
164
+ -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
165
+ -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
166
+ box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
167
+
168
+ font-size: 14px;
169
+ font-family: "Segoe UI",Helvetica, Arial, sans-serif;
170
+
171
+ border: 1px solid #eeeeee;
172
+
173
+ }
174
+
175
+ .m-dropdown-menu.bottom-up {
176
+ top: auto;
177
+ bottom: 100%;
178
+ margin-bottom: 2px;
179
+ }
180
+
181
+ .m-dropdown-menu .divider {
182
+ border-top: 1px solid #ebebeb;
183
+ margin-top: 9px;
184
+ margin-bottom: 10px;
185
+ padding: 0;
186
+ cursor: default;
187
+ }
188
+ .m-dropdown-menu a {
189
+ position: relative;
190
+ padding: 6px 0 6px 30px;
191
+ color: #333;
192
+ text-decoration: none;
193
+ display: block;
194
+ clear: both;
195
+ font-weight: normal;
196
+ line-height: 18px;
197
+ white-space: nowrap;
198
+ }
199
+ .m-dropdown-menu a [class^="icon-"] {
200
+ position: absolute;
201
+ left: 7px;
202
+ top: 9px;
203
+ }
204
+ .m-dropdown-menu li > a:hover, .m-dropdown-menu .active > a, .m-dropdown-menu .active > a:hover {
205
+ text-decoration: none;
206
+ background-color: #eee;
207
+ }
208
+ .dropdown.open {
209
+ *z-index: 1000;
210
+ }
211
+ .dropdown.open .dropdown-toggle {
212
+ color: #08c;
213
+ background: #ccc;
214
+ background: rgba(0, 0, 0, 0.3);
215
+ }
216
+ .dropdown.open .m-dropdown-menu {
217
+ display: block;
218
+ }
219
+
220
+ .m-btn {
221
+ position: relative;
222
+ display: inline-block;
223
+ overflow: visible;
224
+ margin: 0;
225
+ padding: 10px 14px;
226
+ margin-top: 8px;
227
+ cursor: pointer;
228
+ outline: none;
229
+ border: none;
230
+ background-color: #eeeeee;
231
+ background-image: -moz-linear-gradient(top, #eeeeee, #eeeeee);
232
+ background-image: -ms-linear-gradient(top, #eeeeee, #eeeeee);
233
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), to(#eeeeee));
234
+ background-image: -webkit-linear-gradient(top, #eeeeee, #eeeeee);
235
+ background-image: -o-linear-gradient(top, #eeeeee, #eeeeee);
236
+ background-image: linear-gradient(top, #eeeeee, #eeeeee);
237
+ background-repeat: repeat-x;
238
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#eeeeee', GradientType=0);
239
+ -webkit-background-clip: padding;
240
+ -moz-background-clip: padding;
241
+ background-clip: padding;
242
+ /* IE hacks */
243
+
244
+ zoom: 1;
245
+ z-index: 1;
246
+ *display: inline;
247
+ font-family: "Segoe UI", Helvetica, Arial, sans-serif;
248
+ font-size: 14px;
249
+ line-height: 14px;
250
+ color: #333333;
251
+ min-width: 42px;
252
+
253
+ text-shadow: #ffffff 0 1px 0;
254
+ text-align: center;
255
+ text-decoration: none;
256
+ white-space: nowrap;
257
+
258
+ vertical-align: inherit;
259
+ }
260
+ .m-btn:hover,
261
+ .m-btn:focus,
262
+ .m-btn:active,
263
+ .m-btn.active {
264
+ color: #333;
265
+ text-decoration: none;
266
+ background-color: #dcdcdc;
267
+ background-image: -moz-linear-gradient(top, #dcdcdc, #dcdcdc);
268
+ background-image: -ms-linear-gradient(top, #dcdcdc, #dcdcdc);
269
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dcdcdc), to(#dcdcdc));
270
+ background-image: -webkit-linear-gradient(top, #dcdcdc, #dcdcdc);
271
+ background-image: -o-linear-gradient(top, #dcdcdc, #dcdcdc);
272
+ background-image: linear-gradient(top, #dcdcdc, #dcdcdc);
273
+ background-repeat: repeat-x;
274
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc', endColorstr='#dcdcdc', GradientType=0);
275
+ z-index: 100;
276
+ outline: none;
277
+ }
278
+ .m-btn:active, .m-btn.active {
279
+ background-color: #eeeeee;
280
+ background-image: -moz-linear-gradient(top, #eeeeee, #dcdcdc);
281
+ background-image: -ms-linear-gradient(top, #eeeeee, #dcdcdc);
282
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), to(#dcdcdc));
283
+ background-image: -webkit-linear-gradient(top, #eeeeee, #dcdcdc);
284
+ background-image: -o-linear-gradient(top, #eeeeee, #dcdcdc);
285
+ background-image: linear-gradient(top, #eeeeee, #dcdcdc);
286
+ background-repeat: repeat-x;
287
+ -webkit-box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
288
+ -moz-box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
289
+ box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
290
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dcdcdc', GradientType=0);
291
+ }
292
+ .m-btn:focus {
293
+ /* Blue border on button focus. */
294
+ border-color: #4D90FE;
295
+ }
296
+ /* overrides extra padding on button elements in Firefox */
297
+ .m-btn::-moz-focus-inner {
298
+ padding: 0;
299
+ border: 0;
300
+ }
301
+
302
+
303
+ .m-btn.red-stripe
304
+ {
305
+ border-left: 3px solid #d84a38;
306
+ }
307
+
308
+ .m-btn.blue-stripe
309
+ {
310
+ border-left: 3px solid #4d90fe;
311
+ }
312
+
313
+ .m-btn.purple-stripe
314
+ {
315
+ border-left: 3px solid #852b99;
316
+ }
317
+
318
+ .m-btn.green-stripe
319
+ {
320
+ border-left: 3px solid #35aa47;
321
+ }
322
+
323
+ /* Common button classes */
324
+ .m-btn.red:active,
325
+ .m-btn.red.active,
326
+ .m-btn.red.disabled,
327
+ .m-btn.red[disabled],
328
+ .m-btn.blue:active,
329
+ .m-btn.blue.active,
330
+ .m-btn.blue.disabled,
331
+ .m-btn.blue[disabled],
332
+ .m-btn.purple:active,
333
+ .m-btn.purple.active,
334
+ .m-btn.purple.disabled,
335
+ .m-btn.purple[disabled],
336
+ .m-btn.green:active,
337
+ .m-btn.green.active,
338
+ .m-btn.green.disabled,
339
+ .m-btn.green[disabled]{
340
+ -webkit-box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
341
+ -moz-box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
342
+ box-shadow: inset 0 1px 8px rgba(0, 0, 0, 0.25);
343
+ color: white !important;
344
+ }
345
+ .m-btn.red.disabled,
346
+ .m-btn.red[disabled],
347
+ .m-btn.blue.disabled,
348
+ .m-btn.blue[disabled],
349
+ .m-btn.purple.disabled,
350
+ .m-btn.purple[disabled],
351
+ .m-btn.green.disabled,
352
+ .m-btn.green[disabled]{
353
+ opacity: .7;
354
+ }
355
+
356
+ /* Red */
357
+ .m-btn.red {
358
+ color: white;
359
+ text-shadow: none;
360
+ background-color: #d84a38;
361
+ background-image: -moz-linear-gradient(top, #dd4b39, #d14836);
362
+ background-image: -ms-linear-gradient(top, #dd4b39, #d14836);
363
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dd4b39), to(#d14836));
364
+ background-image: -webkit-linear-gradient(top, #dd4b39, #d14836);
365
+ background-image: -o-linear-gradient(top, #dd4b39, #d14836);
366
+ background-image: linear-gradient(top, #dd4b39, #d14836);
367
+ background-repeat: repeat-x;
368
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dd4b39', endColorstr='#d14836', GradientType=0);
369
+ }
370
+ .m-btn.red:hover,
371
+ .m-btn.red:focus,
372
+ .m-btn.red:active,
373
+ .m-btn.red.active,
374
+ .m-btn.red[disabled],
375
+ .m-btn.red.disabled {
376
+ background-color: #c53727;
377
+ background-image: -moz-linear-gradient(top, #c53727, #c53727);
378
+ background-image: -ms-linear-gradient(top, #c53727, #c53727);
379
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#c53727), to(#c53727));
380
+ background-image: -webkit-linear-gradient(top, #c53727, #c53727);
381
+ background-image: -o-linear-gradient(top, #c53727, #c53727);
382
+ background-image: linear-gradient(top, #c53727, #c53727);
383
+ background-repeat: repeat-x;
384
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c53727', endColorstr='#c53727', GradientType=0);
385
+ }
386
+
387
+
388
+ .m-btn.red:active,
389
+ .m-btn.red.active
390
+ {
391
+ background-color: #dd4b39;
392
+ background-image: -moz-linear-gradient(top, #dd4b39, #c53727);
393
+ background-image: -ms-linear-gradient(top, #dd4b39, #c53727);
394
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#dd4b39), to(#c53727));
395
+ background-image: -webkit-linear-gradient(top, #dd4b39, #c53727);
396
+ background-image: -o-lineark-gradient(top, #dd4b39, #c53727);
397
+ background-image: linear-gradient(top, #dd4b39, #c53727);
398
+ background-repeat: repeat-x;
399
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#dd4b39', endColorstr='#c53727', GradientType=0);
400
+
401
+ }
402
+
403
+ /* Blue */
404
+ .m-btn.blue
405
+ {
406
+ color: white;
407
+ text-shadow: none;
408
+ background-color: #4d90fe;
409
+ background-image: -moz-linear-gradient(top, #4d90fe, #4787ed);
410
+ background-image: -ms-linear-gradient(top, #4d90fe, #4787ed);
411
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#4787ed));
412
+ background-image: -webkit-linear-gradient(top, #4d90fe, #4787ed);
413
+ background-image: -o-linear-gradient(top, #4d90fe, #4787ed);
414
+ background-image: linear-gradient(top, #4d90fe, #4787ed);
415
+ background-repeat: repeat-x;
416
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4d90fe', endColorstr='#4787ed', GradientType=0);
417
+ }
418
+ .m-btn.blue:hover,
419
+ .m-btn.blue:focus,
420
+ .m-btn.blue:active,
421
+ .m-btn.blue.active,
422
+ .m-btn.blue[disabled],
423
+ .m-btn.blue.disabled {
424
+ background-color: #0072bb;
425
+ background-image: -moz-linear-gradient(top, #0072bb, #0072bb);
426
+ background-image: -ms-linear-gradient(top, #0072bb, #0072bb);
427
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0072bb), to(#0072bb));
428
+ background-image: -webkit-linear-gradient(top, #0072bb, #0072bb);
429
+ background-image: -o-linear-gradient(top, #0072bb, #0072bb);
430
+ background-image: linear-gradient(top, #0072bb, #0072bb);
431
+ background-repeat: repeat-x;
432
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0072bb', endColorstr='#0072bb', GradientType=0);
433
+ }
434
+
435
+ .m-btn.blue:active,
436
+ .m-btn.blue.active
437
+ {
438
+ background-color: #4d90fe;
439
+ background-image: -moz-linear-gradient(top, #4d90fe, #0072bb);
440
+ background-image: -ms-linear-gradient(top, #4d90fe, #0072bb);
441
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#4d90fe), to(#0072bb));
442
+ background-image: -webkit-linear-gradient(top, #4d90fe, #0072bb);
443
+ background-image: -o-linear-gradient(top, #4d90fe, #0072bb);
444
+ background-image: linear-gradient(top, #4d90fe, #0072bb);
445
+ background-repeat: repeat-x;
446
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4d90fe', endColorstr='#0072bb', GradientType=0);
447
+
448
+ }
449
+ /* Green */
450
+ .m-btn.green {
451
+ color: white;
452
+ text-shadow: none;
453
+ background-color: #35aa47;
454
+ background-image: -moz-linear-gradient(top, #35aa47, #35aa47);
455
+ background-image: -ms-linear-gradient(top, #35aa47, #35aa47);
456
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#35aa47), to(#35aa47));
457
+ background-image: -webkit-linear-gradient(top, #35aa47, #35aa47);
458
+ background-image: -o-linear-gradient(top, #35aa47, #35aa47);
459
+ background-image: linear-gradient(top, #35aa47, #35aa47);
460
+ background-repeat: repeat-x;
461
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#35aa47', endColorstr='#35aa47', GradientType=0);
462
+ }
463
+ .m-btn.green:hover,
464
+ .m-btn.green:focus,
465
+ .m-btn.green:active,
466
+ .m-btn.green.active,
467
+ .m-btn.green.disabled,
468
+ .m-btn.green[disabled]{
469
+ background-color: #1d943b;
470
+ background-image: -moz-linear-gradient(top, #1d943b, #1d943b);
471
+ background-image: -ms-linear-gradient(top, #1d943b, #1d943b);
472
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1d943b), to(#1d943b));
473
+ background-image: -webkit-linear-gradient(top, #1d943b, #1d943b);
474
+ background-image: -o-linear-gradient(top, #1d943b, #1d943b);
475
+ background-image: linear-gradient(top, #1d943b, #1d943b);
476
+ background-repeat: repeat-x;
477
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#1d943b', endColorstr='#1d943b', GradientType=0);
478
+ }
479
+
480
+ .m-btn.green:active,
481
+ .m-btn.green.active
482
+ {
483
+ background-color: #35aa47;
484
+ background-image: -moz-linear-gradient(top, #35aa47, #1d943b);
485
+ background-image: -ms-linear-gradient(top, #35aa47, #1d943b);
486
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#35aa47), to(#1d943b));
487
+ background-image: -webkit-linear-gradient(top, #35aa47, #1d943b);
488
+ background-image: -o-linear-gradient(top, #35aa47, #1d943b);
489
+ background-image: linear-gradient(top, #35aa47, #1d943b);
490
+ background-repeat: repeat-x;
491
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#35aa47', endColorstr='#1d943b', GradientType=0);
492
+
493
+ }
494
+ /* Purple */
495
+ .m-btn.purple {
496
+ color: white;
497
+ text-shadow: none;
498
+ background-color: #852b99;
499
+ background-image: -moz-linear-gradient(top, #852b99, #852b99);
500
+ background-image: -ms-linear-gradient(top, #852b99, #852b99);
501
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#852b99), to(#852b99));
502
+ background-image: -webkit-linear-gradient(top, #852b99, #852b99);
503
+ background-image: -o-linear-gradient(top, #852b99, #852b99);
504
+ background-image: linear-gradient(top, #852b99, #852b99);
505
+ background-repeat: repeat-x;
506
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#852b99', endColorstr='#852b99', GradientType=0);
507
+ }
508
+ .m-btn.purple:hover,
509
+ .m-btn.purple:focus,
510
+ .m-btn.purple:active,
511
+ .m-btn.purple.active,
512
+ .m-btn.purple.disabled,
513
+ .m-btn.purple[disabled] {
514
+ background-color: #6d1b81;
515
+ background-image: -moz-linear-gradient(top, #6d1b81, #6d1b81);
516
+ background-image: -ms-linear-gradient(top, #6d1b81, #6d1b81);
517
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#6d1b81), to(#6d1b81));
518
+ background-image: -webkit-linear-gradient(top, #6d1b81, #6d1b81);
519
+ background-image: -o-linear-gradient(top, #6d1b81, #6d1b81);
520
+ background-image: linear-gradient(top, #6d1b81, #6d1b81);
521
+ background-repeat: repeat-x;
522
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6d1b81', endColorstr='#6d1b81', GradientType=0);
523
+ }
524
+
525
+ .m-btn.purple:active,
526
+ .m-btn.purple.active
527
+ {
528
+ background-color: #35aa47;
529
+ background-image: -moz-linear-gradient(top, #852b99, #6d1b81);
530
+ background-image: -ms-linear-gradient(top, #852b99, #6d1b81);
531
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#852b99), to(#6d1b81));
532
+ background-image: -webkit-linear-gradient(top, #852b99, #6d1b81);
533
+ background-image: -o-linear-gradient(top, #852b99, #6d1b81);
534
+ background-image: linear-gradient(top, #852b99, #6d1b81);
535
+ background-repeat: repeat-x;
536
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#852b99', endColorstr='#6d1b81', GradientType=0);
537
+
538
+ }
539
+ /* Mini-button */
540
+ .sm {
541
+ font-size: 11px;
542
+ }
543
+ .mini {
544
+ height: 13px;
545
+ font-size: 11px;
546
+ line-height: 13px;
547
+ padding: 4px 10px;
548
+ }
549
+ .big{
550
+ height: 38px;
551
+ font-size: 18px;
552
+ line-height: 38px;
553
+ padding: 20px 26px;
554
+ }
555
+
556
+ /* Disabled */
557
+ .m-btn.disabled, .m-btn[disabled] {
558
+ color: #999999;
559
+ background-color: #f5f5f5;
560
+ background-image: -moz-linear-gradient(top, #eeeeee, #dddddd);
561
+ background-image: -ms-linear-gradient(top, #eeeeee, #dddddd);
562
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#eeeeee), to(#dddddd));
563
+ background-image: -webkit-linear-gradient(top, #eeeeee, #dddddd);
564
+ background-image: -o-linear-gradient(top, #eeeeee, #dddddd);
565
+ background-image: linear-gradient(top, #eeeeee, #dddddd);
566
+ background-repeat: repeat-x;
567
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#dddddd', GradientType=0);
568
+ cursor: default;
569
+ -webkit-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.25);
570
+ -moz-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.25);
571
+ box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.25);
572
+ }
573
+ /* Misc */
574
+ .m-btn.icn-only {
575
+ min-width: 14px;
576
+ }
577
+ .m-btn.bigicn-only {
578
+ min-width: 34px;
579
+ }
580
+ .m-btn-group {
581
+ position: relative;
582
+ display: inline-block;
583
+ list-style: none;
584
+ padding: 0;
585
+ margin: 0;
586
+ /* IE hacks */
587
+
588
+ zoom: 1;
589
+ *display: inline;
590
+ }
591
+ .m-btn + .m-btn,
592
+ .m-btn + .m-btn-group,
593
+ .m-btn-group + .m-btn,
594
+ .m-btn-group + .m-btn-group {
595
+ margin-left: 15px;
596
+ }
597
+
598
+ .m-btn.dropdown-carettoggle {
599
+ min-width: 5px;
600
+ height: 18px;
601
+ padding: 8px;
602
+ }
603
+ .m-btn.dropdown-carettoggle > .caret {
604
+ margin-top: 8px;
605
+ }
606
+ .m-btn.caret:hover {
607
+ opacity: 1;
608
+ }
609
+ .m-btn-group .m-btn {
610
+ position: relative;
611
+ float: left;
612
+ margin-left: -1px;
613
+ -webkit-border-radius: 0;
614
+ -moz-border-radius: 0;
615
+ border-radius: 0;
616
+ }
617
+ .m-btn-group .m-btn:first-child {
618
+ margin-left: 0;
619
+ }
620
+ /* BUTTON CONTAINER */
621
+ /* For mixing buttons and button groups, e.g., in a navigation bar */
622
+ .m-btn-strip .m-btn, .m-btn-strip .m-btn-group {
623
+ vertical-align: top;
624
+ }
625
+ .m-btn-group.open {
626
+ *z-index: 1000;
627
+ }
628
+
629
+ .m-btn-group.open .dropdown-carettoggle,
630
+ .m-btn-group.open .dropdown-toggle {
631
+ background-image: none;
632
+ -webkit-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
633
+ -moz-box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
634
+ box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
635
+ }
636
+
637
+ .m-btn-group.open .m-dropdown-menu {
638
+ display: block;
639
+ margin-top: 1px;
640
+ }