less-rails-bootstrap 1.3.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,12 +11,10 @@ table {
11
11
  width: 100%;
12
12
  margin-bottom: @baseline;
13
13
  padding: 0;
14
- border-collapse: separate; // Done so we can round those corners!
15
- *border-collapse: collapse; /* IE7, collapse table to remove spacing */
16
14
  font-size: @basefont;
17
- border: 1px solid #ddd;
18
- .border-radius(4px);
19
- th, td {
15
+ border-collapse: collapse;
16
+ th,
17
+ td {
20
18
  padding: 10px 10px 9px;
21
19
  line-height: @baseline;
22
20
  text-align: left;
@@ -25,21 +23,47 @@ table {
25
23
  padding-top: 9px;
26
24
  font-weight: bold;
27
25
  vertical-align: middle;
28
- border-bottom: 1px solid #ddd;
29
26
  }
30
27
  td {
31
28
  vertical-align: top;
29
+ border-top: 1px solid #ddd;
32
30
  }
31
+ // When scoped to row, fix th in tbody
32
+ tbody th {
33
+ border-top: 1px solid #ddd;
34
+ vertical-align: top;
35
+ }
36
+ }
37
+
38
+
39
+ // CONDENSED VERSION
40
+ // -----------------
41
+ .condensed-table {
42
+ th,
43
+ td {
44
+ padding: 5px 5px 4px;
45
+ }
46
+ }
47
+
48
+
49
+ // BORDERED VERSION
50
+ // ----------------
51
+
52
+ .bordered-table {
53
+ border: 1px solid #ddd;
54
+ border-collapse: separate; // Done so we can round those corners!
55
+ *border-collapse: collapse; /* IE7, collapse table to remove spacing */
56
+ .border-radius(4px);
33
57
  th + th,
34
- td + td {
58
+ td + td,
59
+ th + td {
35
60
  border-left: 1px solid #ddd;
36
61
  }
37
- tr + tr td {
38
- border-top: 1px solid #ddd;
39
- }
62
+ thead tr:first-child th:first-child,
40
63
  tbody tr:first-child td:first-child {
41
64
  .border-radius(4px 0 0 0);
42
65
  }
66
+ thead tr:first-child th:last-child,
43
67
  tbody tr:first-child td:last-child {
44
68
  .border-radius(0 4px 0 0);
45
69
  }
@@ -52,16 +76,46 @@ table {
52
76
  }
53
77
 
54
78
 
79
+ // TABLE CELL SIZES
80
+ // ----------------
81
+
82
+ // This is a duplication of the main grid .columns() mixin, but subtracts 20px to account for input padding and border
83
+ .tableColumns(@columnSpan: 1) {
84
+ width: ((@gridColumnWidth - 20) * @columnSpan) + ((@gridColumnWidth - 20) * (@columnSpan - 1));
85
+ }
86
+ table {
87
+ // Default columns
88
+ .span1 { .tableColumns(1); }
89
+ .span2 { .tableColumns(2); }
90
+ .span3 { .tableColumns(3); }
91
+ .span4 { .tableColumns(4); }
92
+ .span5 { .tableColumns(5); }
93
+ .span6 { .tableColumns(6); }
94
+ .span7 { .tableColumns(7); }
95
+ .span8 { .tableColumns(8); }
96
+ .span9 { .tableColumns(9); }
97
+ .span10 { .tableColumns(10); }
98
+ .span11 { .tableColumns(11); }
99
+ .span12 { .tableColumns(12); }
100
+ .span13 { .tableColumns(13); }
101
+ .span14 { .tableColumns(14); }
102
+ .span15 { .tableColumns(15); }
103
+ .span16 { .tableColumns(16); }
104
+ }
105
+
106
+
55
107
  // ZEBRA-STRIPING
56
108
  // --------------
57
109
 
58
110
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
59
111
  .zebra-striped {
60
112
  tbody {
61
- tr:nth-child(odd) td {
113
+ tr:nth-child(odd) td,
114
+ tr:nth-child(odd) th {
62
115
  background-color: #f9f9f9;
63
116
  }
64
- tr:hover td {
117
+ tr:hover td,
118
+ tr:hover th {
65
119
  background-color: #f5f5f5;
66
120
  }
67
121
  }
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
9
- - 3
10
- version: 1.3.3
8
+ - 4
9
+ version: "1.4"
11
10
  platform: ruby
12
11
  authors:
13
12
  - Ken Collins
@@ -15,13 +14,14 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-10-09 00:00:00 -04:00
17
+ date: 2011-11-05 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: less-rails
22
+ type: :runtime
23
23
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ~>
@@ -32,12 +32,12 @@ dependencies:
32
32
  - 0
33
33
  - 0
34
34
  version: 2.0.0
35
- type: :runtime
36
- version_requirements: *id001
35
+ requirement: *id001
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: minitest
38
+ type: :development
39
39
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ">="
@@ -46,12 +46,12 @@ dependencies:
46
46
  segments:
47
47
  - 0
48
48
  version: "0"
49
- type: :development
50
- version_requirements: *id002
49
+ requirement: *id002
51
50
  - !ruby/object:Gem::Dependency
52
51
  name: guard-minitest
52
+ type: :development
53
53
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ">="
@@ -60,12 +60,12 @@ dependencies:
60
60
  segments:
61
61
  - 0
62
62
  version: "0"
63
- type: :development
64
- version_requirements: *id003
63
+ requirement: *id003
65
64
  - !ruby/object:Gem::Dependency
66
65
  name: rails
66
+ type: :development
67
67
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
71
  - - ~>
@@ -76,8 +76,7 @@ dependencies:
76
76
  - 1
77
77
  - 1
78
78
  version: 3.1.1
79
- type: :development
80
- version_requirements: *id004
79
+ requirement: *id004
81
80
  description: CSS toolkit from Twitter For Rails 3.1 Asset Pipeline
82
81
  email:
83
82
  - ken@metaskills.net
@@ -111,6 +110,7 @@ files:
111
110
  - test/spec_helper.rb
112
111
  - vendor/assets/javascripts/twitter/bootstrap.js
113
112
  - vendor/assets/javascripts/twitter/bootstrap/alerts.js
113
+ - vendor/assets/javascripts/twitter/bootstrap/buttons.js
114
114
  - vendor/assets/javascripts/twitter/bootstrap/dropdown.js
115
115
  - vendor/assets/javascripts/twitter/bootstrap/modal.js
116
116
  - vendor/assets/javascripts/twitter/bootstrap/popover.js