padrino-admin 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +3 -3
- data/lib/padrino-admin/access_control.rb +46 -47
- data/lib/padrino-admin/bootstrap-less/alerts.less +29 -55
- data/lib/padrino-admin/bootstrap-less/badges.less +13 -15
- data/lib/padrino-admin/bootstrap-less/bootstrap.less +17 -21
- data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +6 -11
- data/lib/padrino-admin/bootstrap-less/button-groups.less +114 -32
- data/lib/padrino-admin/bootstrap-less/buttons.less +41 -41
- data/lib/padrino-admin/bootstrap-less/carousel.less +43 -18
- data/lib/padrino-admin/bootstrap-less/close.less +4 -4
- data/lib/padrino-admin/bootstrap-less/code.less +8 -10
- data/lib/padrino-admin/bootstrap-less/component-animations.less +10 -4
- data/lib/padrino-admin/bootstrap-less/dropdowns.less +78 -51
- data/lib/padrino-admin/bootstrap-less/forms.less +183 -274
- data/lib/padrino-admin/bootstrap-less/glyphicons.less +232 -0
- data/lib/padrino-admin/bootstrap-less/grid.less +230 -88
- data/lib/padrino-admin/bootstrap-less/input-groups.less +127 -0
- data/lib/padrino-admin/bootstrap-less/jumbotron.less +16 -8
- data/lib/padrino-admin/bootstrap-less/labels.less +25 -37
- data/lib/padrino-admin/bootstrap-less/list-group.less +34 -35
- data/lib/padrino-admin/bootstrap-less/media.less +7 -5
- data/lib/padrino-admin/bootstrap-less/mixins.less +321 -108
- data/lib/padrino-admin/bootstrap-less/modals.less +24 -20
- data/lib/padrino-admin/bootstrap-less/navbar.less +474 -216
- data/lib/padrino-admin/bootstrap-less/navs.less +67 -85
- data/lib/padrino-admin/bootstrap-less/pager.less +4 -4
- data/lib/padrino-admin/bootstrap-less/pagination.less +64 -69
- data/lib/padrino-admin/bootstrap-less/panels.less +114 -62
- data/lib/padrino-admin/bootstrap-less/popovers.less +18 -18
- data/lib/padrino-admin/bootstrap-less/print.less +22 -7
- data/lib/padrino-admin/bootstrap-less/progress-bars.less +10 -33
- data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +141 -40
- data/lib/padrino-admin/bootstrap-less/scaffolding.less +66 -19
- data/lib/padrino-admin/bootstrap-less/tables.less +154 -158
- data/lib/padrino-admin/bootstrap-less/theme.less +232 -0
- data/lib/padrino-admin/bootstrap-less/thumbnails.less +9 -20
- data/lib/padrino-admin/bootstrap-less/tooltip.less +3 -3
- data/lib/padrino-admin/bootstrap-less/type.less +47 -55
- data/lib/padrino-admin/bootstrap-less/utilities.less +2 -2
- data/lib/padrino-admin/bootstrap-less/variables.less +289 -93
- data/lib/padrino-admin/bootstrap-less/wells.less +2 -2
- data/lib/padrino-admin/generators/actions.rb +11 -10
- data/lib/padrino-admin/generators/admin_app.rb +11 -11
- data/lib/padrino-admin/generators/admin_page.rb +9 -9
- data/lib/padrino-admin/generators/orm.rb +6 -7
- data/lib/padrino-admin/generators/templates/account/activerecord.rb.tt +7 -7
- data/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +16 -16
- data/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +7 -7
- data/lib/padrino-admin/generators/templates/account/minirecord.rb.tt +7 -7
- data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +8 -8
- data/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +7 -7
- data/lib/padrino-admin/generators/templates/account/ohm.rb.tt +9 -9
- data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +8 -8
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/affix.js +9 -3
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/alert.js +4 -2
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +4 -4
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/button.js +9 -5
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/carousel.js +19 -12
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/collapse.js +68 -45
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/dropdown.js +6 -7
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/modal.js +43 -40
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/popover.js +16 -10
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/scrollspy.js +6 -4
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tab.js +4 -2
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tooltip.js +78 -48
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/transition.js +10 -1
- data/lib/padrino-admin/generators/templates/assets/stylesheets/application.css +1 -0
- data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +622 -334
- data/lib/padrino-admin/generators/templates/erb/app/layouts/error.erb.tt +2 -2
- data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +9 -9
- data/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt +3 -3
- data/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +3 -3
- data/lib/padrino-admin/generators/templates/haml/app/layouts/error.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +9 -7
- data/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +2 -2
- data/lib/padrino-admin/generators/templates/haml/page/index.haml.tt +2 -2
- data/lib/padrino-admin/generators/templates/page/controller.rb.tt +3 -3
- data/lib/padrino-admin/generators/templates/slim/app/layouts/error.slim.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +9 -7
- data/lib/padrino-admin/generators/templates/slim/page/_form.slim.tt +2 -2
- data/lib/padrino-admin/generators/templates/slim/page/index.slim.tt +2 -2
- data/lib/padrino-admin/helpers/authentication_helpers.rb +35 -35
- data/lib/padrino-admin/helpers/view_helpers.rb +12 -19
- data/lib/padrino-admin/utils/crypt.rb +10 -9
- data/lib/padrino-admin.rb +4 -5
- data/test/fixtures/data_mapper.rb +10 -9
- data/test/generators/test_account_model_generator.rb +2 -2
- metadata +14 -21
@@ -3,11 +3,34 @@
|
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
5
|
// Button carets
|
6
|
-
|
7
|
-
|
6
|
+
//
|
7
|
+
// Match the button text color to the arrow/caret for indicating dropdown-ness.
|
8
|
+
|
9
|
+
.caret {
|
10
|
+
.btn-default & {
|
11
|
+
border-top-color: @btn-default-color;
|
12
|
+
}
|
13
|
+
.btn-primary &,
|
14
|
+
.btn-success &,
|
15
|
+
.btn-warning &,
|
16
|
+
.btn-danger &,
|
17
|
+
.btn-info & {
|
18
|
+
border-top-color: #fff;
|
19
|
+
}
|
8
20
|
}
|
9
|
-
.dropup
|
10
|
-
|
21
|
+
.dropup {
|
22
|
+
& .btn-default .caret {
|
23
|
+
border-bottom-color: @btn-default-color;
|
24
|
+
}
|
25
|
+
.btn-primary,
|
26
|
+
.btn-success,
|
27
|
+
.btn-warning,
|
28
|
+
.btn-danger,
|
29
|
+
.btn-info {
|
30
|
+
.caret {
|
31
|
+
border-bottom-color: #fff;
|
32
|
+
}
|
33
|
+
}
|
11
34
|
}
|
12
35
|
|
13
36
|
// Make the div behave like a button
|
@@ -21,15 +44,26 @@
|
|
21
44
|
float: left;
|
22
45
|
// Bring the "active" button to the front
|
23
46
|
&:hover,
|
24
|
-
&:
|
47
|
+
&:focus,
|
48
|
+
&:active,
|
49
|
+
&.active {
|
25
50
|
z-index: 2;
|
26
51
|
}
|
52
|
+
&:focus {
|
53
|
+
// Remove focus outline when dropdown JS adds it after closing the menu
|
54
|
+
outline: none;
|
55
|
+
}
|
27
56
|
}
|
28
57
|
}
|
29
58
|
|
30
59
|
// Prevent double borders when buttons are next to each other
|
31
|
-
.btn-group
|
32
|
-
|
60
|
+
.btn-group {
|
61
|
+
.btn + .btn,
|
62
|
+
.btn + .btn-group,
|
63
|
+
.btn-group + .btn,
|
64
|
+
.btn-group + .btn-group {
|
65
|
+
margin-left: -1px;
|
66
|
+
}
|
33
67
|
}
|
34
68
|
|
35
69
|
// Optional: Group multiple button groups together for a toolbar
|
@@ -40,11 +74,12 @@
|
|
40
74
|
float: left;
|
41
75
|
}
|
42
76
|
// Space out series of button groups
|
43
|
-
> .btn
|
44
|
-
> .btn-group
|
45
|
-
|
46
|
-
|
47
|
-
|
77
|
+
> .btn,
|
78
|
+
> .btn-group {
|
79
|
+
+ .btn,
|
80
|
+
+ .btn-group {
|
81
|
+
margin-left: 5px;
|
82
|
+
}
|
48
83
|
}
|
49
84
|
}
|
50
85
|
|
@@ -72,9 +107,11 @@
|
|
72
107
|
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
73
108
|
border-radius: 0;
|
74
109
|
}
|
75
|
-
.btn-group > .btn-group:first-child
|
76
|
-
|
77
|
-
.
|
110
|
+
.btn-group > .btn-group:first-child {
|
111
|
+
> .btn:last-child,
|
112
|
+
> .dropdown-toggle {
|
113
|
+
.border-right-radius(0);
|
114
|
+
}
|
78
115
|
}
|
79
116
|
.btn-group > .btn-group:last-child > .btn:first-child {
|
80
117
|
.border-left-radius(0);
|
@@ -87,6 +124,14 @@
|
|
87
124
|
}
|
88
125
|
|
89
126
|
|
127
|
+
// Sizing
|
128
|
+
//
|
129
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
130
|
+
|
131
|
+
.btn-group-xs > .btn { .btn-xs(); }
|
132
|
+
.btn-group-sm > .btn { .btn-sm(); }
|
133
|
+
.btn-group-lg > .btn { .btn-lg(); }
|
134
|
+
|
90
135
|
|
91
136
|
// Split button dropdowns
|
92
137
|
// ----------------------
|
@@ -96,7 +141,7 @@
|
|
96
141
|
padding-left: 8px;
|
97
142
|
padding-right: 8px;
|
98
143
|
}
|
99
|
-
.btn-group > .btn-
|
144
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
100
145
|
padding-left: 12px;
|
101
146
|
padding-right: 12px;
|
102
147
|
}
|
@@ -113,44 +158,81 @@
|
|
113
158
|
margin-left: 0;
|
114
159
|
}
|
115
160
|
// Carets in other button sizes
|
116
|
-
.btn-
|
117
|
-
border-width:
|
161
|
+
.btn-lg .caret {
|
162
|
+
border-width: @caret-width-large @caret-width-large 0;
|
163
|
+
border-bottom-width: 0;
|
118
164
|
}
|
119
165
|
// Upside down carets for .dropup
|
120
|
-
.dropup .btn-
|
121
|
-
border-
|
166
|
+
.dropup .btn-lg .caret {
|
167
|
+
border-width: 0 @caret-width-large @caret-width-large;
|
122
168
|
}
|
123
169
|
|
124
170
|
|
125
171
|
// Vertical button groups
|
126
172
|
// ----------------------
|
127
173
|
|
128
|
-
.btn-group-vertical
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
174
|
+
.btn-group-vertical {
|
175
|
+
> .btn,
|
176
|
+
> .btn-group {
|
177
|
+
display: block;
|
178
|
+
float: none;
|
179
|
+
width: 100%;
|
180
|
+
max-width: 100%;
|
181
|
+
}
|
182
|
+
|
183
|
+
// Clear floats so dropdown menus can be properly placed
|
184
|
+
> .btn-group {
|
185
|
+
.clearfix();
|
186
|
+
> .btn {
|
187
|
+
float: none;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
> .btn + .btn,
|
192
|
+
> .btn + .btn-group,
|
193
|
+
> .btn-group + .btn,
|
194
|
+
> .btn-group + .btn-group {
|
134
195
|
margin-top: -1px;
|
196
|
+
margin-left: 0;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
.btn-group-vertical > .btn {
|
201
|
+
&:not(:first-child):not(:last-child) {
|
202
|
+
border-radius: 0;
|
203
|
+
}
|
204
|
+
&:first-child:not(:last-child) {
|
205
|
+
border-top-right-radius: @border-radius-base;
|
206
|
+
.border-bottom-radius(0);
|
207
|
+
}
|
208
|
+
&:last-child:not(:first-child) {
|
209
|
+
border-bottom-left-radius: @border-radius-base;
|
210
|
+
.border-top-radius(0);
|
135
211
|
}
|
136
212
|
}
|
137
|
-
.btn-group-vertical .btn:not(:first-child):not(:last-child) {
|
213
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
138
214
|
border-radius: 0;
|
139
215
|
}
|
140
|
-
.btn-group-vertical .btn:first-child {
|
141
|
-
.
|
216
|
+
.btn-group-vertical > .btn-group:first-child {
|
217
|
+
> .btn:last-child,
|
218
|
+
> .dropdown-toggle {
|
219
|
+
.border-bottom-radius(0);
|
220
|
+
}
|
142
221
|
}
|
143
|
-
.btn-group-vertical .btn:last-child {
|
222
|
+
.btn-group-vertical > .btn-group:last-child > .btn:first-child {
|
144
223
|
.border-top-radius(0);
|
145
224
|
}
|
146
225
|
|
147
226
|
|
227
|
+
|
148
228
|
// Justified button groups
|
149
229
|
// ----------------------
|
150
230
|
|
151
231
|
.btn-group-justified {
|
152
232
|
display: table;
|
153
233
|
width: 100%;
|
234
|
+
table-layout: fixed;
|
235
|
+
border-collapse: separate;
|
154
236
|
.btn {
|
155
237
|
float: none;
|
156
238
|
display: table-cell;
|
@@ -160,7 +242,7 @@
|
|
160
242
|
|
161
243
|
|
162
244
|
// Checkbox and radio options
|
163
|
-
|
164
|
-
|
245
|
+
[data-toggle="buttons"] > .btn > input[type="radio"],
|
246
|
+
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
165
247
|
display: none;
|
166
248
|
}
|
@@ -12,7 +12,7 @@
|
|
12
12
|
padding: @padding-base-vertical @padding-base-horizontal;
|
13
13
|
margin-bottom: 0; // For input.btn
|
14
14
|
font-size: @font-size-base;
|
15
|
-
font-weight:
|
15
|
+
font-weight: @btn-font-weight;
|
16
16
|
line-height: @line-height-base;
|
17
17
|
text-align: center;
|
18
18
|
vertical-align: middle;
|
@@ -20,6 +20,7 @@
|
|
20
20
|
border: 1px solid transparent;
|
21
21
|
border-radius: @border-radius-base;
|
22
22
|
white-space: nowrap;
|
23
|
+
.user-select(none);
|
23
24
|
|
24
25
|
&:focus {
|
25
26
|
.tab-focus();
|
@@ -27,7 +28,7 @@
|
|
27
28
|
|
28
29
|
&:hover,
|
29
30
|
&:focus {
|
30
|
-
color:
|
31
|
+
color: @btn-default-color;
|
31
32
|
text-decoration: none;
|
32
33
|
}
|
33
34
|
|
@@ -41,7 +42,7 @@
|
|
41
42
|
&.disabled,
|
42
43
|
&[disabled],
|
43
44
|
fieldset[disabled] & {
|
44
|
-
cursor:
|
45
|
+
cursor: not-allowed;
|
45
46
|
pointer-events: none; // Future-proof disabling of clicks
|
46
47
|
.opacity(.65);
|
47
48
|
.box-shadow(none);
|
@@ -54,26 +55,26 @@
|
|
54
55
|
// --------------------------------------------------
|
55
56
|
|
56
57
|
.btn-default {
|
57
|
-
.
|
58
|
+
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
58
59
|
}
|
59
60
|
.btn-primary {
|
60
|
-
.
|
61
|
+
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
61
62
|
}
|
62
63
|
// Warning appears as orange
|
63
64
|
.btn-warning {
|
64
|
-
.
|
65
|
+
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
65
66
|
}
|
66
67
|
// Danger and error appear as red
|
67
68
|
.btn-danger {
|
68
|
-
.
|
69
|
+
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
69
70
|
}
|
70
71
|
// Success appears as green
|
71
72
|
.btn-success {
|
72
|
-
.
|
73
|
+
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
73
74
|
}
|
74
75
|
// Info appears as blue-green
|
75
76
|
.btn-info {
|
76
|
-
.
|
77
|
+
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
77
78
|
}
|
78
79
|
|
79
80
|
|
@@ -81,38 +82,36 @@
|
|
81
82
|
// -------------------------
|
82
83
|
|
83
84
|
// Make a button look and behave like a link
|
84
|
-
.btn-link,
|
85
|
-
.btn-link:active,
|
86
|
-
.btn-link[disabled],
|
87
|
-
fieldset[disabled] .btn-link {
|
88
|
-
background-color: transparent;
|
89
|
-
background-image: none;
|
90
|
-
.box-shadow(none);
|
91
|
-
}
|
92
|
-
.btn-link,
|
93
|
-
.btn-link:hover,
|
94
|
-
.btn-link:focus,
|
95
|
-
.btn-link:active {
|
96
|
-
border-color: transparent;
|
97
|
-
}
|
98
85
|
.btn-link {
|
99
86
|
color: @link-color;
|
100
87
|
font-weight: normal;
|
101
88
|
cursor: pointer;
|
102
89
|
border-radius: 0;
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
90
|
+
|
91
|
+
&,
|
92
|
+
&:active,
|
93
|
+
&[disabled],
|
94
|
+
fieldset[disabled] & {
|
95
|
+
background-color: transparent;
|
96
|
+
.box-shadow(none);
|
97
|
+
}
|
98
|
+
&,
|
99
|
+
&:hover,
|
100
|
+
&:focus,
|
101
|
+
&:active {
|
102
|
+
border-color: transparent;
|
103
|
+
}
|
104
|
+
&:hover,
|
105
|
+
&:focus {
|
106
|
+
color: @link-hover-color;
|
107
|
+
text-decoration: underline;
|
108
|
+
background-color: transparent;
|
109
|
+
}
|
111
110
|
&[disabled],
|
112
111
|
fieldset[disabled] & {
|
113
112
|
&:hover,
|
114
113
|
&:focus {
|
115
|
-
color: @
|
114
|
+
color: @btn-link-disabled-color;
|
116
115
|
text-decoration: none;
|
117
116
|
}
|
118
117
|
}
|
@@ -122,16 +121,17 @@ fieldset[disabled] .btn-link {
|
|
122
121
|
// Button Sizes
|
123
122
|
// --------------------------------------------------
|
124
123
|
|
125
|
-
.btn-
|
126
|
-
|
127
|
-
|
128
|
-
|
124
|
+
.btn-lg {
|
125
|
+
// line-height: ensure even-numbered height of button next to large input
|
126
|
+
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
127
|
+
}
|
128
|
+
.btn-sm,
|
129
|
+
.btn-xs {
|
130
|
+
// line-height: ensure proper height of button next to small input
|
131
|
+
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
129
132
|
}
|
130
|
-
.btn-
|
131
|
-
padding:
|
132
|
-
font-size: @font-size-small;
|
133
|
-
line-height: 1.5; // ensure proper height of button next to small input
|
134
|
-
border-radius: @border-radius-small;
|
133
|
+
.btn-xs {
|
134
|
+
padding: 1px 5px;
|
135
135
|
}
|
136
136
|
|
137
137
|
|
@@ -69,58 +69,77 @@
|
|
69
69
|
top: 0;
|
70
70
|
left: 0;
|
71
71
|
bottom: 0;
|
72
|
-
width:
|
73
|
-
.opacity(
|
74
|
-
font-size:
|
75
|
-
color:
|
72
|
+
width: @carousel-control-width;
|
73
|
+
.opacity(@carousel-control-opacity);
|
74
|
+
font-size: @carousel-control-font-size;
|
75
|
+
color: @carousel-control-color;
|
76
76
|
text-align: center;
|
77
|
-
text-shadow:
|
77
|
+
text-shadow: @carousel-text-shadow;
|
78
78
|
// We can't have this transition here because webkit cancels the carousel
|
79
79
|
// animation if you trip this while in the middle of another animation.
|
80
80
|
|
81
81
|
// Set gradients for backgrounds
|
82
82
|
&.left {
|
83
83
|
#gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
|
84
|
-
background-color: transparent;
|
85
84
|
}
|
86
85
|
&.right {
|
87
86
|
left: auto;
|
88
87
|
right: 0;
|
89
88
|
#gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
|
90
|
-
background-color: transparent;
|
91
89
|
}
|
92
90
|
|
93
91
|
// Hover/focus state
|
94
92
|
&:hover,
|
95
93
|
&:focus {
|
96
|
-
color:
|
94
|
+
color: @carousel-control-color;
|
97
95
|
text-decoration: none;
|
98
96
|
.opacity(.9);
|
99
97
|
}
|
100
98
|
|
101
99
|
// Toggles
|
102
|
-
.
|
100
|
+
.icon-prev,
|
101
|
+
.icon-next,
|
102
|
+
.glyphicon-chevron-left,
|
103
|
+
.glyphicon-chevron-right {
|
103
104
|
position: absolute;
|
104
105
|
top: 50%;
|
105
106
|
left: 50%;
|
106
107
|
z-index: 5;
|
107
108
|
display: inline-block;
|
109
|
+
}
|
110
|
+
.icon-prev,
|
111
|
+
.icon-next {
|
108
112
|
width: 20px;
|
109
113
|
height: 20px;
|
110
114
|
margin-top: -10px;
|
111
115
|
margin-left: -10px;
|
116
|
+
font-family: serif;
|
117
|
+
}
|
118
|
+
|
119
|
+
.icon-prev {
|
120
|
+
&:before {
|
121
|
+
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
122
|
+
}
|
123
|
+
}
|
124
|
+
.icon-next {
|
125
|
+
&:before {
|
126
|
+
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
127
|
+
}
|
112
128
|
}
|
113
129
|
}
|
114
130
|
|
115
131
|
// Optional indicator pips
|
116
|
-
//
|
132
|
+
//
|
133
|
+
// Add an unordered list with the following class and add a list item for each
|
134
|
+
// slide your carousel holds.
|
135
|
+
|
117
136
|
.carousel-indicators {
|
118
137
|
position: absolute;
|
119
|
-
bottom:
|
138
|
+
bottom: 10px;
|
120
139
|
left: 50%;
|
121
140
|
z-index: 15;
|
122
|
-
width:
|
123
|
-
margin-left: -
|
141
|
+
width: 60%;
|
142
|
+
margin-left: -30%;
|
124
143
|
padding-left: 0;
|
125
144
|
list-style: none;
|
126
145
|
text-align: center;
|
@@ -131,7 +150,7 @@
|
|
131
150
|
height: 10px;
|
132
151
|
margin: 1px;
|
133
152
|
text-indent: -999px;
|
134
|
-
border: 1px solid
|
153
|
+
border: 1px solid @carousel-indicator-border-color;
|
135
154
|
border-radius: 10px;
|
136
155
|
cursor: pointer;
|
137
156
|
}
|
@@ -139,7 +158,7 @@
|
|
139
158
|
margin: 0;
|
140
159
|
width: 12px;
|
141
160
|
height: 12px;
|
142
|
-
background-color:
|
161
|
+
background-color: @carousel-indicator-active-bg;
|
143
162
|
}
|
144
163
|
}
|
145
164
|
|
@@ -154,9 +173,9 @@
|
|
154
173
|
z-index: 10;
|
155
174
|
padding-top: 20px;
|
156
175
|
padding-bottom: 20px;
|
157
|
-
color:
|
176
|
+
color: @carousel-caption-color;
|
158
177
|
text-align: center;
|
159
|
-
text-shadow:
|
178
|
+
text-shadow: @carousel-text-shadow;
|
160
179
|
& .btn {
|
161
180
|
text-shadow: none; // No shadow for button elements in carousel-caption
|
162
181
|
}
|
@@ -167,7 +186,8 @@
|
|
167
186
|
@media screen and (min-width: @screen-tablet) {
|
168
187
|
|
169
188
|
// Scale up the controls a smidge
|
170
|
-
.carousel-control .
|
189
|
+
.carousel-control .icon-prev,
|
190
|
+
.carousel-control .icon-next {
|
171
191
|
width: 30px;
|
172
192
|
height: 30px;
|
173
193
|
margin-top: -15px;
|
@@ -181,4 +201,9 @@
|
|
181
201
|
right: 20%;
|
182
202
|
padding-bottom: 30px;
|
183
203
|
}
|
204
|
+
|
205
|
+
// Move up the indicators
|
206
|
+
.carousel-indicators {
|
207
|
+
bottom: 20px;
|
208
|
+
}
|
184
209
|
}
|
@@ -6,15 +6,15 @@
|
|
6
6
|
.close {
|
7
7
|
float: right;
|
8
8
|
font-size: (@font-size-base * 1.5);
|
9
|
-
font-weight:
|
9
|
+
font-weight: @close-font-weight;
|
10
10
|
line-height: 1;
|
11
|
-
color:
|
12
|
-
text-shadow:
|
11
|
+
color: @close-color;
|
12
|
+
text-shadow: @close-text-shadow;
|
13
13
|
.opacity(.2);
|
14
14
|
|
15
15
|
&:hover,
|
16
16
|
&:focus {
|
17
|
-
color:
|
17
|
+
color: @close-color;
|
18
18
|
text-decoration: none;
|
19
19
|
cursor: pointer;
|
20
20
|
.opacity(.5);
|
@@ -6,20 +6,17 @@
|
|
6
6
|
// Inline and block code styles
|
7
7
|
code,
|
8
8
|
pre {
|
9
|
-
padding: 0 3px 2px;
|
10
9
|
font-family: @font-family-monospace;
|
11
|
-
font-size: (@font-size-base - 2);
|
12
|
-
color: @gray-dark;
|
13
|
-
border-radius: 4px;
|
14
10
|
}
|
15
11
|
|
16
12
|
// Inline code
|
17
13
|
code {
|
18
14
|
padding: 2px 4px;
|
19
15
|
font-size: 90%;
|
20
|
-
color:
|
21
|
-
background-color:
|
16
|
+
color: @code-color;
|
17
|
+
background-color: @code-bg;
|
22
18
|
white-space: nowrap;
|
19
|
+
border-radius: @border-radius-base;
|
23
20
|
}
|
24
21
|
|
25
22
|
// Blocks of code
|
@@ -31,9 +28,9 @@ pre {
|
|
31
28
|
line-height: @line-height-base;
|
32
29
|
word-break: break-all;
|
33
30
|
word-wrap: break-word;
|
34
|
-
|
35
|
-
|
36
|
-
border: 1px solid
|
31
|
+
color: @pre-color;
|
32
|
+
background-color: @pre-bg;
|
33
|
+
border: 1px solid @pre-border-color;
|
37
34
|
border-radius: @border-radius-base;
|
38
35
|
|
39
36
|
// Make prettyprint styles more spaced out for readability
|
@@ -44,6 +41,7 @@ pre {
|
|
44
41
|
// Account for some code outputs that place code tags in pre tags
|
45
42
|
code {
|
46
43
|
padding: 0;
|
44
|
+
font-size: inherit;
|
47
45
|
color: inherit;
|
48
46
|
white-space: pre-wrap;
|
49
47
|
background-color: transparent;
|
@@ -53,6 +51,6 @@ pre {
|
|
53
51
|
|
54
52
|
// Enable scrollable blocks of code
|
55
53
|
.pre-scrollable {
|
56
|
-
max-height:
|
54
|
+
max-height: @pre-scrollable-max-height;
|
57
55
|
overflow-y: scroll;
|
58
56
|
}
|
@@ -2,6 +2,10 @@
|
|
2
2
|
// Component animations
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
+
// Heads up!
|
6
|
+
//
|
7
|
+
// We don't use the `.opacity()` mixin here since it causes a bug with text
|
8
|
+
// fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552.
|
5
9
|
|
6
10
|
.fade {
|
7
11
|
opacity: 0;
|
@@ -12,12 +16,14 @@
|
|
12
16
|
}
|
13
17
|
|
14
18
|
.collapse {
|
19
|
+
display: none;
|
20
|
+
&.in {
|
21
|
+
display: block;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.collapsing {
|
15
25
|
position: relative;
|
16
26
|
height: 0;
|
17
27
|
overflow: hidden;
|
18
28
|
.transition(height .35s ease);
|
19
|
-
|
20
|
-
&.in {
|
21
|
-
height: auto;
|
22
|
-
}
|
23
29
|
}
|