compass_twitter_bootstrap 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -1
- data/README.md +25 -3
- data/Rakefile +5 -0
- data/{lib → build}/convert.rb +55 -4
- data/init.rb +1 -0
- data/lib/compass_twitter_bootstrap.rb +5 -0
- data/lib/compass_twitter_bootstrap/engine.rb +4 -0
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +49 -35
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +5 -2
- data/stylesheets/compass_twitter_bootstrap/_patterns.scss +100 -45
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +24 -20
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +68 -15
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +27 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +451 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +159 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +923 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +164 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +187 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +198 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +162 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +71 -0
- data/vendor/assets/javascripts/bootstrap-alerts.js +124 -0
- data/vendor/assets/javascripts/bootstrap-buttons.js +64 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +55 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +260 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +90 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +107 -0
- data/vendor/assets/javascripts/bootstrap-tabs.js +80 -0
- data/vendor/assets/javascripts/bootstrap-twipsy.js +321 -0
- metadata +27 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
/* Reset.less
|
2
|
-
* Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here
|
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
|
|
5
5
|
|
@@ -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 sans-serif(normal,$basefont,$baseline);
|
16
14
|
color: $grayDark;
|
@@ -29,7 +27,9 @@ body {
|
|
29
27
|
padding-right: 20px;
|
30
28
|
@include clearfix();
|
31
29
|
> .sidebar {
|
32
|
-
|
30
|
+
position: absolute;
|
31
|
+
top: 0;
|
32
|
+
left: 20px;
|
33
33
|
width: 220px;
|
34
34
|
}
|
35
35
|
// TODO in v2: rename this and .popover .content to be more specific
|
@@ -77,12 +77,12 @@ a {
|
|
77
77
|
|
78
78
|
.row {
|
79
79
|
@include clearfix();
|
80
|
-
margin-left:
|
80
|
+
margin-left: -$gridGutterWidth;
|
81
81
|
}
|
82
82
|
|
83
83
|
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
|
84
84
|
// Credit to $dhg for the idea
|
85
|
-
[class*="span"] {
|
85
|
+
.row > [class*="span"] {
|
86
86
|
@include gridColumn();
|
87
87
|
}
|
88
88
|
|
@@ -115,21 +115,25 @@ a {
|
|
115
115
|
.span24 { @include columns(24); }
|
116
116
|
|
117
117
|
// Offset column options
|
118
|
-
.
|
119
|
-
.
|
120
|
-
.
|
121
|
-
.
|
122
|
-
.
|
123
|
-
.
|
124
|
-
.
|
125
|
-
.
|
126
|
-
.
|
127
|
-
.
|
128
|
-
.
|
129
|
-
.
|
118
|
+
.row {
|
119
|
+
> .offset1 { @include offset(1); }
|
120
|
+
> .offset2 { @include offset(2); }
|
121
|
+
> .offset3 { @include offset(3); }
|
122
|
+
> .offset4 { @include offset(4); }
|
123
|
+
> .offset5 { @include offset(5); }
|
124
|
+
> .offset6 { @include offset(6); }
|
125
|
+
> .offset7 { @include offset(7); }
|
126
|
+
> .offset8 { @include offset(8); }
|
127
|
+
> .offset9 { @include offset(9); }
|
128
|
+
> .offset10 { @include offset(10); }
|
129
|
+
> .offset11 { @include offset(11); }
|
130
|
+
> .offset12 { @include offset(12); }
|
131
|
+
}
|
130
132
|
|
131
133
|
// Unique column sizes for 16-column grid
|
132
134
|
.span-one-third { width: 300px; }
|
133
135
|
.span-two-thirds { width: 620px; }
|
134
|
-
.
|
135
|
-
.offset-
|
136
|
+
.row {
|
137
|
+
> .offset-one-third { margin-left: 340px; }
|
138
|
+
> .offset-two-thirds { margin-left: 660px; }
|
139
|
+
}
|
@@ -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,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;
|
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
|
+
@include 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
|
@include 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
|
@include border-radius(0 4px 0 0);
|
45
69
|
}
|
@@ -52,20 +76,52 @@ table {
|
|
52
76
|
}
|
53
77
|
|
54
78
|
|
79
|
+
// TABLE CELL SIZES
|
80
|
+
// ----------------
|
81
|
+
|
82
|
+
// This is a duplication of the main grid @include 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 { @include tableColumns(1); }
|
89
|
+
.span2 { @include tableColumns(2); }
|
90
|
+
.span3 { @include tableColumns(3); }
|
91
|
+
.span4 { @include tableColumns(4); }
|
92
|
+
.span5 { @include tableColumns(5); }
|
93
|
+
.span6 { @include tableColumns(6); }
|
94
|
+
.span7 { @include tableColumns(7); }
|
95
|
+
.span8 { @include tableColumns(8); }
|
96
|
+
.span9 { @include tableColumns(9); }
|
97
|
+
.span10 { @include tableColumns(10); }
|
98
|
+
.span11 { @include tableColumns(11); }
|
99
|
+
.span12 { @include tableColumns(12); }
|
100
|
+
.span13 { @include tableColumns(13); }
|
101
|
+
.span14 { @include tableColumns(14); }
|
102
|
+
.span15 { @include tableColumns(15); }
|
103
|
+
.span16 { @include 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
|
}
|
122
|
+
}
|
68
123
|
|
124
|
+
table {
|
69
125
|
// Tablesorting styles w/ jQuery plugin
|
70
126
|
.header {
|
71
127
|
cursor: pointer;
|
@@ -111,9 +167,6 @@ table {
|
|
111
167
|
@include opacity(60);
|
112
168
|
}
|
113
169
|
}
|
114
|
-
}
|
115
|
-
|
116
|
-
table {
|
117
170
|
// Blue Table Headings
|
118
171
|
.blue {
|
119
172
|
color: $blue;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v1.3.0
|
3
|
+
*
|
4
|
+
* Copyright 2011 Twitter, Inc
|
5
|
+
* Licensed under the Apache License v2.0
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
9
|
+
* Date: @DATE
|
10
|
+
|
11
|
+
@import compass
|
12
|
+
|
13
|
+
// CSS Reset
|
14
|
+
@import compass_twitter_bootstrap/reset
|
15
|
+
|
16
|
+
// Core variables and mixins
|
17
|
+
@import compass_twitter_bootstrap/variables
|
18
|
+
@import compass_twitter_bootstrap/mixins
|
19
|
+
|
20
|
+
// Grid system and page structure
|
21
|
+
@import compass_twitter_bootstrap/scaffolding
|
22
|
+
|
23
|
+
// Styled patterns and elements
|
24
|
+
@import compass_twitter_bootstrap/type
|
25
|
+
@import compass_twitter_bootstrap/forms
|
26
|
+
@import compass_twitter_bootstrap/tables
|
27
|
+
@import compass_twitter_bootstrap/patterns
|
@@ -0,0 +1,451 @@
|
|
1
|
+
/* Forms.less
|
2
|
+
* Base styles for various input types, form layouts, and states
|
3
|
+
* -------------------------------------------------------------
|
4
|
+
|
5
|
+
// FORM STYLES
|
6
|
+
// -----------
|
7
|
+
|
8
|
+
form
|
9
|
+
margin-bottom: $baseline
|
10
|
+
|
11
|
+
// Groups of fields with labels on top (legends)
|
12
|
+
fieldset
|
13
|
+
margin-bottom: $baseline
|
14
|
+
padding-top: $baseline
|
15
|
+
legend
|
16
|
+
display: block
|
17
|
+
padding-left: 150px
|
18
|
+
font-size: $basefont * 1.5
|
19
|
+
line-height: 1
|
20
|
+
color: $grayDark
|
21
|
+
*padding: 0 0 5px 145px
|
22
|
+
/* IE6-7
|
23
|
+
*line-height: 1.5
|
24
|
+
/* IE6-7
|
25
|
+
|
26
|
+
// Parent element that clears floats and wraps labels and fields together
|
27
|
+
form .clearfix
|
28
|
+
margin-bottom: $baseline
|
29
|
+
+clearfix
|
30
|
+
|
31
|
+
// Set font for forms
|
32
|
+
|
33
|
+
label,
|
34
|
+
input,
|
35
|
+
select,
|
36
|
+
textarea
|
37
|
+
+sans-serif(normal, 13px, normal)
|
38
|
+
|
39
|
+
// Float labels left
|
40
|
+
label
|
41
|
+
padding-top: 6px
|
42
|
+
font-size: $basefont
|
43
|
+
line-height: $baseline
|
44
|
+
float: left
|
45
|
+
width: 130px
|
46
|
+
text-align: right
|
47
|
+
color: $grayDark
|
48
|
+
|
49
|
+
// Shift over the inside div to align all label's relevant content
|
50
|
+
form .input
|
51
|
+
margin-left: 150px
|
52
|
+
|
53
|
+
// Checkboxs and radio buttons
|
54
|
+
|
55
|
+
input[type=checkbox],
|
56
|
+
input[type=radio]
|
57
|
+
cursor: pointer
|
58
|
+
|
59
|
+
// Inputs, Textareas, Selects
|
60
|
+
|
61
|
+
input,
|
62
|
+
textarea,
|
63
|
+
select,
|
64
|
+
.uneditable-input
|
65
|
+
display: inline-block
|
66
|
+
width: 210px
|
67
|
+
height: $baseline
|
68
|
+
padding: 4px
|
69
|
+
font-size: $basefont
|
70
|
+
line-height: $baseline
|
71
|
+
color: $gray
|
72
|
+
border: 1px solid #ccc
|
73
|
+
+border-radius(3px)
|
74
|
+
|
75
|
+
// remove padding from select
|
76
|
+
select
|
77
|
+
padding: initial
|
78
|
+
|
79
|
+
// mini reset for non-html5 file types
|
80
|
+
|
81
|
+
input[type=checkbox],
|
82
|
+
input[type=radio]
|
83
|
+
width: auto
|
84
|
+
height: auto
|
85
|
+
padding: 0
|
86
|
+
margin: 3px 0
|
87
|
+
*margin-top: 0
|
88
|
+
/* IE6-7
|
89
|
+
line-height: normal
|
90
|
+
border: none
|
91
|
+
|
92
|
+
input[type=file]
|
93
|
+
background-color: $white
|
94
|
+
padding: initial
|
95
|
+
border: initial
|
96
|
+
line-height: initial
|
97
|
+
+box-shadow(none)
|
98
|
+
|
99
|
+
input[type=button],
|
100
|
+
input[type=reset],
|
101
|
+
input[type=submit]
|
102
|
+
width: auto
|
103
|
+
height: auto
|
104
|
+
|
105
|
+
select,
|
106
|
+
input[type=file]
|
107
|
+
height: $baseline * 1.5
|
108
|
+
// In IE7, the height of the select element cannot be changed by height, only font-size
|
109
|
+
*height: auto
|
110
|
+
// Reset for IE7
|
111
|
+
line-height: $baseline * 1.5
|
112
|
+
*margin-top: 4px
|
113
|
+
/* For IE7, add top margin to align select with labels
|
114
|
+
|
115
|
+
// Make multiple select elements height not fixed
|
116
|
+
select[multiple]
|
117
|
+
height: inherit
|
118
|
+
background-color: $white
|
119
|
+
// Fixes Chromium bug of unreadable items
|
120
|
+
|
121
|
+
textarea
|
122
|
+
height: auto
|
123
|
+
|
124
|
+
// For text that needs to appear as an input but should not be an input
|
125
|
+
.uneditable-input
|
126
|
+
background-color: $white
|
127
|
+
display: block
|
128
|
+
border-color: #eee
|
129
|
+
+box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.025))
|
130
|
+
cursor: not-allowed
|
131
|
+
|
132
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
133
|
+
\:-moz-placeholder
|
134
|
+
color: $grayLight
|
135
|
+
|
136
|
+
\::-webkit-input-placeholder
|
137
|
+
color: $grayLight
|
138
|
+
|
139
|
+
// Focus states
|
140
|
+
|
141
|
+
input,
|
142
|
+
textarea
|
143
|
+
$transition: border linear 0.2s, box-shadow linear 0.2s
|
144
|
+
+transition($transition)
|
145
|
+
+box-shadow(inset 0 1px 3px rgba(0, 0, 0, 0.1))
|
146
|
+
|
147
|
+
input:focus,
|
148
|
+
textarea:focus
|
149
|
+
outline: 0
|
150
|
+
border-color: rgba(82, 168, 236, 0.8)
|
151
|
+
$shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6)
|
152
|
+
+box-shadow($shadow)
|
153
|
+
|
154
|
+
input[type=file]:focus,
|
155
|
+
input[type=checkbox]:focus,
|
156
|
+
select:focus
|
157
|
+
+box-shadow(none)
|
158
|
+
// override for file inputs
|
159
|
+
outline: 1px dotted #666
|
160
|
+
// Selet elements don't get box-shadow styles, so instead we do outline
|
161
|
+
|
162
|
+
// FORM FIELD FEEDBACK STATES
|
163
|
+
// --------------------------
|
164
|
+
|
165
|
+
// Mixin for form field states
|
166
|
+
=formFieldState($textColor: #555555, $borderColor: #cccccc, $backgroundColor: #f5f5f5)
|
167
|
+
// Set the text color
|
168
|
+
> label,
|
169
|
+
.help-block,
|
170
|
+
.help-inline
|
171
|
+
color: $textColor
|
172
|
+
// Style inputs accordingly
|
173
|
+
input,
|
174
|
+
textarea
|
175
|
+
color: $textColor
|
176
|
+
border-color: $borderColor
|
177
|
+
&:focus
|
178
|
+
border-color: darken($borderColor, 10%)
|
179
|
+
+box-shadow(0 0 6px lighten($borderColor, 20%))
|
180
|
+
// Give a small background color for input-prepend/-append
|
181
|
+
.input-prepend .add-on,
|
182
|
+
.input-append .add-on
|
183
|
+
color: $textColor
|
184
|
+
background-color: $backgroundColor
|
185
|
+
border-color: $textColor
|
186
|
+
|
187
|
+
// Error
|
188
|
+
form .clearfix.error
|
189
|
+
+formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%))
|
190
|
+
|
191
|
+
// Warning
|
192
|
+
form .clearfix.warning
|
193
|
+
+formFieldState(#c09853, #ccae64, lighten(#ccae64, 5%))
|
194
|
+
|
195
|
+
// Success
|
196
|
+
form .clearfix.success
|
197
|
+
+formFieldState(#468847, #57a957, lighten(#57a957, 30%))
|
198
|
+
|
199
|
+
// Form element sizes
|
200
|
+
// TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
|
201
|
+
|
202
|
+
.input-mini,
|
203
|
+
input.mini,
|
204
|
+
textarea.mini,
|
205
|
+
select.mini
|
206
|
+
width: 60px
|
207
|
+
|
208
|
+
.input-small,
|
209
|
+
input.small,
|
210
|
+
textarea.small,
|
211
|
+
select.small
|
212
|
+
width: 90px
|
213
|
+
|
214
|
+
.input-medium,
|
215
|
+
input.medium,
|
216
|
+
textarea.medium,
|
217
|
+
select.medium
|
218
|
+
width: 150px
|
219
|
+
|
220
|
+
.input-large,
|
221
|
+
input.large,
|
222
|
+
textarea.large,
|
223
|
+
select.large
|
224
|
+
width: 210px
|
225
|
+
|
226
|
+
.input-xlarge,
|
227
|
+
input.xlarge,
|
228
|
+
textarea.xlarge,
|
229
|
+
select.xlarge
|
230
|
+
width: 270px
|
231
|
+
|
232
|
+
.input-xxlarge,
|
233
|
+
input.xxlarge,
|
234
|
+
textarea.xxlarge,
|
235
|
+
select.xxlarge
|
236
|
+
width: 530px
|
237
|
+
|
238
|
+
textarea.xxlarge
|
239
|
+
overflow-y: auto
|
240
|
+
|
241
|
+
// Grid style input sizes
|
242
|
+
// This is a duplication of the main grid @include columns(); mixin, but subtracts 10px to account for input padding and border
|
243
|
+
=formColumns($columnSpan: 1)
|
244
|
+
display: inline-block
|
245
|
+
float: none
|
246
|
+
width: $gridColumnWidth * $columnSpan + $gridGutterWidth * ($columnSpan - 1) - 10
|
247
|
+
margin-left: 0
|
248
|
+
|
249
|
+
input,
|
250
|
+
textarea
|
251
|
+
// Default columns
|
252
|
+
&.span1
|
253
|
+
+formColumns(1)
|
254
|
+
&.span2
|
255
|
+
+formColumns(2)
|
256
|
+
&.span3
|
257
|
+
+formColumns(3)
|
258
|
+
&.span4
|
259
|
+
+formColumns(4)
|
260
|
+
&.span5
|
261
|
+
+formColumns(5)
|
262
|
+
&.span6
|
263
|
+
+formColumns(6)
|
264
|
+
&.span7
|
265
|
+
+formColumns(7)
|
266
|
+
&.span8
|
267
|
+
+formColumns(8)
|
268
|
+
&.span9
|
269
|
+
+formColumns(9)
|
270
|
+
&.span10
|
271
|
+
+formColumns(10)
|
272
|
+
&.span11
|
273
|
+
+formColumns(11)
|
274
|
+
&.span12
|
275
|
+
+formColumns(12)
|
276
|
+
&.span13
|
277
|
+
+formColumns(13)
|
278
|
+
&.span14
|
279
|
+
+formColumns(14)
|
280
|
+
&.span15
|
281
|
+
+formColumns(15)
|
282
|
+
&.span16
|
283
|
+
+formColumns(16)
|
284
|
+
|
285
|
+
// Disabled and read-only inputs
|
286
|
+
|
287
|
+
input[disabled],
|
288
|
+
select[disabled],
|
289
|
+
textarea[disabled],
|
290
|
+
input[readonly],
|
291
|
+
select[readonly],
|
292
|
+
textarea[readonly]
|
293
|
+
background-color: #f5f5f5
|
294
|
+
border-color: #ddd
|
295
|
+
cursor: not-allowed
|
296
|
+
|
297
|
+
// Actions (the buttons)
|
298
|
+
.actions
|
299
|
+
background: #f5f5f5
|
300
|
+
margin-top: $baseline
|
301
|
+
margin-bottom: $baseline
|
302
|
+
padding: $baseline - 1 20px $baseline 150px
|
303
|
+
border-top: 1px solid #ddd
|
304
|
+
+border-radius(0 0 3px 3px)
|
305
|
+
.secondary-action
|
306
|
+
float: right
|
307
|
+
a
|
308
|
+
line-height: 30px
|
309
|
+
&:hover
|
310
|
+
text-decoration: underline
|
311
|
+
|
312
|
+
// Help Text
|
313
|
+
// TODO: Do we need to set basefont and baseline here?
|
314
|
+
|
315
|
+
.help-inline,
|
316
|
+
.help-block
|
317
|
+
font-size: $basefont
|
318
|
+
line-height: $baseline
|
319
|
+
color: $grayLight
|
320
|
+
|
321
|
+
.help-inline
|
322
|
+
padding-left: 5px
|
323
|
+
*position: relative
|
324
|
+
/* IE6-7
|
325
|
+
*top: -5px
|
326
|
+
/* IE6-7
|
327
|
+
|
328
|
+
// Big blocks of help text
|
329
|
+
.help-block
|
330
|
+
display: block
|
331
|
+
max-width: 600px
|
332
|
+
|
333
|
+
// Inline Fields (input fields that appear as inline objects
|
334
|
+
.inline-inputs
|
335
|
+
color: $gray
|
336
|
+
span
|
337
|
+
padding: 0 2px 0 1px
|
338
|
+
|
339
|
+
// Allow us to put symbols and text within the input field for a cleaner look
|
340
|
+
|
341
|
+
.input-prepend,
|
342
|
+
.input-append
|
343
|
+
input
|
344
|
+
+border-radius(0 3px 3px 0)
|
345
|
+
.add-on
|
346
|
+
position: relative
|
347
|
+
background: #f5f5f5
|
348
|
+
border: 1px solid #ccc
|
349
|
+
z-index: 2
|
350
|
+
float: left
|
351
|
+
display: block
|
352
|
+
width: auto
|
353
|
+
min-width: 16px
|
354
|
+
height: 18px
|
355
|
+
padding: 4px 4px 4px 5px
|
356
|
+
margin-right: -1px
|
357
|
+
font-weight: normal
|
358
|
+
line-height: 18px
|
359
|
+
color: $grayLight
|
360
|
+
text-align: center
|
361
|
+
text-shadow: 0 1px 0 $white
|
362
|
+
+border-radius(3px 0 0 3px)
|
363
|
+
.active
|
364
|
+
background: lighten($green, 30)
|
365
|
+
border-color: $green
|
366
|
+
|
367
|
+
.input-prepend
|
368
|
+
.add-on
|
369
|
+
*margin-top: 1px
|
370
|
+
/* IE6-7
|
371
|
+
|
372
|
+
.input-append
|
373
|
+
input
|
374
|
+
float: left
|
375
|
+
+border-radius(3px 0 0 3px)
|
376
|
+
.add-on
|
377
|
+
+border-radius(0 3px 3px 0)
|
378
|
+
margin-right: 0
|
379
|
+
margin-left: -1px
|
380
|
+
|
381
|
+
// Stacked options for forms (radio buttons or checkboxes)
|
382
|
+
.inputs-list
|
383
|
+
margin: 0 0 5px
|
384
|
+
width: 100%
|
385
|
+
li
|
386
|
+
display: block
|
387
|
+
padding: 0
|
388
|
+
width: 100%
|
389
|
+
label
|
390
|
+
display: block
|
391
|
+
float: none
|
392
|
+
width: auto
|
393
|
+
padding: 0
|
394
|
+
margin-left: 20px
|
395
|
+
line-height: $baseline
|
396
|
+
text-align: left
|
397
|
+
white-space: normal
|
398
|
+
strong
|
399
|
+
color: $gray
|
400
|
+
small
|
401
|
+
font-size: $basefont - 2
|
402
|
+
font-weight: normal
|
403
|
+
.inputs-list
|
404
|
+
margin-left: 25px
|
405
|
+
margin-bottom: 10px
|
406
|
+
padding-top: 0
|
407
|
+
&:first-child
|
408
|
+
padding-top: 6px
|
409
|
+
li + li
|
410
|
+
padding-top: 2px
|
411
|
+
input[type=radio],
|
412
|
+
input[type=checkbox]
|
413
|
+
margin-bottom: 0
|
414
|
+
margin-left: -20px
|
415
|
+
float: left
|
416
|
+
|
417
|
+
// Stacked forms
|
418
|
+
.form-stacked
|
419
|
+
padding-left: 20px
|
420
|
+
fieldset
|
421
|
+
padding-top: $baseline / 2
|
422
|
+
legend
|
423
|
+
padding-left: 0
|
424
|
+
label
|
425
|
+
display: block
|
426
|
+
float: none
|
427
|
+
width: auto
|
428
|
+
font-weight: bold
|
429
|
+
text-align: left
|
430
|
+
line-height: 20px
|
431
|
+
padding-top: 0
|
432
|
+
.clearfix
|
433
|
+
margin-bottom: $baseline / 2
|
434
|
+
div.input
|
435
|
+
margin-left: 0
|
436
|
+
.inputs-list
|
437
|
+
margin-bottom: 0
|
438
|
+
li
|
439
|
+
padding-top: 0
|
440
|
+
label
|
441
|
+
font-weight: normal
|
442
|
+
padding-top: 0
|
443
|
+
div.clearfix.error
|
444
|
+
padding-top: 10px
|
445
|
+
padding-bottom: 10px
|
446
|
+
padding-left: 10px
|
447
|
+
margin-top: 0
|
448
|
+
margin-left: -10px
|
449
|
+
.actions
|
450
|
+
margin-left: -20px
|
451
|
+
padding-left: 20px
|