flashoff 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/fonts/ionicons/ionicons.eot +0 -0
- data/app/assets/fonts/ionicons/ionicons.svg +471 -238
- data/app/assets/fonts/ionicons/ionicons.ttf +0 -0
- data/app/assets/fonts/ionicons/ionicons.woff +0 -0
- data/lib/flashoff/version.rb +1 -1
- data/vendor/assets/javascripts/file_input.js +7 -7
- data/vendor/assets/stylesheets/button.css.scss +19 -4
- data/vendor/assets/stylesheets/form.css.scss +13 -14
- data/vendor/assets/stylesheets/icon.css.scss +626 -468
- data/vendor/assets/stylesheets/reset.css.scss +2 -3
- metadata +2 -2
Binary file
|
Binary file
|
data/lib/flashoff/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
$(function() {
|
2
2
|
|
3
|
-
$('input[type=file].btn-file').each(function(i,
|
3
|
+
$('input[type=file].btn-file').each(function(i,el){
|
4
4
|
|
5
5
|
// Maybe some fields don't need to be standardized.
|
6
6
|
if (typeof $(this).attr('data-bfi-disabled') != 'undefined') {
|
@@ -14,13 +14,13 @@ $('input[type=file].btn-file').each(function(i,elem){
|
|
14
14
|
buttonWord = $(this).attr('title');
|
15
15
|
}
|
16
16
|
|
17
|
-
// Start by getting the HTML of the input
|
17
|
+
// Start by getting the HTML of the input elent.
|
18
18
|
// Thanks for the tip http://stackoverflow.com/a/1299069
|
19
|
-
var input = $('<div>').append( $(
|
19
|
+
var input = $('<div>').append( $(el).eq(0).clone() ).html();
|
20
20
|
|
21
21
|
// Now we're going to replace that input field with a Bootstrap button.
|
22
22
|
// The input will actually still be there, it will just be float above and transparent (done with the CSS).
|
23
|
-
$(
|
23
|
+
$(el).replaceWith('<a class="btn btn-small btn-outline btn-block btn-file">'+buttonWord+input+'</a>');
|
24
24
|
})
|
25
25
|
// After we have found all of the file inputs let's apply a listener for tracking the mouse movement.
|
26
26
|
// This is important because the in order to give the illusion that this is a button in FF we actually need to move the button from the file input under the cursor. Ugh.
|
@@ -35,9 +35,9 @@ $('input[type=file].btn-file').each(function(i,elem){
|
|
35
35
|
inputWidth, inputHeight,
|
36
36
|
cursorX, cursorY;
|
37
37
|
|
38
|
-
// This wrapper
|
38
|
+
// This wrapper elent (the button surround this file input)
|
39
39
|
wrapper = $(this);
|
40
|
-
// The invisible file input
|
40
|
+
// The invisible file input elent
|
41
41
|
input = wrapper.find("input");
|
42
42
|
// The left-most position of the wrapper
|
43
43
|
wrapperX = wrapper.offset().left;
|
@@ -80,7 +80,7 @@ $('input[type=file].btn-file').each(function(i,elem){
|
|
80
80
|
// This ensures they can be easily overridden with developer styles
|
81
81
|
var cssHtml = '<style>'+
|
82
82
|
'.btn-file { overflow: hidden; position: relative; cursor: pointer; z-index: 1; }'+
|
83
|
-
'.btn-file input[type=file], .btn-file input[type=file]:focus, .btn-file input[type=file]:hover { position: absolute; top: 0; left: 0; cursor: pointer; opacity: 0;
|
83
|
+
'.btn-file input[type=file], .btn-file input[type=file]:focus, .btn-file input[type=file]:hover { position: absolute; top: 0; left: 0; cursor: pointer; opacity: 0; z-index: 99; outline: 0; }'+
|
84
84
|
'.btn-file-name { margin-left: 8px; }'+
|
85
85
|
'</style>';
|
86
86
|
$('link[rel=stylesheet]').eq(0).before(cssHtml);
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#Button
|
4
4
|
#Button Sizes
|
5
5
|
#Button Colors
|
6
|
+
#Button Links
|
6
7
|
#Button Icons
|
7
8
|
#Button Outlines
|
8
9
|
#Button Group
|
@@ -48,7 +49,7 @@
|
|
48
49
|
border-radius: 2px;
|
49
50
|
font-size: 11px;
|
50
51
|
line-height: 11px;
|
51
|
-
padding:
|
52
|
+
padding: 8px 15px;
|
52
53
|
}
|
53
54
|
.btn-mini {
|
54
55
|
border-radius: 2px;
|
@@ -90,6 +91,20 @@ input.btn-block {
|
|
90
91
|
}
|
91
92
|
.btn-red:hover { background: rgba(210,64,46,1); }
|
92
93
|
|
94
|
+
/* #Button Links
|
95
|
+
================================================== */
|
96
|
+
.btn-link {
|
97
|
+
background: none;
|
98
|
+
border: none;
|
99
|
+
margin-top: 12px;
|
100
|
+
padding: 0;
|
101
|
+
}
|
102
|
+
.btn-link:hover { background: none; }
|
103
|
+
.btn-link.btn-large { margin-top: 17px; }
|
104
|
+
.btn-link.btn-small { margin-top: 8px; }
|
105
|
+
.btn-link.btn-mini { margin-top: 6px; }
|
106
|
+
.btn-link.btn-link-clean { margin-top: 0; }
|
107
|
+
|
93
108
|
/* #Button Icons
|
94
109
|
================================================== */
|
95
110
|
.btn-icon {
|
@@ -105,7 +120,7 @@ input.btn-block {
|
|
105
120
|
.btn-small.btn-icon {
|
106
121
|
font-size: 14px;
|
107
122
|
line-height: 14px;
|
108
|
-
padding:
|
123
|
+
padding: 8px 9px 6px 8px;
|
109
124
|
}
|
110
125
|
.btn-mini.btn-icon {
|
111
126
|
font-size: 11px;
|
@@ -127,11 +142,11 @@ input.btn-block {
|
|
127
142
|
color: rgba(71,74,84,1);
|
128
143
|
}
|
129
144
|
.btn-large.btn-outline { padding: 14px 29px 16px 29px; }
|
130
|
-
.btn-small.btn-outline { padding:
|
145
|
+
.btn-small.btn-outline { padding: 7px 14px 8px 14px; }
|
131
146
|
.btn-mini.btn-outline { padding: 5px 14px 6px 14px; }
|
132
147
|
.btn-outline.btn-icon { padding: 10px 12px 9px 12px; }
|
133
148
|
.btn-large.btn-icon.btn-outline { padding: 11px 13px 11px 13px; }
|
134
|
-
.btn-small.btn-icon.btn-outline { padding:
|
149
|
+
.btn-small.btn-icon.btn-outline { padding: 6px 7px 6px 6px; }
|
135
150
|
.btn-mini.btn-icon.btn-outline { padding: 4px 6px 4px 6px; }
|
136
151
|
|
137
152
|
/* #Button Group
|
@@ -23,7 +23,7 @@ label {
|
|
23
23
|
display: block;
|
24
24
|
font-size: 14px;
|
25
25
|
font-weight: bold;
|
26
|
-
margin: 5px 0
|
26
|
+
margin: 5px 0 5px 0;
|
27
27
|
}
|
28
28
|
textarea,
|
29
29
|
input[type="text"],
|
@@ -51,7 +51,7 @@ input[type="color"],
|
|
51
51
|
color: rgba(43,50,53,1);
|
52
52
|
display: block;
|
53
53
|
font-size: 16px;
|
54
|
-
margin:
|
54
|
+
margin-bottom: 5px;
|
55
55
|
padding: 13px 0 10px 0;
|
56
56
|
text-indent: 10px;
|
57
57
|
-webkit-transition: border linear 0.2s;
|
@@ -60,7 +60,6 @@ input[type="color"],
|
|
60
60
|
vertical-align: middle;
|
61
61
|
}
|
62
62
|
textarea { height: 140px; }
|
63
|
-
.textarea-large { height: 200px; }
|
64
63
|
textarea:focus,
|
65
64
|
input[type="text"]:focus,
|
66
65
|
input[type="password"]:focus,
|
@@ -89,12 +88,6 @@ input[type="checkbox"] {
|
|
89
88
|
margin-top: 1px \9;
|
90
89
|
line-height: normal;
|
91
90
|
}
|
92
|
-
input[type="submit"] { margin-top: 10px; }
|
93
|
-
input[type="submit"].form-button-inline {
|
94
|
-
margin-top: -5px;
|
95
|
-
padding-bottom: 13px;
|
96
|
-
padding-top: 12px;
|
97
|
-
}
|
98
91
|
input[type="file"],
|
99
92
|
input[type="image"],
|
100
93
|
input[type="submit"],
|
@@ -117,14 +110,13 @@ select {
|
|
117
110
|
border-radius: 2px;
|
118
111
|
color: rgba(33,40,43,1);
|
119
112
|
font-size: 100%;
|
120
|
-
margin-bottom:
|
113
|
+
margin-bottom: 5px;
|
121
114
|
padding: 13px 0 10px 15px;
|
122
115
|
text-indent: 0;
|
123
116
|
text-transform: capitalize;
|
124
117
|
width: 100%;
|
125
118
|
vertical-align: middle;
|
126
119
|
}
|
127
|
-
.form-select-inline { margin-top: -5px; }
|
128
120
|
select[multiple] {
|
129
121
|
border-radius: 2px;
|
130
122
|
padding-left: 10px;
|
@@ -193,16 +185,23 @@ select:focus:invalid:focus { border-color: rgba(254,79,50,1); }
|
|
193
185
|
.form-error-messages li:first-child { padding-top: 10px; }
|
194
186
|
.form-error-messages li:last-child { padding-bottom: 10px; }
|
195
187
|
.form-img { margin-top: -5px; }
|
188
|
+
.form-textarea-large { height: 200px; }
|
196
189
|
.form-input-inline {
|
197
190
|
display: inline-block;
|
198
191
|
margin-right: 10px;
|
199
192
|
}
|
200
|
-
.form-text-inline { margin-top:
|
193
|
+
.form-text-inline { margin-top: 13px; }
|
194
|
+
.form-select-inline { margin-top: 0px; }
|
201
195
|
.form-help-block {
|
202
196
|
color: rgba(158,171,179,1);
|
203
197
|
display: block;
|
204
198
|
font-size: 12px;
|
205
|
-
margin:
|
199
|
+
margin-bottom: 15px;
|
200
|
+
}
|
201
|
+
.form-button-inline {
|
202
|
+
margin-top: 2px;
|
203
|
+
padding-bottom: 13px;
|
204
|
+
padding-top: 12px;
|
206
205
|
}
|
207
206
|
.form-footer {
|
208
207
|
border-top: 1px solid rgba(236,238,241,1);
|
@@ -214,6 +213,6 @@ select:focus:invalid:focus { border-color: rgba(254,79,50,1); }
|
|
214
213
|
/* #Media Queries
|
215
214
|
================================================== */
|
216
215
|
@media only screen and (max-width: 767px) {
|
217
|
-
|
216
|
+
.form-button-inline { margin-top: 15px; }
|
218
217
|
.form-text-inline { margin-top: 0; }
|
219
218
|
}
|