compass-bootstrap-rails 0.1.3.3 → 0.1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +24 -24
- data/compass-bootstrap-rails.gemspec +0 -1
- data/lib/compass-bootstrap-rails/version.rb +1 -1
- data/stylesheets/compass-bootstrap/_forms.scss +47 -35
- data/stylesheets/compass-bootstrap/_mixins.scss +111 -96
- data/stylesheets/compass-bootstrap/_patterns.scss +141 -86
- data/stylesheets/compass-bootstrap/_scaffolding.scss +29 -30
- data/stylesheets/compass-bootstrap/_tables.scss +71 -19
- data/stylesheets/compass-bootstrap/_type.scss +3 -3
- data/stylesheets/compass-bootstrap/_variables.scss +34 -34
- data/vendor/assets/javascripts/bootstrap-alerts.js +19 -10
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -13
- data/vendor/assets/javascripts/bootstrap-modal.js +75 -42
- data/vendor/assets/javascripts/bootstrap-popover.js +16 -7
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +4 -2
- data/vendor/assets/javascripts/bootstrap-tabs.js +26 -8
- data/vendor/assets/javascripts/bootstrap-twipsy.js +17 -14
- data/vendor/assets/stylesheets/compass-bootstrap/_forms.scss +47 -35
- data/vendor/assets/stylesheets/compass-bootstrap/_mixins.scss +111 -96
- data/vendor/assets/stylesheets/compass-bootstrap/_patterns.scss +141 -86
- data/vendor/assets/stylesheets/compass-bootstrap/_scaffolding.scss +29 -30
- data/vendor/assets/stylesheets/compass-bootstrap/_tables.scss +71 -19
- data/vendor/assets/stylesheets/compass-bootstrap/_type.scss +3 -3
- data/vendor/assets/stylesheets/compass-bootstrap/_variables.scss +34 -34
- metadata +10 -4
@@ -7,10 +7,8 @@
|
|
7
7
|
// STRUCTURAL LAYOUT
|
8
8
|
// -----------------
|
9
9
|
|
10
|
-
html, body {
|
11
|
-
background-color: $white;
|
12
|
-
}
|
13
10
|
body {
|
11
|
+
background-color: $white;
|
14
12
|
margin: 0;
|
15
13
|
@include font-sans-serif(normal,$basefont,$baseline);
|
16
14
|
color: $grayDark;
|
@@ -28,26 +26,17 @@ body {
|
|
28
26
|
padding-right: 20px;
|
29
27
|
@include clearfix();
|
30
28
|
> .sidebar {
|
31
|
-
|
29
|
+
position: absolute;
|
30
|
+
top: 0;
|
31
|
+
left: 20px;
|
32
32
|
width: 220px;
|
33
33
|
}
|
34
34
|
// TODO in v2: rename this and .popover .content to be more specific
|
35
35
|
> .content {
|
36
|
-
|
37
|
-
min-width: 700px;
|
38
|
-
max-width: 1180px;
|
39
|
-
margin-left: 20px;
|
36
|
+
margin-left: 240px;
|
40
37
|
}
|
41
38
|
}
|
42
39
|
|
43
|
-
// Toggling content
|
44
|
-
.hide {
|
45
|
-
display: none;
|
46
|
-
}
|
47
|
-
.show {
|
48
|
-
display: block;
|
49
|
-
}
|
50
|
-
|
51
40
|
|
52
41
|
// BASE STYLES
|
53
42
|
// -----------
|
@@ -72,6 +61,14 @@ a {
|
|
72
61
|
float: left;
|
73
62
|
}
|
74
63
|
|
64
|
+
// Toggling content
|
65
|
+
.hide {
|
66
|
+
display: none;
|
67
|
+
}
|
68
|
+
.show {
|
69
|
+
display: block;
|
70
|
+
}
|
71
|
+
|
75
72
|
|
76
73
|
// GRID SYSTEM
|
77
74
|
// -----------
|
@@ -79,12 +76,12 @@ a {
|
|
79
76
|
|
80
77
|
.row {
|
81
78
|
@include clearfix();
|
82
|
-
margin-left:
|
79
|
+
margin-left: -$gridGutterWidth;
|
83
80
|
}
|
84
81
|
|
85
82
|
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
|
86
83
|
// Credit to $dhg for the idea
|
87
|
-
[class*="span"] {
|
84
|
+
.row > [class*="span"] {
|
88
85
|
@include gridColumn();
|
89
86
|
}
|
90
87
|
|
@@ -117,18 +114,20 @@ a {
|
|
117
114
|
.span24 { @include columns(24); }
|
118
115
|
|
119
116
|
// Offset column options
|
120
|
-
.
|
121
|
-
.
|
122
|
-
.
|
123
|
-
.
|
124
|
-
.
|
125
|
-
.
|
126
|
-
.
|
127
|
-
.
|
128
|
-
.
|
129
|
-
.
|
130
|
-
.
|
131
|
-
.
|
117
|
+
.row {
|
118
|
+
& > .offset1 { @include offset(1); }
|
119
|
+
& > .offset2 { @include offset(2); }
|
120
|
+
& > .offset3 { @include offset(3); }
|
121
|
+
& > .offset4 { @include offset(4); }
|
122
|
+
& > .offset5 { @include offset(5); }
|
123
|
+
& > .offset6 { @include offset(6); }
|
124
|
+
& > .offset7 { @include offset(7); }
|
125
|
+
& > .offset8 { @include offset(8); }
|
126
|
+
& > .offset9 { @include offset(9); }
|
127
|
+
& > .offset10 { @include offset(10); }
|
128
|
+
& > .offset11 { @include offset(11); }
|
129
|
+
& > .offset12 { @include offset(12); }
|
130
|
+
}
|
132
131
|
|
133
132
|
// Unique column sizes for 16-column grid
|
134
133
|
.span-one-third { width: 300px; }
|
@@ -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:
|
18
|
-
|
19
|
-
|
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,47 +23,104 @@ 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-bottom: 1px solid #ddd;
|
30
|
+
}
|
31
|
+
// When scoped to row, fix th in tbody
|
32
|
+
tbody th {
|
33
|
+
border-top: 1px solid #ddd;
|
34
|
+
vertical-align: top;
|
32
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
|
+
@import 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
|
-
|
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
|
+
@import 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
|
+
@import border-radius(0 4px 0 0);
|
45
69
|
}
|
46
70
|
tbody tr:last-child td:first-child {
|
47
|
-
@
|
71
|
+
@import border-radius(0 0 0 4px);
|
48
72
|
}
|
49
73
|
tbody tr:last-child td:last-child {
|
50
|
-
@
|
74
|
+
@import border-radius(0 0 4px 0);
|
51
75
|
}
|
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
|
+
@mixin tableColumns(@columnSpan: 1) {
|
84
|
+
width: ((@gridColumnWidth - 20) * @columnSpan) + ((@gridColumnWidth - 20) * (@columnSpan - 1));
|
85
|
+
}
|
86
|
+
table {
|
87
|
+
// Default columns
|
88
|
+
.span1 { @import tableColumns(1); }
|
89
|
+
.span2 { @import tableColumns(2); }
|
90
|
+
.span3 { @import tableColumns(3); }
|
91
|
+
.span4 { @import tableColumns(4); }
|
92
|
+
.span5 { @import tableColumns(5); }
|
93
|
+
.span6 { @import tableColumns(6); }
|
94
|
+
.span7 { @import tableColumns(7); }
|
95
|
+
.span8 { @import tableColumns(8); }
|
96
|
+
.span9 { @import tableColumns(9); }
|
97
|
+
.span10 { @import tableColumns(10); }
|
98
|
+
.span11 { @import tableColumns(11); }
|
99
|
+
.span12 { @import tableColumns(12); }
|
100
|
+
.span13 { @import tableColumns(13); }
|
101
|
+
.span14 { @import tableColumns(14); }
|
102
|
+
.span15 { @import tableColumns(15); }
|
103
|
+
.span16 { @import 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
|
}
|
68
122
|
|
123
|
+
table {
|
69
124
|
// Tablesorting styles w/ jQuery plugin
|
70
125
|
.header {
|
71
126
|
cursor: pointer;
|
@@ -111,9 +166,6 @@ table {
|
|
111
166
|
@include opacity(60);
|
112
167
|
}
|
113
168
|
}
|
114
|
-
}
|
115
|
-
|
116
|
-
table {
|
117
169
|
// Blue Table Headings
|
118
170
|
.blue {
|
119
171
|
color: $blue;
|
@@ -7,7 +7,7 @@
|
|
7
7
|
// ---------
|
8
8
|
|
9
9
|
p {
|
10
|
-
@include
|
10
|
+
@include shorthand(normal,$basefont,$baseline);
|
11
11
|
margin-bottom: $baseline / 2;
|
12
12
|
small {
|
13
13
|
font-size: $basefont - 2;
|
@@ -138,12 +138,12 @@ blockquote {
|
|
138
138
|
border-left: 5px solid #eee;
|
139
139
|
padding-left: 15px;
|
140
140
|
p {
|
141
|
-
@include
|
141
|
+
@include shorthand(300,14px,$baseline);
|
142
142
|
margin-bottom: 0;
|
143
143
|
}
|
144
144
|
small {
|
145
145
|
display: block;
|
146
|
-
@include
|
146
|
+
@include shorthand(300,12px,$baseline);
|
147
147
|
color: $grayLight;
|
148
148
|
&:before {
|
149
149
|
content: '\2014 \00A0';
|
@@ -4,51 +4,51 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
// Links
|
7
|
-
$linkColor: #0069d6
|
8
|
-
$linkColorHover: darken($linkColor, 15)
|
7
|
+
$linkColor: #0069d6;
|
8
|
+
$linkColorHover: darken($linkColor, 15);
|
9
9
|
|
10
10
|
// Grays
|
11
|
-
$black: #000
|
12
|
-
$grayDark: lighten($black, 25%)
|
13
|
-
$gray: lighten($black, 50%)
|
14
|
-
$grayLight: lighten($black, 75%)
|
15
|
-
$grayLighter: lighten($black, 90%)
|
16
|
-
$white: #fff
|
11
|
+
$black: #000;
|
12
|
+
$grayDark: lighten($black, 25%);
|
13
|
+
$gray: lighten($black, 50%);
|
14
|
+
$grayLight: lighten($black, 75%);
|
15
|
+
$grayLighter: lighten($black, 90%);
|
16
|
+
$white: #fff;
|
17
17
|
|
18
18
|
// Accent Colors
|
19
|
-
$blue: #049CDB
|
20
|
-
$blueDark: #0064CD
|
21
|
-
$green: #46a546
|
22
|
-
$red: #9d261d
|
23
|
-
$yellow: #ffc40d
|
24
|
-
$orange: #f89406
|
25
|
-
$pink: #c3325f
|
26
|
-
$purple: #7a43b6
|
19
|
+
$blue: #049CDB;
|
20
|
+
$blueDark: #0064CD;
|
21
|
+
$green: #46a546;
|
22
|
+
$red: #9d261d;
|
23
|
+
$yellow: #ffc40d;
|
24
|
+
$orange: #f89406;
|
25
|
+
$pink: #c3325f;
|
26
|
+
$purple: #7a43b6;
|
27
27
|
|
28
28
|
// Baseline grid
|
29
|
-
$basefont: 13px
|
30
|
-
$baseline: 18px
|
29
|
+
$basefont: 13px;
|
30
|
+
$baseline: 18px;
|
31
31
|
|
32
32
|
// Griditude
|
33
33
|
// Modify the grid styles in mixins.less
|
34
|
-
$gridColumns: 16
|
35
|
-
$gridColumnWidth: 40px
|
36
|
-
$gridGutterWidth: 20px
|
37
|
-
$extraSpace: ($gridGutterWidth * 2)
|
38
|
-
$siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1))
|
34
|
+
$gridColumns: 16;
|
35
|
+
$gridColumnWidth: 40px;
|
36
|
+
$gridGutterWidth: 20px;
|
37
|
+
$extraSpace: ($gridGutterWidth * 2); // For our grid calculations
|
38
|
+
$siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
39
39
|
|
40
40
|
// Color Scheme
|
41
41
|
// Use this to roll your own color schemes if you like (unused by Bootstrap by default)
|
42
|
-
$baseColor: $blue
|
43
|
-
$complement: spin($baseColor, 180)
|
44
|
-
$split1: spin($baseColor, 158)
|
45
|
-
$split2: spin($baseColor, -158)
|
46
|
-
$triad1: spin($baseColor, 135)
|
47
|
-
$triad2: spin($baseColor, -135)
|
48
|
-
$tetra1: spin($baseColor, 90)
|
49
|
-
$tetra2: spin($baseColor, -90)
|
50
|
-
$analog1: spin($baseColor, 22)
|
51
|
-
$analog2: spin($baseColor, -22)
|
42
|
+
$baseColor: $blue; // Set a base color
|
43
|
+
$complement: spin($baseColor, 180); // Determine a complementary color
|
44
|
+
$split1: spin($baseColor, 158); // Split complements
|
45
|
+
$split2: spin($baseColor, -158);
|
46
|
+
$triad1: spin($baseColor, 135); // Triads colors
|
47
|
+
$triad2: spin($baseColor, -135);
|
48
|
+
$tetra1: spin($baseColor, 90); // Tetra colors
|
49
|
+
$tetra2: spin($baseColor, -90);
|
50
|
+
$analog1: spin($baseColor, 22); // Analogs colors
|
51
|
+
$analog2: spin($baseColor, -22);
|
52
52
|
|
53
53
|
|
54
54
|
|
@@ -56,5 +56,5 @@ $analog2: spin($baseColor, -22) !default;
|
|
56
56
|
// - $basefont to $baseFontSize
|
57
57
|
// - $baseline to $baseLineHeight
|
58
58
|
// - $baseFontFamily
|
59
|
-
// - $primaryButtonColor
|
59
|
+
@include // - $primaryButtonColor
|
60
60
|
// - anything else? File an issue on GitHub
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-bootstrap-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-09-12 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: compass
|
17
|
-
requirement: &
|
17
|
+
requirement: &70119121834740 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.10.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70119121834740
|
26
26
|
description: Bootstrap is a toolkit from Twitter designed to kickstart development
|
27
27
|
of webapps and sites.
|
28
28
|
email:
|
@@ -79,15 +79,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
79
79
|
- - ! '>='
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
|
+
segments:
|
83
|
+
- 0
|
84
|
+
hash: -2663712755064933420
|
82
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
86
|
none: false
|
84
87
|
requirements:
|
85
88
|
- - ! '>='
|
86
89
|
- !ruby/object:Gem::Version
|
87
90
|
version: '0'
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
hash: -2663712755064933420
|
88
94
|
requirements: []
|
89
95
|
rubyforge_project: compass-bootstrap
|
90
|
-
rubygems_version: 1.8.
|
96
|
+
rubygems_version: 1.8.11
|
91
97
|
signing_key:
|
92
98
|
specification_version: 3
|
93
99
|
summary: Compass compatible Sass port of twitter bootstrap.
|