anjlab-bootstrap-rails 1.4.0.14 → 2.0.0.1
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/Rakefile +11 -15
- data/bootstrap-rails.gemspec +4 -4
- data/lib/bootstrap-rails/version.rb +1 -1
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
- data/vendor/assets/javascripts/bootstrap-button.js +98 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
- data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
- data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/bootstrap.js +8 -5
- data/vendor/assets/stylesheets/accordion.scss +28 -0
- data/vendor/assets/stylesheets/alerts.scss +70 -0
- data/vendor/assets/stylesheets/bootstrap.scss +44 -8
- data/vendor/assets/stylesheets/breadcrumbs.scss +22 -0
- data/vendor/assets/stylesheets/button-groups.scss +147 -0
- data/vendor/assets/stylesheets/buttons.scss +165 -0
- data/vendor/assets/stylesheets/carousel.scss +121 -0
- data/vendor/assets/stylesheets/close.scss +18 -0
- data/vendor/assets/stylesheets/code.scss +44 -0
- data/vendor/assets/stylesheets/component-animations.scss +18 -0
- data/vendor/assets/stylesheets/dropdowns.scss +131 -0
- data/vendor/assets/stylesheets/forms.scss +337 -287
- data/vendor/assets/stylesheets/grid.scss +8 -0
- data/vendor/assets/stylesheets/hero-unit.scss +20 -0
- data/vendor/assets/stylesheets/labels.scss +16 -0
- data/vendor/assets/stylesheets/layouts.scss +17 -0
- data/vendor/assets/stylesheets/mixins.scss +375 -111
- data/vendor/assets/stylesheets/modals.scss +72 -0
- data/vendor/assets/stylesheets/navbar.scss +292 -0
- data/vendor/assets/stylesheets/navs.scss +344 -0
- data/vendor/assets/stylesheets/pager.scss +30 -0
- data/vendor/assets/stylesheets/pagination.scss +55 -0
- data/vendor/assets/stylesheets/popovers.scss +49 -0
- data/vendor/assets/stylesheets/progress-bars.scss +95 -0
- data/vendor/assets/stylesheets/reset.scss +37 -52
- data/vendor/assets/stylesheets/responsive.scss +323 -0
- data/vendor/assets/stylesheets/scaffolding.scss +13 -96
- data/vendor/assets/stylesheets/sprites.scss +158 -0
- data/vendor/assets/stylesheets/tables.scss +68 -149
- data/vendor/assets/stylesheets/thumbnails.scss +35 -0
- data/vendor/assets/stylesheets/tooltip.scss +35 -0
- data/vendor/assets/stylesheets/type.scss +100 -70
- data/vendor/assets/stylesheets/utilities.scss +23 -0
- data/vendor/assets/stylesheets/variables.scss +94 -55
- data/vendor/assets/stylesheets/wells.scss +17 -0
- metadata +51 -30
- data/vendor/assets/javascripts/bootstrap-alerts.js +0 -124
- data/vendor/assets/javascripts/bootstrap-buttons.js +0 -64
- data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
- data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
- data/vendor/assets/stylesheets/patterns.scss +0 -1060
@@ -0,0 +1,35 @@
|
|
1
|
+
// THUMBNAILS
|
2
|
+
// ----------
|
3
|
+
|
4
|
+
.thumbnails {
|
5
|
+
margin-left: -20px;
|
6
|
+
list-style: none;
|
7
|
+
@include clearfix();
|
8
|
+
}
|
9
|
+
.thumbnails > li {
|
10
|
+
float: left;
|
11
|
+
margin: 0 0 $baseLineHeight 20px;
|
12
|
+
}
|
13
|
+
.thumbnail {
|
14
|
+
display: block;
|
15
|
+
padding: 4px;
|
16
|
+
line-height: 1;
|
17
|
+
border: 1px solid #ddd;
|
18
|
+
@include border-radius(4px);
|
19
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,.075));
|
20
|
+
}
|
21
|
+
// Add a hover state for linked versions only
|
22
|
+
a.thumbnail:hover {
|
23
|
+
border-color: $linkColor;
|
24
|
+
@include box-shadow(0 1px 4px rgba(0,105,214,.25));
|
25
|
+
}
|
26
|
+
// Images and captions
|
27
|
+
.thumbnail > img {
|
28
|
+
display: block;
|
29
|
+
max-width: 100%;
|
30
|
+
margin-left: auto;
|
31
|
+
margin-right: auto;
|
32
|
+
}
|
33
|
+
.thumbnail .caption {
|
34
|
+
padding: 9px;
|
35
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// TOOLTIP
|
2
|
+
// ------=
|
3
|
+
|
4
|
+
.tooltip {
|
5
|
+
position: absolute;
|
6
|
+
z-index: $zindexTooltip;
|
7
|
+
display: block;
|
8
|
+
visibility: visible;
|
9
|
+
padding: 5px;
|
10
|
+
font-size: 11px;
|
11
|
+
@include opacity(0);
|
12
|
+
&.in { @include opacity(80); }
|
13
|
+
&.top { margin-top: -2px; }
|
14
|
+
&.right { margin-left: 2px; }
|
15
|
+
&.bottom { margin-top: 2px; }
|
16
|
+
&.left { margin-left: -2px; }
|
17
|
+
&.top .tooltip-arrow { @include popover-arrow-top; }
|
18
|
+
&.left .tooltip-arrow { @include popover-arrow-left; }
|
19
|
+
&.bottom .tooltip-arrow { @include popover-arrow-bottom; }
|
20
|
+
&.right .tooltip-arrow { @include popover-arrow-right; }
|
21
|
+
}
|
22
|
+
.tooltip-inner {
|
23
|
+
max-width: 200px;
|
24
|
+
padding: 3px 8px;
|
25
|
+
color: $white;
|
26
|
+
text-align: center;
|
27
|
+
text-decoration: none;
|
28
|
+
background-color: $black;
|
29
|
+
@include border-radius(4px);
|
30
|
+
}
|
31
|
+
.tooltip-arrow {
|
32
|
+
position: absolute;
|
33
|
+
width: 0;
|
34
|
+
height: 0;
|
35
|
+
}
|
@@ -1,77 +1,99 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
// Typography.less
|
2
|
+
// Headings, body text, lists, code, and more for a versatile and durable typography system
|
3
|
+
// ----------------------------------------------------------------------------------------
|
4
4
|
|
5
5
|
|
6
6
|
// BODY TEXT
|
7
7
|
// ---------
|
8
8
|
|
9
9
|
p {
|
10
|
-
|
11
|
-
|
10
|
+
margin: 0 0 $baseLineHeight / 2;
|
11
|
+
font-family: $baseFontFamily;
|
12
|
+
font-size: $baseFontSize;
|
13
|
+
line-height: $baseLineHeight;
|
12
14
|
small {
|
13
|
-
font-size: $
|
15
|
+
font-size: $baseFontSize - 2;
|
14
16
|
color: $grayLight;
|
15
17
|
}
|
16
18
|
}
|
17
|
-
|
19
|
+
.lead {
|
20
|
+
margin-bottom: $baseLineHeight;
|
21
|
+
font-size: 20px;
|
22
|
+
font-weight: 200;
|
23
|
+
line-height: $baseLineHeight * 1.5;
|
24
|
+
}
|
18
25
|
|
19
26
|
// HEADINGS
|
20
27
|
// --------
|
21
28
|
|
22
29
|
h1, h2, h3, h4, h5, h6 {
|
30
|
+
margin: 0;
|
23
31
|
font-weight: bold;
|
24
32
|
color: $grayDark;
|
33
|
+
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
25
34
|
small {
|
35
|
+
font-weight: normal;
|
26
36
|
color: $grayLight;
|
27
37
|
}
|
28
38
|
}
|
29
39
|
h1 {
|
30
|
-
margin-bottom: $baseline;
|
31
40
|
font-size: 30px;
|
32
|
-
line-height: $
|
41
|
+
line-height: $baseLineHeight * 2;
|
33
42
|
small {
|
34
43
|
font-size: 18px;
|
35
44
|
}
|
36
45
|
}
|
37
46
|
h2 {
|
38
47
|
font-size: 24px;
|
39
|
-
line-height: $
|
48
|
+
line-height: $baseLineHeight * 2;
|
40
49
|
small {
|
41
|
-
font-size:
|
50
|
+
font-size: 18px;
|
42
51
|
}
|
43
52
|
}
|
44
|
-
h3, h4, h5, h6 {
|
45
|
-
line-height: $baseline * 2;
|
46
|
-
}
|
47
53
|
h3 {
|
54
|
+
line-height: $baseLineHeight * 1.5;
|
48
55
|
font-size: 18px;
|
49
56
|
small {
|
50
57
|
font-size: 14px;
|
51
58
|
}
|
52
59
|
}
|
60
|
+
h4, h5, h6 {
|
61
|
+
line-height: $baseLineHeight;
|
62
|
+
}
|
53
63
|
h4 {
|
54
|
-
font-size:
|
64
|
+
font-size: 14px;
|
55
65
|
small {
|
56
66
|
font-size: 12px;
|
57
67
|
}
|
58
68
|
}
|
59
69
|
h5 {
|
60
|
-
font-size:
|
70
|
+
font-size: 12px;
|
61
71
|
}
|
62
72
|
h6 {
|
63
|
-
font-size:
|
73
|
+
font-size: 11px;
|
64
74
|
color: $grayLight;
|
65
75
|
text-transform: uppercase;
|
66
76
|
}
|
67
77
|
|
78
|
+
// Page header
|
79
|
+
.page-header {
|
80
|
+
padding-bottom: $baseLineHeight - 1;
|
81
|
+
margin: $baseLineHeight 0;
|
82
|
+
border-bottom: 1px solid $grayLighter;
|
83
|
+
}
|
84
|
+
.page-header h1 {
|
85
|
+
line-height: 1;
|
86
|
+
}
|
87
|
+
|
88
|
+
|
68
89
|
|
69
|
-
//
|
70
|
-
//
|
90
|
+
// LISTS
|
91
|
+
// -----
|
71
92
|
|
72
93
|
// Unordered and Ordered lists
|
73
94
|
ul, ol {
|
74
|
-
|
95
|
+
padding: 0;
|
96
|
+
margin: 0 0 $baseLineHeight / 2 25px;
|
75
97
|
}
|
76
98
|
ul ul,
|
77
99
|
ul ol,
|
@@ -86,26 +108,26 @@ ol {
|
|
86
108
|
list-style: decimal;
|
87
109
|
}
|
88
110
|
li {
|
89
|
-
line-height: $
|
90
|
-
color: $gray;
|
111
|
+
line-height: $baseLineHeight;
|
91
112
|
}
|
92
113
|
ul.unstyled {
|
93
|
-
list-style: none;
|
94
114
|
margin-left: 0;
|
115
|
+
list-style: none;
|
95
116
|
}
|
96
117
|
|
97
118
|
// Description Lists
|
98
119
|
dl {
|
99
|
-
margin-bottom: $
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
120
|
+
margin-bottom: $baseLineHeight;
|
121
|
+
}
|
122
|
+
dt,
|
123
|
+
dd {
|
124
|
+
line-height: $baseLineHeight;
|
125
|
+
}
|
126
|
+
dt {
|
127
|
+
font-weight: bold;
|
128
|
+
}
|
129
|
+
dd {
|
130
|
+
margin-left: $baseLineHeight / 2;
|
109
131
|
}
|
110
132
|
|
111
133
|
// MISC
|
@@ -113,75 +135,83 @@ dl {
|
|
113
135
|
|
114
136
|
// Horizontal rules
|
115
137
|
hr {
|
116
|
-
margin:
|
138
|
+
margin: $baseLineHeight 0;
|
117
139
|
border: 0;
|
118
|
-
border-
|
140
|
+
border-top: 1px solid #e5e5e5;
|
141
|
+
border-bottom: 1px solid $white;
|
119
142
|
}
|
120
143
|
|
121
144
|
// Emphasis
|
122
145
|
strong {
|
123
|
-
font-style: inherit;
|
124
146
|
font-weight: bold;
|
125
147
|
}
|
126
148
|
em {
|
127
149
|
font-style: italic;
|
128
|
-
font-weight: inherit;
|
129
|
-
line-height: inherit;
|
130
150
|
}
|
131
151
|
.muted {
|
132
152
|
color: $grayLight;
|
133
153
|
}
|
134
154
|
|
155
|
+
// Abbreviations and acronyms
|
156
|
+
abbr {
|
157
|
+
font-size: 90%;
|
158
|
+
text-transform: uppercase;
|
159
|
+
border-bottom: 1px dotted #ddd;
|
160
|
+
cursor: help;
|
161
|
+
}
|
162
|
+
|
135
163
|
// Blockquotes
|
136
164
|
blockquote {
|
137
|
-
|
138
|
-
|
139
|
-
|
165
|
+
padding: 0 0 0 15px;
|
166
|
+
margin: 0 0 $baseLineHeight;
|
167
|
+
border-left: 5px solid $grayLighter;
|
140
168
|
p {
|
141
|
-
@include font-shorthand(300,14px,$baseline);
|
142
169
|
margin-bottom: 0;
|
170
|
+
@include font-shorthand(16px,300,$baseLineHeight * 1.25);
|
143
171
|
}
|
144
172
|
small {
|
145
173
|
display: block;
|
146
|
-
|
174
|
+
line-height: $baseLineHeight;
|
147
175
|
color: $grayLight;
|
148
176
|
&:before {
|
149
177
|
content: '\2014 \00A0';
|
150
178
|
}
|
151
179
|
}
|
180
|
+
|
181
|
+
// Float right with text-align: right
|
182
|
+
&.pull-right {
|
183
|
+
float: right;
|
184
|
+
padding-left: 0;
|
185
|
+
padding-right: 15px;
|
186
|
+
border-left: 0;
|
187
|
+
border-right: 5px solid $grayLighter;
|
188
|
+
p,
|
189
|
+
small {
|
190
|
+
text-align: right;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
// Quotes
|
196
|
+
q:before,
|
197
|
+
q:after,
|
198
|
+
blockquote:before,
|
199
|
+
blockquote:after {
|
200
|
+
content: "";
|
152
201
|
}
|
153
202
|
|
154
203
|
// Addresses
|
155
204
|
address {
|
156
205
|
display: block;
|
157
|
-
|
158
|
-
|
206
|
+
margin-bottom: $baseLineHeight;
|
207
|
+
line-height: $baseLineHeight;
|
208
|
+
font-style: normal;
|
159
209
|
}
|
160
210
|
|
161
|
-
//
|
162
|
-
|
163
|
-
|
164
|
-
font-family: Monaco, Andale Mono, Courier New, monospace;
|
165
|
-
font-size: 12px;
|
166
|
-
@include border-radius(3px);
|
211
|
+
// Misc
|
212
|
+
small {
|
213
|
+
font-size: 100%;
|
167
214
|
}
|
168
|
-
|
169
|
-
|
170
|
-
color: rgba(0,0,0,.75);
|
171
|
-
padding: 1px 3px;
|
215
|
+
cite {
|
216
|
+
font-style: normal;
|
172
217
|
}
|
173
|
-
pre {
|
174
|
-
background-color: #f5f5f5;
|
175
|
-
display: block;
|
176
|
-
padding: ($baseline - 1) / 2;
|
177
|
-
margin: 0 0 $baseline;
|
178
|
-
line-height: $baseline;
|
179
|
-
font-size: 12px;
|
180
|
-
border: 1px solid #ccc;
|
181
|
-
border: 1px solid rgba(0,0,0,.15);
|
182
|
-
@include border-radius(3px);
|
183
|
-
white-space: pre;
|
184
|
-
white-space: pre-wrap;
|
185
|
-
word-wrap: break-word;
|
186
|
-
|
187
|
-
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// UTILITY CLASSES
|
2
|
+
// ---------------
|
3
|
+
|
4
|
+
// Quick floats
|
5
|
+
.pull-right {
|
6
|
+
float: right;
|
7
|
+
}
|
8
|
+
.pull-left {
|
9
|
+
float: left;
|
10
|
+
}
|
11
|
+
|
12
|
+
// Toggling content
|
13
|
+
.hide {
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
.show {
|
17
|
+
display: block;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Visibility
|
21
|
+
.invisible {
|
22
|
+
visibility: hidden;
|
23
|
+
}
|
@@ -1,60 +1,99 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
// Variables.less
|
2
|
+
// Variables to customize the look and feel of Bootstrap
|
3
|
+
// -----------------------------------------------------
|
4
4
|
|
5
5
|
|
6
|
+
|
7
|
+
// GLOBAL VALUES
|
8
|
+
// --------------------------------------------------
|
9
|
+
|
6
10
|
// Links
|
7
|
-
$linkColor:
|
8
|
-
$linkColorHover:
|
11
|
+
$linkColor: #08c;
|
12
|
+
$linkColorHover: darken($linkColor, 15%);
|
9
13
|
|
10
14
|
// Grays
|
11
|
-
$black:
|
12
|
-
$
|
13
|
-
$
|
14
|
-
$
|
15
|
-
$
|
16
|
-
$
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
$
|
21
|
-
$
|
22
|
-
$
|
23
|
-
$
|
24
|
-
$
|
25
|
-
$
|
26
|
-
$
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
$
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
$
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
//
|
41
|
-
//
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
$
|
47
|
-
$
|
48
|
-
$
|
49
|
-
$
|
50
|
-
$
|
51
|
-
$
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
//
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
15
|
+
$black: #000;
|
16
|
+
$grayDarker: #222;
|
17
|
+
$grayDark: #333;
|
18
|
+
$gray: #555;
|
19
|
+
$grayLight: #999;
|
20
|
+
$grayLighter: #eee;
|
21
|
+
$white: #fff;
|
22
|
+
|
23
|
+
// Accent colors
|
24
|
+
$blue: #049cdb;
|
25
|
+
$blueDark: #0064cd;
|
26
|
+
$green: #46a546;
|
27
|
+
$red: #9d261d;
|
28
|
+
$yellow: #ffc40d;
|
29
|
+
$orange: #f89406;
|
30
|
+
$pink: #c3325f;
|
31
|
+
$purple: #7a43b6;
|
32
|
+
|
33
|
+
// Typography
|
34
|
+
$baseFontSize: 13px;
|
35
|
+
$baseFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
36
|
+
$baseLineHeight: 18px;
|
37
|
+
$textColor: $grayDark;
|
38
|
+
|
39
|
+
// Buttons
|
40
|
+
$primaryButtonBackground: $linkColor;
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
// COMPONENT VARIABLES
|
45
|
+
// --------------------------------------------------
|
46
|
+
|
47
|
+
// Z-index master list
|
48
|
+
// Used for a bird's eye view of components dependent on the z-axis
|
49
|
+
// Try to avoid customizing these :)
|
50
|
+
$zindexDropdown: 1000;
|
51
|
+
$zindexPopover: 1010;
|
52
|
+
$zindexTooltip: 1020;
|
53
|
+
$zindexFixedNavbar: 1030;
|
54
|
+
$zindexModalBackdrop: 1040;
|
55
|
+
$zindexModal: 1050;
|
56
|
+
|
57
|
+
// Input placeholder text color
|
58
|
+
$placeholderText: $grayLight;
|
59
|
+
|
60
|
+
// Navbar
|
61
|
+
$navbarHeight: 40px;
|
62
|
+
$navbarBackground: $grayDarker;
|
63
|
+
$navbarBackgroundHighlight: $grayDark;
|
64
|
+
|
65
|
+
$navbarText: $grayLight;
|
66
|
+
$navbarLinkColor: $grayLight;
|
67
|
+
$navbarLinkColorHover: $white;
|
68
|
+
|
69
|
+
// Form states and alerts
|
70
|
+
$warningText: #c09853;
|
71
|
+
$warningBackground: #fcf8e3;
|
72
|
+
$warningBorder: darken(adjust-hue($warningBackground, -10), 3%);
|
73
|
+
|
74
|
+
$errorText: #b94a48;
|
75
|
+
$errorBackground: #f2dede;
|
76
|
+
$errorBorder: darken(adjust-hue($errorBackground, -10), 3%);
|
77
|
+
|
78
|
+
$successText: #468847;
|
79
|
+
$successBackground: #dff0d8;
|
80
|
+
$successBorder: darken(adjust-hue($successBackground, -10), 5%);
|
81
|
+
|
82
|
+
$infoText: #3a87ad;
|
83
|
+
$infoBackground: #d9edf7;
|
84
|
+
$infoBorder: darken(adjust-hue($infoBackground, -10), 7%);
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
// GRID
|
89
|
+
// --------------------------------------------------
|
90
|
+
|
91
|
+
// Default 940px grid
|
92
|
+
$gridColumns: 12;
|
93
|
+
$gridColumnWidth: 60px;
|
94
|
+
$gridGutterWidth: 20px;
|
95
|
+
$gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
|
96
|
+
|
97
|
+
// Fluid grid
|
98
|
+
$fluidGridColumnWidth: 6.382978723%;
|
99
|
+
$fluidGridGutterWidth: 2.127659574%;
|