padrino-admin 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/padrino-admin/bootstrap-less/accordion.less +6 -9
- data/lib/padrino-admin/bootstrap-less/alerts.less +46 -51
- data/lib/padrino-admin/bootstrap-less/badges.less +2 -7
- data/lib/padrino-admin/bootstrap-less/bootstrap.less +0 -1
- data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +3 -3
- data/lib/padrino-admin/bootstrap-less/button-groups.less +37 -37
- data/lib/padrino-admin/bootstrap-less/buttons.less +52 -67
- data/lib/padrino-admin/bootstrap-less/carousel.less +24 -35
- data/lib/padrino-admin/bootstrap-less/close.less +14 -13
- data/lib/padrino-admin/bootstrap-less/code.less +4 -7
- data/lib/padrino-admin/bootstrap-less/component-animations.less +2 -11
- data/lib/padrino-admin/bootstrap-less/dropdowns.less +26 -82
- data/lib/padrino-admin/bootstrap-less/font-awesome-ie7.less +1895 -292
- data/lib/padrino-admin/bootstrap-less/font-awesome.less +26 -530
- data/lib/padrino-admin/bootstrap-less/font-awesome/bootstrap.less +84 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/core.less +129 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/extras.less +93 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/font-awesome-ie7.less +1953 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/font-awesome.less +33 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/icons.less +381 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/mixins.less +48 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/path.less +14 -0
- data/lib/padrino-admin/bootstrap-less/font-awesome/variables.less +735 -0
- data/lib/padrino-admin/bootstrap-less/forms.less +123 -227
- data/lib/padrino-admin/bootstrap-less/grid.less +174 -19
- data/lib/padrino-admin/bootstrap-less/jumbotron.less +4 -4
- data/lib/padrino-admin/bootstrap-less/labels.less +52 -28
- data/lib/padrino-admin/bootstrap-less/list-group.less +37 -44
- data/lib/padrino-admin/bootstrap-less/media.less +1 -1
- data/lib/padrino-admin/bootstrap-less/mixins.less +97 -120
- data/lib/padrino-admin/bootstrap-less/modals.less +5 -4
- data/lib/padrino-admin/bootstrap-less/navbar.less +148 -174
- data/lib/padrino-admin/bootstrap-less/navs.less +145 -164
- data/lib/padrino-admin/bootstrap-less/padrino-admin.less +2 -2
- data/lib/padrino-admin/bootstrap-less/pager.less +45 -33
- data/lib/padrino-admin/bootstrap-less/pagination.less +11 -23
- data/lib/padrino-admin/bootstrap-less/panels.less +11 -1
- data/lib/padrino-admin/bootstrap-less/popovers.less +6 -6
- data/lib/padrino-admin/bootstrap-less/print.less +13 -2
- data/lib/padrino-admin/bootstrap-less/progress-bars.less +3 -3
- data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +92 -32
- data/lib/padrino-admin/bootstrap-less/scaffolding.less +9 -18
- data/lib/padrino-admin/bootstrap-less/tables.less +70 -67
- data/lib/padrino-admin/bootstrap-less/thumbnails.less +6 -6
- data/lib/padrino-admin/bootstrap-less/tooltip.less +25 -1
- data/lib/padrino-admin/bootstrap-less/type.less +39 -46
- data/lib/padrino-admin/bootstrap-less/variables.less +135 -63
- data/lib/padrino-admin/generators/admin_app.rb +9 -0
- data/lib/padrino-admin/generators/admin_page.rb +9 -0
- data/lib/padrino-admin/generators/orm.rb +1 -10
- data/lib/padrino-admin/generators/templates/account/activerecord.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/account/minirecord.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/assets/images/font/FontAwesome.otf +0 -0
- data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.eot +0 -0
- data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.svg +153 -38
- data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.ttf +0 -0
- data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.woff +0 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/affix.js +120 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/{bootstrap-alert.js → alert.js} +32 -35
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +1 -1
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/{bootstrap-button.js → button.js} +37 -37
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/carousel.js +210 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/collapse.js +156 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/dropdown.js +155 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/modal.js +243 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/popover.js +111 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/scrollspy.js +156 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tab.js +133 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tooltip.js +356 -0
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/transition.js +47 -0
- data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +406 -452
- data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +3 -3
- data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +1 -1
- data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +3 -3
- data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/page/controller.rb.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +3 -3
- data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +1 -1
- data/lib/padrino-admin/helpers/view_helpers.rb +1 -1
- data/test/generators/test_admin_app_generator.rb +9 -0
- data/test/generators/test_admin_page_generator.rb +11 -0
- metadata +27 -23
- data/lib/padrino-admin/bootstrap-less/glyphicons.less +0 -200
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-affix.js +0 -117
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-carousel.js +0 -207
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-collapse.js +0 -167
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-dropdown.js +0 -165
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-modal.js +0 -251
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-popover.js +0 -114
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-scrollspy.js +0 -162
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tab.js +0 -144
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tooltip.js +0 -361
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-transition.js +0 -60
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-typeahead.js +0 -335
@@ -2,7 +2,6 @@
|
|
2
2
|
// Grid system
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
-
|
6
5
|
// Set the container width, and override it for fixed navbars in media queries
|
7
6
|
.container {
|
8
7
|
.container-fixed();
|
@@ -12,38 +11,194 @@
|
|
12
11
|
.row {
|
13
12
|
.make-row();
|
14
13
|
}
|
15
|
-
|
14
|
+
|
15
|
+
// Common styles for small and large grid columns
|
16
|
+
.col-1,
|
17
|
+
.col-2,
|
18
|
+
.col-3,
|
19
|
+
.col-4,
|
20
|
+
.col-5,
|
21
|
+
.col-6,
|
22
|
+
.col-7,
|
23
|
+
.col-8,
|
24
|
+
.col-9,
|
25
|
+
.col-10,
|
26
|
+
.col-11,
|
27
|
+
.col-12,
|
28
|
+
.col-sm-1,
|
29
|
+
.col-sm-2,
|
30
|
+
.col-sm-3,
|
31
|
+
.col-sm-4,
|
32
|
+
.col-sm-5,
|
33
|
+
.col-sm-6,
|
34
|
+
.col-sm-7,
|
35
|
+
.col-sm-8,
|
36
|
+
.col-sm-9,
|
37
|
+
.col-sm-10,
|
38
|
+
.col-sm-11,
|
39
|
+
.col-sm-12,
|
40
|
+
.col-lg-1,
|
41
|
+
.col-lg-2,
|
42
|
+
.col-lg-3,
|
43
|
+
.col-lg-4,
|
44
|
+
.col-lg-5,
|
45
|
+
.col-lg-6,
|
46
|
+
.col-lg-7,
|
47
|
+
.col-lg-8,
|
48
|
+
.col-lg-9,
|
49
|
+
.col-lg-10,
|
50
|
+
.col-lg-11,
|
51
|
+
.col-lg-12 {
|
16
52
|
position: relative;
|
53
|
+
// Prevent columns from collapsing when empty
|
17
54
|
min-height: 1px;
|
55
|
+
// Inner gutter via padding
|
18
56
|
padding-left: (@grid-gutter-width / 2);
|
19
57
|
padding-right: (@grid-gutter-width / 2);
|
20
58
|
}
|
21
59
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
60
|
+
|
61
|
+
|
62
|
+
//
|
63
|
+
// Container and grid column sizing
|
64
|
+
//
|
65
|
+
|
66
|
+
// Tiny device columns (smartphones)
|
67
|
+
.col-1,
|
68
|
+
.col-2,
|
69
|
+
.col-3,
|
70
|
+
.col-4,
|
71
|
+
.col-5,
|
72
|
+
.col-6,
|
73
|
+
.col-7,
|
74
|
+
.col-8,
|
75
|
+
.col-9,
|
76
|
+
.col-10,
|
77
|
+
.col-11,
|
78
|
+
.col-12 {
|
79
|
+
float: left;
|
30
80
|
}
|
81
|
+
.col-1 { width: percentage((1 / @grid-columns)); }
|
82
|
+
.col-2 { width: percentage((2 / @grid-columns)); }
|
83
|
+
.col-3 { width: percentage((3 / @grid-columns)); }
|
84
|
+
.col-4 { width: percentage((4 / @grid-columns)); }
|
85
|
+
.col-5 { width: percentage((5 / @grid-columns)); }
|
86
|
+
.col-6 { width: percentage((6 / @grid-columns)); }
|
87
|
+
.col-7 { width: percentage((7 / @grid-columns)); }
|
88
|
+
.col-8 { width: percentage((8 / @grid-columns)); }
|
89
|
+
.col-9 { width: percentage((9 / @grid-columns)); }
|
90
|
+
.col-10 { width: percentage((10/ @grid-columns)); }
|
91
|
+
.col-11 { width: percentage((11/ @grid-columns)); }
|
92
|
+
.col-12 { width: 100%; }
|
31
93
|
|
32
|
-
//
|
33
|
-
@media
|
94
|
+
// Small device columns (phones to tablets)
|
95
|
+
@media (min-width: @screen-tablet) {
|
34
96
|
.container {
|
35
|
-
max-width:
|
97
|
+
max-width: @container-tablet;
|
36
98
|
}
|
99
|
+
|
100
|
+
.col-sm-1,
|
101
|
+
.col-sm-2,
|
102
|
+
.col-sm-3,
|
103
|
+
.col-sm-4,
|
104
|
+
.col-sm-5,
|
105
|
+
.col-sm-6,
|
106
|
+
.col-sm-7,
|
107
|
+
.col-sm-8,
|
108
|
+
.col-sm-9,
|
109
|
+
.col-sm-10,
|
110
|
+
.col-sm-11,
|
111
|
+
.col-sm-12 {
|
112
|
+
float: left;
|
113
|
+
}
|
114
|
+
.col-sm-1 { width: percentage((1 / @grid-columns)); }
|
115
|
+
.col-sm-2 { width: percentage((2 / @grid-columns)); }
|
116
|
+
.col-sm-3 { width: percentage((3 / @grid-columns)); }
|
117
|
+
.col-sm-4 { width: percentage((4 / @grid-columns)); }
|
118
|
+
.col-sm-5 { width: percentage((5 / @grid-columns)); }
|
119
|
+
.col-sm-6 { width: percentage((6 / @grid-columns)); }
|
120
|
+
.col-sm-7 { width: percentage((7 / @grid-columns)); }
|
121
|
+
.col-sm-8 { width: percentage((8 / @grid-columns)); }
|
122
|
+
.col-sm-9 { width: percentage((9 / @grid-columns)); }
|
123
|
+
.col-sm-10 { width: percentage((10/ @grid-columns)); }
|
124
|
+
.col-sm-11 { width: percentage((11/ @grid-columns)); }
|
125
|
+
.col-sm-12 { width: 100%; }
|
126
|
+
|
127
|
+
// Push and pull columns for source order changes
|
128
|
+
.col-push-1 { left: percentage((1 / @grid-columns)); }
|
129
|
+
.col-push-2 { left: percentage((2 / @grid-columns)); }
|
130
|
+
.col-push-3 { left: percentage((3 / @grid-columns)); }
|
131
|
+
.col-push-4 { left: percentage((4 / @grid-columns)); }
|
132
|
+
.col-push-5 { left: percentage((5 / @grid-columns)); }
|
133
|
+
.col-push-6 { left: percentage((6 / @grid-columns)); }
|
134
|
+
.col-push-7 { left: percentage((7 / @grid-columns)); }
|
135
|
+
.col-push-8 { left: percentage((8 / @grid-columns)); }
|
136
|
+
.col-push-9 { left: percentage((9 / @grid-columns)); }
|
137
|
+
.col-push-10 { left: percentage((10/ @grid-columns)); }
|
138
|
+
.col-push-11 { left: percentage((11/ @grid-columns)); }
|
139
|
+
|
140
|
+
.col-pull-1 { right: percentage((1 / @grid-columns)); }
|
141
|
+
.col-pull-2 { right: percentage((2 / @grid-columns)); }
|
142
|
+
.col-pull-3 { right: percentage((3 / @grid-columns)); }
|
143
|
+
.col-pull-4 { right: percentage((4 / @grid-columns)); }
|
144
|
+
.col-pull-5 { right: percentage((5 / @grid-columns)); }
|
145
|
+
.col-pull-6 { right: percentage((6 / @grid-columns)); }
|
146
|
+
.col-pull-7 { right: percentage((7 / @grid-columns)); }
|
147
|
+
.col-pull-8 { right: percentage((8 / @grid-columns)); }
|
148
|
+
.col-pull-9 { right: percentage((9 / @grid-columns)); }
|
149
|
+
.col-pull-10 { right: percentage((10/ @grid-columns)); }
|
150
|
+
.col-pull-11 { right: percentage((11/ @grid-columns)); }
|
37
151
|
}
|
38
152
|
|
39
|
-
//
|
40
|
-
@media
|
153
|
+
// Medium and large device columns (desktop and up)
|
154
|
+
@media (min-width: @screen-desktop) {
|
41
155
|
.container {
|
42
|
-
max-width:
|
156
|
+
max-width: @container-desktop;
|
43
157
|
}
|
158
|
+
.col-lg-1,
|
159
|
+
.col-lg-2,
|
160
|
+
.col-lg-3,
|
161
|
+
.col-lg-4,
|
162
|
+
.col-lg-5,
|
163
|
+
.col-lg-6,
|
164
|
+
.col-lg-7,
|
165
|
+
.col-lg-8,
|
166
|
+
.col-lg-9,
|
167
|
+
.col-lg-10,
|
168
|
+
.col-lg-11,
|
169
|
+
.col-lg-12 {
|
170
|
+
float: left;
|
171
|
+
}
|
172
|
+
.col-lg-1 { width: percentage((1 / @grid-columns)); }
|
173
|
+
.col-lg-2 { width: percentage((2 / @grid-columns)); }
|
174
|
+
.col-lg-3 { width: percentage((3 / @grid-columns)); }
|
175
|
+
.col-lg-4 { width: percentage((4 / @grid-columns)); }
|
176
|
+
.col-lg-5 { width: percentage((5 / @grid-columns)); }
|
177
|
+
.col-lg-6 { width: percentage((6 / @grid-columns)); }
|
178
|
+
.col-lg-7 { width: percentage((7 / @grid-columns)); }
|
179
|
+
.col-lg-8 { width: percentage((8 / @grid-columns)); }
|
180
|
+
.col-lg-9 { width: percentage((9 / @grid-columns)); }
|
181
|
+
.col-lg-10 { width: percentage((10/ @grid-columns)); }
|
182
|
+
.col-lg-11 { width: percentage((11/ @grid-columns)); }
|
183
|
+
.col-lg-12 { width: 100%; }
|
184
|
+
|
185
|
+
// Offsets
|
186
|
+
.col-offset-1 { margin-left: percentage((1 / @grid-columns)); }
|
187
|
+
.col-offset-2 { margin-left: percentage((2 / @grid-columns)); }
|
188
|
+
.col-offset-3 { margin-left: percentage((3 / @grid-columns)); }
|
189
|
+
.col-offset-4 { margin-left: percentage((4 / @grid-columns)); }
|
190
|
+
.col-offset-5 { margin-left: percentage((5 / @grid-columns)); }
|
191
|
+
.col-offset-6 { margin-left: percentage((6 / @grid-columns)); }
|
192
|
+
.col-offset-7 { margin-left: percentage((7 / @grid-columns)); }
|
193
|
+
.col-offset-8 { margin-left: percentage((8 / @grid-columns)); }
|
194
|
+
.col-offset-9 { margin-left: percentage((9 / @grid-columns)); }
|
195
|
+
.col-offset-10 { margin-left: percentage((10/ @grid-columns)); }
|
196
|
+
.col-offset-11 { margin-left: percentage((11/ @grid-columns)); }
|
44
197
|
}
|
45
198
|
|
46
|
-
//
|
47
|
-
|
48
|
-
|
199
|
+
// Large desktops and up
|
200
|
+
@media (min-width: @screen-large-desktop) {
|
201
|
+
.container {
|
202
|
+
max-width: @container-large-desktop;
|
203
|
+
}
|
49
204
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
.jumbotron {
|
7
7
|
padding: 30px;
|
8
8
|
margin-bottom: 30px;
|
9
|
-
font-size:
|
9
|
+
font-size: (@font-size-base * 1.5);
|
10
10
|
font-weight: 200;
|
11
11
|
line-height: (@line-height-base * 1.5);
|
12
12
|
color: @jumbotron-lead-color;
|
@@ -20,13 +20,13 @@
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
|
23
|
-
@media screen and (min-width:
|
23
|
+
@media screen and (min-width: @screen-tablet) {
|
24
24
|
.jumbotron {
|
25
25
|
padding: 50px 60px;
|
26
|
-
border-radius:
|
26
|
+
border-radius: @border-radius-large; // Only round corners at higher resolutions
|
27
27
|
|
28
28
|
h1 {
|
29
|
-
font-size:
|
29
|
+
font-size: (@font-size-base * 4.5);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
}
|
@@ -2,45 +2,69 @@
|
|
2
2
|
// Labels
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
-
|
6
|
-
// Base classes
|
7
5
|
.label {
|
6
|
+
display: inline;
|
8
7
|
padding: .25em .6em;
|
9
8
|
font-size: 75%;
|
10
9
|
font-weight: 500;
|
11
|
-
color: #fff;
|
12
10
|
line-height: 1;
|
13
|
-
|
14
|
-
white-space: nowrap;
|
11
|
+
color: #fff;
|
15
12
|
text-align: center;
|
16
|
-
|
13
|
+
white-space: nowrap;
|
14
|
+
vertical-align: middle;
|
15
|
+
background-color: @gray-light;
|
17
16
|
border-radius: .25em;
|
18
|
-
}
|
19
17
|
|
20
|
-
//
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
18
|
+
// Add hover effects, but only for links
|
19
|
+
&[href] {
|
20
|
+
&:hover,
|
21
|
+
&:focus {
|
22
|
+
color: #fff;
|
23
|
+
text-decoration: none;
|
24
|
+
cursor: pointer;
|
25
|
+
background-color: darken(@gray-light, 10%);
|
26
|
+
}
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
30
|
// Colors
|
31
|
-
//
|
32
|
-
.label {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
&-success { background-color: @label-success-bg; }
|
41
|
-
&-success[href] { background-color: darken(@label-success-bg, 10%); }
|
42
|
-
// Info (turquoise)
|
43
|
-
&-info { background-color: @label-info-bg; }
|
44
|
-
&-info[href] { background-color: darken(@label-info-bg, 10%); }
|
31
|
+
// Contextual variations (linked labels get darker on :hover)
|
32
|
+
.label-danger {
|
33
|
+
background-color: @label-danger-bg;
|
34
|
+
&[href] {
|
35
|
+
&:hover,
|
36
|
+
&:focus {
|
37
|
+
background-color: darken(@label-danger-bg, 10%);
|
38
|
+
}
|
39
|
+
}
|
45
40
|
}
|
46
41
|
|
42
|
+
.label-success {
|
43
|
+
background-color: @label-success-bg;
|
44
|
+
&[href] {
|
45
|
+
&:hover,
|
46
|
+
&:focus {
|
47
|
+
background-color: darken(@label-success-bg, 10%);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.label-warning {
|
53
|
+
background-color: @label-warning-bg;
|
54
|
+
&[href] {
|
55
|
+
&:hover,
|
56
|
+
&:focus {
|
57
|
+
background-color: darken(@label-warning-bg, 10%);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.label-info {
|
63
|
+
background-color: @label-info-bg;
|
64
|
+
&[href] {
|
65
|
+
&:hover,
|
66
|
+
&:focus {
|
67
|
+
background-color: darken(@label-info-bg, 10%);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
@@ -7,7 +7,8 @@
|
|
7
7
|
// Easily usable on <ul>, <ol>, or <div>.
|
8
8
|
.list-group {
|
9
9
|
// No need to set list-style: none; since .list-group-item is block level
|
10
|
-
margin:
|
10
|
+
margin-bottom: 20px;
|
11
|
+
padding-left: 0; // reset padding because ul and ol
|
11
12
|
background-color: @list-group-bg;
|
12
13
|
}
|
13
14
|
|
@@ -21,16 +22,22 @@
|
|
21
22
|
// Place the border on the list items and negative margin up for better styling
|
22
23
|
margin-bottom: -1px;
|
23
24
|
border: 1px solid @list-group-border;
|
24
|
-
}
|
25
|
-
// Round the first and last items
|
26
|
-
.list-group-item:first-child {
|
27
|
-
.border-top-radius(@border-radius-base);
|
28
|
-
}
|
29
|
-
.list-group-item:last-child {
|
30
|
-
margin-bottom: 0;
|
31
|
-
.border-bottom-radius(@border-radius-base);
|
32
|
-
}
|
33
25
|
|
26
|
+
// Round the first and last items
|
27
|
+
&:first-child {
|
28
|
+
.border-top-radius(@border-radius-base);
|
29
|
+
}
|
30
|
+
&:last-child {
|
31
|
+
margin-bottom: 0;
|
32
|
+
.border-bottom-radius(@border-radius-base);
|
33
|
+
}
|
34
|
+
|
35
|
+
// Align badges within list items
|
36
|
+
> .badge {
|
37
|
+
float: right;
|
38
|
+
margin-right: -15px;
|
39
|
+
}
|
40
|
+
}
|
34
41
|
|
35
42
|
// Custom content options
|
36
43
|
// -------------------------
|
@@ -49,48 +56,34 @@
|
|
49
56
|
|
50
57
|
// Custom content within linked items
|
51
58
|
a.list-group-item {
|
59
|
+
// Colorize content accordingly
|
52
60
|
.list-group-item-heading {
|
53
61
|
color: #333;
|
54
62
|
}
|
55
63
|
.list-group-item-text {
|
56
64
|
color: #555;
|
57
65
|
}
|
58
|
-
}
|
59
66
|
|
60
|
-
// Hover state
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
}
|
66
|
-
|
67
|
-
// Active class on item itself, not parent
|
68
|
-
a.list-group-item.active {
|
69
|
-
z-index: 2; // Place active items above their siblings for proper border styling
|
70
|
-
color: @list-group-active-text;
|
71
|
-
background-color: @list-group-active-bg;
|
72
|
-
border-color: @list-group-active-border;
|
73
|
-
|
74
|
-
// Force color to inherit for custom content
|
75
|
-
.list-group-item-heading {
|
76
|
-
color: inherit;
|
77
|
-
}
|
78
|
-
.list-group-item-text {
|
79
|
-
color: lighten(@list-group-active-bg, 40%);
|
67
|
+
// Hover state
|
68
|
+
&:hover,
|
69
|
+
&:focus {
|
70
|
+
text-decoration: none;
|
71
|
+
background-color: @list-group-hover-bg;
|
80
72
|
}
|
81
|
-
}
|
82
73
|
|
83
|
-
//
|
84
|
-
|
74
|
+
// Active class on item itself, not parent
|
75
|
+
&.active {
|
76
|
+
z-index: 2; // Place active items above their siblings for proper border styling
|
77
|
+
color: @list-group-active-color;
|
78
|
+
background-color: @list-group-active-bg;
|
79
|
+
border-color: @list-group-active-border;
|
85
80
|
|
86
|
-
|
87
|
-
.list-group-item
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
}
|
94
|
-
.list-group-item > .glyphicon + .badge {
|
95
|
-
margin-right: 5px;
|
81
|
+
// Force color to inherit for custom content
|
82
|
+
.list-group-item-heading {
|
83
|
+
color: inherit;
|
84
|
+
}
|
85
|
+
.list-group-item-text {
|
86
|
+
color: lighten(@list-group-active-bg, 40%);
|
87
|
+
}
|
88
|
+
}
|
96
89
|
}
|