compass_twitter_bootstrap 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +39 -15
- data/stylesheets/compass_twitter_bootstrap/_patterns.scss +396 -329
- data/stylesheets/compass_twitter_bootstrap/_preboot.scss +48 -56
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -11
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +17 -116
- metadata +6 -6
@@ -36,7 +36,7 @@ $baseline: 18px;
|
|
36
36
|
$gridColumns: 16;
|
37
37
|
$gridColumnWidth: 40px;
|
38
38
|
$gridGutterWidth: 20px;
|
39
|
-
$extraSpace:
|
39
|
+
$extraSpace: ($gridGutterWidth * 2); // For our grid calculations
|
40
40
|
$siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
41
41
|
|
42
42
|
// Color Scheme
|
@@ -56,7 +56,7 @@ $analog2: spin($baseColor, -22);
|
|
56
56
|
// ------
|
57
57
|
|
58
58
|
// Clearfix for clearing floats like a boss h5bp.com/q
|
59
|
-
@mixin
|
59
|
+
@mixin cft {
|
60
60
|
zoom: 1;
|
61
61
|
&:before, &:after {
|
62
62
|
display: table;
|
@@ -94,10 +94,10 @@ $analog2: spin($baseColor, -22);
|
|
94
94
|
|
95
95
|
// Font Stacks
|
96
96
|
@mixin shorthand($weight: normal, $size: 14px, $lineHeight: 20px) {
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
97
|
+
font-size: $size;
|
98
|
+
font-weight: $weight;
|
99
|
+
line-height: $lineHeight;
|
100
|
+
}
|
101
101
|
@mixin sans-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
|
102
102
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
103
103
|
font-size: $size;
|
@@ -105,23 +105,23 @@ $analog2: spin($baseColor, -22);
|
|
105
105
|
line-height: $lineHeight;
|
106
106
|
}
|
107
107
|
@mixin serif($weight: normal, $size: 14px, $lineHeight: 20px) {
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
108
|
+
font-family: "Georgia", Times New Roman, Times, serif;
|
109
|
+
font-size: $size;
|
110
|
+
font-weight: $weight;
|
111
|
+
line-height: $lineHeight;
|
112
|
+
}
|
113
113
|
@mixin monospace($weight: normal, $size: 12px, $lineHeight: 20px) {
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
114
|
+
font-family: "Monaco", Courier New, monospace;
|
115
|
+
font-size: $size;
|
116
|
+
font-weight: $weight;
|
117
|
+
line-height: $lineHeight;
|
118
|
+
}
|
119
119
|
|
120
120
|
// Grid System
|
121
121
|
@mixin container {
|
122
122
|
width: $siteWidth;
|
123
123
|
margin: 0 auto;
|
124
|
-
@include
|
124
|
+
@include cft();
|
125
125
|
}
|
126
126
|
@mixin columns($columnSpan: 1) {
|
127
127
|
width: ($gridColumnWidth * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1));
|
@@ -130,11 +130,6 @@ $analog2: spin($baseColor, -22);
|
|
130
130
|
margin-left: ($gridColumnWidth * $columnOffset) + ($gridGutterWidth * ($columnOffset - 1)) + $extraSpace;
|
131
131
|
}
|
132
132
|
|
133
|
-
// Drop shadows
|
134
|
-
//@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) {
|
135
|
-
// @include box-shadow($shadow);
|
136
|
-
//}
|
137
|
-
|
138
133
|
// Transitions
|
139
134
|
@mixin transition($transition) {
|
140
135
|
-webkit-transition: $transition;
|
@@ -142,61 +137,53 @@ $analog2: spin($baseColor, -22);
|
|
142
137
|
transition: $transition;
|
143
138
|
}
|
144
139
|
|
145
|
-
// Background clipping
|
146
|
-
//.background-clip($clip) {
|
147
|
-
// @include background-clip($clip);
|
148
|
-
//}
|
149
|
-
|
150
|
-
// CSS3 Content Columns
|
151
|
-
@mixin content-columns($columnCount, $columnGap: 20px) {
|
152
|
-
@include column-count($columnCount);
|
153
|
-
@include column-count($columnGap);
|
154
|
-
}
|
155
|
-
|
156
|
-
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
157
|
-
#translucent {
|
158
|
-
@mixin background($color: $white, $alpha: 1) {
|
159
|
-
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
160
|
-
}
|
161
|
-
@mixin border($color: $white, $alpha: 1) {
|
162
|
-
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
163
|
-
@include background-clip(padding-box);
|
164
|
-
}
|
165
|
-
}
|
166
140
|
|
167
141
|
// Gradients
|
168
|
-
|
169
|
-
@mixin horizontal ($startColor: #555, $endColor: #333) {
|
142
|
+
@mixin horizontal($startColor: #555, $endColor: #333) {
|
170
143
|
background-color: $endColor;
|
171
144
|
background-repeat: repeat-x;
|
145
|
+
@include filter-gradient($startColor, $endColor, horizontal);
|
172
146
|
background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
|
173
|
-
background-image
|
174
|
-
background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
|
175
|
-
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
|
176
|
-
background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
177
|
-
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
178
|
-
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
147
|
+
@include background-image(linear-gradient(left, $startColor, $endColor));
|
179
148
|
}
|
149
|
+
|
180
150
|
@mixin vertical ($startColor: #555, $endColor: #333) {
|
181
151
|
background-color: $endColor;
|
182
152
|
background-repeat: repeat-x;
|
153
|
+
@include filter-gradient($startColor, $endColor);
|
154
|
+
background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
|
183
155
|
@include background-image(linear-gradient($startColor, $endColor));
|
184
156
|
}
|
157
|
+
|
185
158
|
@mixin directional ($startColor: #555, $endColor: #333, $deg: 45deg) {
|
186
159
|
background-color: $endColor;
|
187
160
|
background-repeat: repeat-x;
|
188
|
-
background-image
|
189
|
-
background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
|
190
|
-
background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
|
191
|
-
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
192
|
-
background-image: linear-gradient($deg, $startColor, $endColor); // The standard
|
161
|
+
@include background-image(linear-gradient(left top, $startColor, $endColor));
|
193
162
|
}
|
163
|
+
|
194
164
|
@mixin vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
195
165
|
background-color: $endColor;
|
196
166
|
background-repeat: no-repeat;
|
167
|
+
@include filter-gradient($startColor, $endColor);
|
197
168
|
@include background-image(linear-gradient($startColor, $midColor $colorStop, $endColor));
|
198
169
|
}
|
199
170
|
|
171
|
+
// CSS3 Content Columns
|
172
|
+
@mixin content-columns($columnCount, $columnGap: 20px) {
|
173
|
+
@include column-count($columnCount);
|
174
|
+
@include column-count($columnGap);
|
175
|
+
}
|
176
|
+
|
177
|
+
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
178
|
+
@mixin background($color: $white, $alpha: 1) {
|
179
|
+
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
180
|
+
}
|
181
|
+
|
182
|
+
@mixin border($color: $white, $alpha: 1) {
|
183
|
+
border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
184
|
+
background-clip: padding-box;
|
185
|
+
}
|
186
|
+
|
200
187
|
// Gradient Bar Colors for buttons and allerts
|
201
188
|
@mixin gradientBar($primaryColor, $secondaryColor) {
|
202
189
|
@include vertical($primaryColor, $secondaryColor);
|
@@ -231,4 +218,9 @@ $analog2: spin($baseColor, -22);
|
|
231
218
|
&.info {
|
232
219
|
@include gradientBar(#5bc0de, #339bb9);
|
233
220
|
}
|
221
|
+
}
|
222
|
+
|
223
|
+
// Reset filters for IE
|
224
|
+
@mixin reset-filter() {
|
225
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
|
234
226
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Reset.
|
1
|
+
/* Reset.less
|
2
2
|
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
|
3
3
|
* ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
|
4
4
|
|
@@ -133,14 +133,4 @@ input[type="search"]::-webkit-search-decoration {
|
|
133
133
|
textarea {
|
134
134
|
overflow: auto; // Remove vertical scrollbar in IE6-9
|
135
135
|
vertical-align: top; // Readability and alignment cross-browser
|
136
|
-
}
|
137
|
-
|
138
|
-
// Tables
|
139
|
-
// -------------------------
|
140
|
-
// Source: http://github.com/necolas/normalize.css
|
141
|
-
|
142
|
-
// Remove spacing between table cells
|
143
|
-
table {
|
144
|
-
border-collapse: collapse;
|
145
|
-
border-spacing: 0;
|
146
136
|
}
|
@@ -8,29 +8,15 @@
|
|
8
8
|
// -----------
|
9
9
|
|
10
10
|
.row {
|
11
|
-
@include
|
12
|
-
margin-left: -
|
11
|
+
@include cft();
|
12
|
+
margin-left: -1 * $gridGutterWidth;
|
13
13
|
|
14
|
-
//
|
15
|
-
|
16
|
-
|
17
|
-
.span3,
|
18
|
-
.span4,
|
19
|
-
.span5,
|
20
|
-
.span6,
|
21
|
-
.span7,
|
22
|
-
.span8,
|
23
|
-
.span9,
|
24
|
-
.span10,
|
25
|
-
.span11,
|
26
|
-
.span12,
|
27
|
-
.span13,
|
28
|
-
.span14,
|
29
|
-
.span15,
|
30
|
-
.span16 {
|
14
|
+
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
|
15
|
+
// Credit to $dhg for the idea
|
16
|
+
[class^="span"] {
|
31
17
|
display: inline;
|
32
18
|
float: left;
|
33
|
-
margin-left:
|
19
|
+
margin-left: $gridGutterWidth;
|
34
20
|
}
|
35
21
|
|
36
22
|
// Default columns
|
@@ -64,6 +50,12 @@
|
|
64
50
|
.offset10 { @include offset(10); }
|
65
51
|
.offset11 { @include offset(11); }
|
66
52
|
.offset12 { @include offset(12); }
|
53
|
+
|
54
|
+
// Unique column sizes for 16-column grid
|
55
|
+
.span-one-third { width: 300px; }
|
56
|
+
.span-two-thirds { width: 620px; }
|
57
|
+
.offset-one-third { margin-left: 340px; }
|
58
|
+
.offset-two-thirds { margin-left: 660px; }
|
67
59
|
}
|
68
60
|
|
69
61
|
|
@@ -77,32 +69,25 @@ body {
|
|
77
69
|
margin: 0;
|
78
70
|
@include sans-serif(normal,$basefont,$baseline);
|
79
71
|
color: $gray;
|
80
|
-
text-rendering: optimizeLegibility;
|
81
72
|
}
|
82
73
|
|
83
74
|
// Container (centered, fixed-width layouts)
|
84
75
|
.container {
|
85
76
|
width: 940px;
|
86
77
|
margin: 0 auto;
|
87
|
-
|
88
|
-
|
89
|
-
.container:before, .container:after {
|
90
|
-
display: table;
|
91
|
-
content: "";
|
92
|
-
}
|
93
|
-
.container:after {
|
94
|
-
clear: both;
|
78
|
+
@include cft();
|
95
79
|
}
|
96
80
|
|
97
81
|
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
98
82
|
.container-fluid {
|
99
83
|
padding: 0 20px;
|
100
|
-
@include
|
101
|
-
.sidebar {
|
84
|
+
@include cft();
|
85
|
+
> .sidebar {
|
102
86
|
float: left;
|
103
87
|
width: 220px;
|
104
88
|
}
|
105
|
-
.content
|
89
|
+
// TODO in v2: rename this and .popover .content to be more specific
|
90
|
+
> .content {
|
106
91
|
min-width: 700px;
|
107
92
|
max-width: 1180px;
|
108
93
|
margin-left: 240px;
|
@@ -124,87 +109,3 @@ a {
|
|
124
109
|
text-decoration: underline;
|
125
110
|
}
|
126
111
|
}
|
127
|
-
|
128
|
-
// Buttons
|
129
|
-
.btn {
|
130
|
-
display: inline-block;
|
131
|
-
@include vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
|
132
|
-
padding: 4px 14px;
|
133
|
-
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
134
|
-
color: #333;
|
135
|
-
font-size: 13px;
|
136
|
-
line-height: $baseline;
|
137
|
-
border: 1px solid #ccc;
|
138
|
-
border-bottom-color: #bbb;
|
139
|
-
@include border-radius(4px);
|
140
|
-
$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
141
|
-
@include box-shadow($shadow);
|
142
|
-
&:hover {
|
143
|
-
background-position: 0 -15px;
|
144
|
-
color: #333;
|
145
|
-
text-decoration: none;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
.primary {
|
149
|
-
@include vertical(#049CDB, #0064CD);
|
150
|
-
color: #fff;
|
151
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
152
|
-
border: 1px solid darken(#0064CD, 10%);
|
153
|
-
border-bottom-color: darken(#0064CD, 15%);
|
154
|
-
&:hover {
|
155
|
-
color: #fff;
|
156
|
-
}
|
157
|
-
}
|
158
|
-
|
159
|
-
.btn {
|
160
|
-
@include single-transition(all, .1s, linear);
|
161
|
-
&.primary {
|
162
|
-
color: #fff;
|
163
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
164
|
-
border-color: $blueDark $blueDark darken($blueDark, 15%);
|
165
|
-
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
166
|
-
&:hover {
|
167
|
-
color: #fff;
|
168
|
-
}
|
169
|
-
}
|
170
|
-
&.large {
|
171
|
-
font-size: 16px;
|
172
|
-
line-height: 28px;
|
173
|
-
@include border-radius(6px);
|
174
|
-
}
|
175
|
-
&.small {
|
176
|
-
padding-right: 9px;
|
177
|
-
padding-left: 9px;
|
178
|
-
font-size: 11px;
|
179
|
-
}
|
180
|
-
&.disabled {
|
181
|
-
background-image: none;
|
182
|
-
@include opacity(65);
|
183
|
-
cursor: default;
|
184
|
-
@include box-shadow(none);
|
185
|
-
}
|
186
|
-
|
187
|
-
// this can't be included with the .disabled def because IE8 and below will drop it ;_;
|
188
|
-
&:disabled {
|
189
|
-
background-image: none;
|
190
|
-
@include opacity(65);
|
191
|
-
cursor: default;
|
192
|
-
@include box-shadow(none);
|
193
|
-
&.primary {
|
194
|
-
color: #fff;
|
195
|
-
}
|
196
|
-
}
|
197
|
-
&:active {
|
198
|
-
$shadow: inset 0 3px 7px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
199
|
-
@include box-shadow($shadow);
|
200
|
-
}
|
201
|
-
}
|
202
|
-
|
203
|
-
// Help Firefox not be a jerk about adding extra padding to buttons
|
204
|
-
button.btn,
|
205
|
-
input[type=submit].btn {
|
206
|
-
&::-moz-focus-inner {
|
207
|
-
padding: 0;
|
208
|
-
border: 0;
|
209
|
-
}
|
210
|
-
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass_twitter_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: compass
|
16
|
-
requirement: &
|
16
|
+
requirement: &70335404125620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70335404125620
|
25
25
|
description: Compass/SCSS version of the twitter bootstrap
|
26
26
|
email:
|
27
27
|
- vrwaller@gmail.com
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
segments:
|
60
60
|
- 0
|
61
|
-
hash:
|
61
|
+
hash: 762713338064079276
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash:
|
70
|
+
hash: 762713338064079276
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
73
|
rubygems_version: 1.8.10
|