spurs 0.0.5.alpha.1 → 0.0.5.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/javascripts/spurs/beyond_bootstrap/responsive-tables.js +6 -6
- data/app/assets/javascripts/spurs/beyond_bootstrap.js +3 -3
- data/app/assets/stylesheets/spurs/beyond_bootsrap/responsive-tables.css.sass +25 -24
- data/lib/spurs/flash/helper.rb +1 -1
- data/lib/spurs/version.rb +1 -1
- metadata +3 -3
@@ -15,24 +15,24 @@ $(document).ready(function() {
|
|
15
15
|
});
|
16
16
|
}
|
17
17
|
};
|
18
|
-
|
18
|
+
|
19
19
|
$(window).load(updateTables);
|
20
20
|
$(window).bind("resize", updateTables);
|
21
|
-
|
22
|
-
|
21
|
+
|
22
|
+
|
23
23
|
function splitTable(original)
|
24
24
|
{
|
25
25
|
original.wrap("<div class='table-wrapper' />");
|
26
|
-
|
26
|
+
|
27
27
|
var copy = original.clone();
|
28
28
|
copy.find("td:not(.pin_for_mobile), th:not(.pin_for_mobile)").css("display", "none");
|
29
29
|
copy.removeClass("responsive");
|
30
|
-
|
30
|
+
|
31
31
|
original.closest(".table-wrapper").append(copy);
|
32
32
|
copy.wrap("<div class='pinned' />");
|
33
33
|
original.wrap("<div class='scrollable' />");
|
34
34
|
}
|
35
|
-
|
35
|
+
|
36
36
|
function unsplitTable(original) {
|
37
37
|
original.closest(".table-wrapper").find(".pinned").remove();
|
38
38
|
original.unwrap();
|
@@ -6,31 +6,32 @@ table
|
|
6
6
|
@media only screen and (max-width: 767px)
|
7
7
|
table.responsive
|
8
8
|
margin-bottom: 0
|
9
|
-
.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
9
|
+
.table-wrapper
|
10
|
+
.scrollable, .pinned
|
11
|
+
table
|
12
|
+
td, th
|
13
|
+
line-height: 21px
|
14
|
+
.pinned
|
15
|
+
position: absolute
|
16
|
+
left: 0
|
17
|
+
top: 0
|
18
|
+
background: #fff
|
19
|
+
width: 200px
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
21
|
+
overflow: hidden
|
22
|
+
overflow-x: scroll
|
23
|
+
//border-right: 1px solid #ccc
|
24
|
+
//border-left: 1px solid #ccc
|
25
|
+
table
|
26
|
+
border-right: none
|
27
|
+
border-left: none
|
28
|
+
width: 100%
|
29
|
+
.show_for_pinned
|
30
|
+
display: table-cell
|
31
|
+
.hide_for_pinned
|
32
|
+
display: none
|
33
|
+
th, td
|
34
|
+
white-space: nowrap
|
34
35
|
|
35
36
|
div.table-wrapper
|
36
37
|
position: relative
|
data/lib/spurs/flash/helper.rb
CHANGED
data/lib/spurs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spurs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5.alpha.
|
4
|
+
version: 0.0.5.alpha.2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
segments:
|
189
189
|
- 0
|
190
|
-
hash: -
|
190
|
+
hash: -1938495796542850974
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
192
|
none: false
|
193
193
|
requirements:
|