padrino-admin 0.16.2 → 0.18.0
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.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/Rakefile +0 -21
- data/lib/padrino-admin/access_control.rb +17 -4
- data/lib/padrino-admin/generators/actions.rb +1 -1
- data/lib/padrino-admin/generators/admin_app.rb +9 -11
- data/lib/padrino-admin/generators/admin_page.rb +12 -2
- data/lib/padrino-admin/generators/orm.rb +30 -47
- data/lib/padrino-admin/generators/templates/account/seeds.rb.tt +7 -2
- data/lib/padrino-admin/generators/templates/app/controllers/sessions.rb.tt +0 -4
- data/lib/padrino-admin/generators/templates/app.rb.tt +4 -1
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/affix.js +63 -36
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/alert.js +18 -11
- 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 +41 -23
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/carousel.js +90 -49
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/collapse.js +86 -44
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/dropdown.js +66 -48
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/modal.js +167 -52
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/popover.js +33 -20
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/scrollspy.js +58 -39
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tab.js +55 -25
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tooltip.js +370 -92
- data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/transition.js +22 -11
- data/lib/padrino-admin/generators/templates/assets/javascripts/jquery-3.7.1.min.js +2 -0
- data/lib/padrino-admin/generators/templates/assets/stylesheets/application.css +14 -0
- data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +6 -4
- data/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt +1 -1
- data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +1 -1
- data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +1 -1
- data/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +2 -2
- data/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/base/index.slim.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +1 -1
- data/lib/padrino-admin/generators/templates/slim/page/index.slim.tt +2 -2
- data/lib/padrino-admin/helpers/authentication_helpers.rb +1 -1
- data/lib/padrino-admin/helpers/view_helpers.rb +3 -3
- data/lib/padrino-admin/locale/orm/pl.yml +0 -11
- data/lib/padrino-admin.rb +1 -1
- data/padrino-admin.gemspec +0 -2
- data/test/generators/test_account_model_generator.rb +1 -60
- data/test/generators/test_admin_app_generator.rb +159 -25
- data/test/generators/test_admin_page_generator.rb +110 -9
- data/test/test_admin_application.rb +123 -0
- metadata +9 -124
- data/lib/padrino-admin/bootstrap-less/alerts.less +0 -67
- data/lib/padrino-admin/bootstrap-less/badges.less +0 -55
- data/lib/padrino-admin/bootstrap-less/bootstrap.less +0 -49
- data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +0 -26
- data/lib/padrino-admin/bootstrap-less/button-groups.less +0 -226
- data/lib/padrino-admin/bootstrap-less/buttons.less +0 -155
- data/lib/padrino-admin/bootstrap-less/carousel.less +0 -232
- data/lib/padrino-admin/bootstrap-less/close.less +0 -33
- data/lib/padrino-admin/bootstrap-less/code.less +0 -63
- data/lib/padrino-admin/bootstrap-less/component-animations.less +0 -29
- data/lib/padrino-admin/bootstrap-less/dropdowns.less +0 -213
- data/lib/padrino-admin/bootstrap-less/font-awesome/bordered-pulled.less +0 -16
- data/lib/padrino-admin/bootstrap-less/font-awesome/core.less +0 -12
- data/lib/padrino-admin/bootstrap-less/font-awesome/fixed-width.less +0 -6
- data/lib/padrino-admin/bootstrap-less/font-awesome/font-awesome.less +0 -17
- data/lib/padrino-admin/bootstrap-less/font-awesome/icons.less +0 -412
- data/lib/padrino-admin/bootstrap-less/font-awesome/larger.less +0 -13
- data/lib/padrino-admin/bootstrap-less/font-awesome/list.less +0 -19
- data/lib/padrino-admin/bootstrap-less/font-awesome/mixins.less +0 -20
- data/lib/padrino-admin/bootstrap-less/font-awesome/path.less +0 -14
- data/lib/padrino-admin/bootstrap-less/font-awesome/rotated-flipped.less +0 -9
- data/lib/padrino-admin/bootstrap-less/font-awesome/spinning.less +0 -30
- data/lib/padrino-admin/bootstrap-less/font-awesome/stacked.less +0 -20
- data/lib/padrino-admin/bootstrap-less/font-awesome/variables.less +0 -381
- data/lib/padrino-admin/bootstrap-less/forms.less +0 -419
- data/lib/padrino-admin/bootstrap-less/glyphicons.less +0 -233
- data/lib/padrino-admin/bootstrap-less/grid.less +0 -100
- data/lib/padrino-admin/bootstrap-less/input-groups.less +0 -157
- data/lib/padrino-admin/bootstrap-less/jumbotron.less +0 -44
- data/lib/padrino-admin/bootstrap-less/labels.less +0 -64
- data/lib/padrino-admin/bootstrap-less/list-group.less +0 -110
- data/lib/padrino-admin/bootstrap-less/media.less +0 -56
- data/lib/padrino-admin/bootstrap-less/mixins.less +0 -926
- data/lib/padrino-admin/bootstrap-less/modals.less +0 -138
- data/lib/padrino-admin/bootstrap-less/navbar.less +0 -616
- data/lib/padrino-admin/bootstrap-less/navs.less +0 -242
- data/lib/padrino-admin/bootstrap-less/normalize.less +0 -423
- data/lib/padrino-admin/bootstrap-less/padrino-admin.less +0 -18
- data/lib/padrino-admin/bootstrap-less/pager.less +0 -55
- data/lib/padrino-admin/bootstrap-less/pagination.less +0 -88
- data/lib/padrino-admin/bootstrap-less/panels.less +0 -230
- data/lib/padrino-admin/bootstrap-less/popovers.less +0 -133
- data/lib/padrino-admin/bootstrap-less/print.less +0 -101
- data/lib/padrino-admin/bootstrap-less/progress-bars.less +0 -80
- data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +0 -93
- data/lib/padrino-admin/bootstrap-less/scaffolding.less +0 -134
- data/lib/padrino-admin/bootstrap-less/tables.less +0 -233
- data/lib/padrino-admin/bootstrap-less/theme.less +0 -247
- data/lib/padrino-admin/bootstrap-less/thumbnails.less +0 -36
- data/lib/padrino-admin/bootstrap-less/tooltip.less +0 -95
- data/lib/padrino-admin/bootstrap-less/type.less +0 -296
- data/lib/padrino-admin/bootstrap-less/utilities.less +0 -56
- data/lib/padrino-admin/bootstrap-less/variables.less +0 -827
- data/lib/padrino-admin/bootstrap-less/wells.less +0 -29
- data/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +0 -67
- data/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +0 -61
- data/lib/padrino-admin/generators/templates/account/dynamoid.rb.tt +0 -55
- data/lib/padrino-admin/generators/templates/account/minirecord.rb.tt +0 -44
- data/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +0 -47
- data/lib/padrino-admin/generators/templates/account/ohm.rb.tt +0 -70
- data/lib/padrino-admin/generators/templates/assets/javascripts/jquery-1.11.0.min.js +0 -4
- data/lib/padrino-admin/locale/orm/cs.yml +0 -12
- data/lib/padrino-admin/locale/orm/da.yml +0 -12
- data/lib/padrino-admin/locale/orm/de.yml +0 -12
- data/lib/padrino-admin/locale/orm/en.yml +0 -12
- data/lib/padrino-admin/locale/orm/es.yml +0 -12
- data/lib/padrino-admin/locale/orm/fr.yml +0 -12
- data/lib/padrino-admin/locale/orm/hu.yml +0 -12
- data/lib/padrino-admin/locale/orm/it.yml +0 -12
- data/lib/padrino-admin/locale/orm/ja.yml +0 -12
- data/lib/padrino-admin/locale/orm/lv.yml +0 -12
- data/lib/padrino-admin/locale/orm/nl.yml +0 -12
- data/lib/padrino-admin/locale/orm/no.yml +0 -12
- data/lib/padrino-admin/locale/orm/pt_br.yml +0 -12
- data/lib/padrino-admin/locale/orm/ro.yml +0 -12
- data/lib/padrino-admin/locale/orm/ru.yml +0 -12
- data/lib/padrino-admin/locale/orm/sv.yml +0 -12
- data/lib/padrino-admin/locale/orm/tr.yml +0 -12
- data/lib/padrino-admin/locale/orm/uk.yml +0 -12
- data/lib/padrino-admin/locale/orm/zh_cn.yml +0 -12
- data/lib/padrino-admin/locale/orm/zh_tw.yml +0 -12
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// Core variables and mixins
|
|
2
|
-
@import "variables.less";
|
|
3
|
-
@import "mixins.less";
|
|
4
|
-
|
|
5
|
-
// Reset
|
|
6
|
-
@import "normalize.less";
|
|
7
|
-
@import "print.less";
|
|
8
|
-
|
|
9
|
-
// Core CSS
|
|
10
|
-
@import "scaffolding.less";
|
|
11
|
-
@import "type.less";
|
|
12
|
-
@import "code.less";
|
|
13
|
-
@import "grid.less";
|
|
14
|
-
@import "tables.less";
|
|
15
|
-
@import "forms.less";
|
|
16
|
-
@import "buttons.less";
|
|
17
|
-
|
|
18
|
-
// Components
|
|
19
|
-
@import "component-animations.less";
|
|
20
|
-
@import "glyphicons.less";
|
|
21
|
-
@import "dropdowns.less";
|
|
22
|
-
@import "button-groups.less";
|
|
23
|
-
@import "input-groups.less";
|
|
24
|
-
@import "navs.less";
|
|
25
|
-
@import "navbar.less";
|
|
26
|
-
@import "breadcrumbs.less";
|
|
27
|
-
@import "pagination.less";
|
|
28
|
-
@import "pager.less";
|
|
29
|
-
@import "labels.less";
|
|
30
|
-
@import "badges.less";
|
|
31
|
-
@import "jumbotron.less";
|
|
32
|
-
@import "thumbnails.less";
|
|
33
|
-
@import "alerts.less";
|
|
34
|
-
@import "progress-bars.less";
|
|
35
|
-
@import "media.less";
|
|
36
|
-
@import "list-group.less";
|
|
37
|
-
@import "panels.less";
|
|
38
|
-
@import "wells.less";
|
|
39
|
-
@import "close.less";
|
|
40
|
-
|
|
41
|
-
// Components w/ JavaScript
|
|
42
|
-
@import "modals.less";
|
|
43
|
-
@import "tooltip.less";
|
|
44
|
-
@import "popovers.less";
|
|
45
|
-
@import "carousel.less";
|
|
46
|
-
|
|
47
|
-
// Utility classes
|
|
48
|
-
@import "utilities.less";
|
|
49
|
-
@import "responsive-utilities.less";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Breadcrumbs
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.breadcrumb {
|
|
7
|
-
padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
|
|
8
|
-
margin-bottom: @line-height-computed;
|
|
9
|
-
list-style: none;
|
|
10
|
-
background-color: @breadcrumb-bg;
|
|
11
|
-
border-radius: @border-radius-base;
|
|
12
|
-
|
|
13
|
-
> li {
|
|
14
|
-
display: inline-block;
|
|
15
|
-
|
|
16
|
-
+ li:before {
|
|
17
|
-
content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space
|
|
18
|
-
padding: 0 5px;
|
|
19
|
-
color: @breadcrumb-color;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
> .active {
|
|
24
|
-
color: @breadcrumb-active-color;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Button groups
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
// Make the div behave like a button
|
|
6
|
-
.btn-group,
|
|
7
|
-
.btn-group-vertical {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: inline-block;
|
|
10
|
-
vertical-align: middle; // match .btn alignment given font-size hack above
|
|
11
|
-
> .btn {
|
|
12
|
-
position: relative;
|
|
13
|
-
float: left;
|
|
14
|
-
// Bring the "active" button to the front
|
|
15
|
-
&:hover,
|
|
16
|
-
&:focus,
|
|
17
|
-
&:active,
|
|
18
|
-
&.active {
|
|
19
|
-
z-index: 2;
|
|
20
|
-
}
|
|
21
|
-
&:focus {
|
|
22
|
-
// Remove focus outline when dropdown JS adds it after closing the menu
|
|
23
|
-
outline: none;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Prevent double borders when buttons are next to each other
|
|
29
|
-
.btn-group {
|
|
30
|
-
.btn + .btn,
|
|
31
|
-
.btn + .btn-group,
|
|
32
|
-
.btn-group + .btn,
|
|
33
|
-
.btn-group + .btn-group {
|
|
34
|
-
margin-left: -1px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Optional: Group multiple button groups together for a toolbar
|
|
39
|
-
.btn-toolbar {
|
|
40
|
-
margin-left: -5px; // Offset the first child's margin
|
|
41
|
-
&:extend(.clearfix all);
|
|
42
|
-
|
|
43
|
-
.btn-group,
|
|
44
|
-
.input-group {
|
|
45
|
-
float: left;
|
|
46
|
-
}
|
|
47
|
-
> .btn,
|
|
48
|
-
> .btn-group,
|
|
49
|
-
> .input-group {
|
|
50
|
-
margin-left: 5px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
|
55
|
-
border-radius: 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
|
59
|
-
.btn-group > .btn:first-child {
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
&:not(:last-child):not(.dropdown-toggle) {
|
|
62
|
-
.border-right-radius(0);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
|
66
|
-
.btn-group > .btn:last-child:not(:first-child),
|
|
67
|
-
.btn-group > .dropdown-toggle:not(:first-child) {
|
|
68
|
-
.border-left-radius(0);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
|
72
|
-
.btn-group > .btn-group {
|
|
73
|
-
float: left;
|
|
74
|
-
}
|
|
75
|
-
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
|
76
|
-
border-radius: 0;
|
|
77
|
-
}
|
|
78
|
-
.btn-group > .btn-group:first-child {
|
|
79
|
-
> .btn:last-child,
|
|
80
|
-
> .dropdown-toggle {
|
|
81
|
-
.border-right-radius(0);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
.btn-group > .btn-group:last-child > .btn:first-child {
|
|
85
|
-
.border-left-radius(0);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// On active and open, don't show outline
|
|
89
|
-
.btn-group .dropdown-toggle:active,
|
|
90
|
-
.btn-group.open .dropdown-toggle {
|
|
91
|
-
outline: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
// Sizing
|
|
96
|
-
//
|
|
97
|
-
// Remix the default button sizing classes into new ones for easier manipulation.
|
|
98
|
-
|
|
99
|
-
.btn-group-xs > .btn { .btn-xs(); }
|
|
100
|
-
.btn-group-sm > .btn { .btn-sm(); }
|
|
101
|
-
.btn-group-lg > .btn { .btn-lg(); }
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// Split button dropdowns
|
|
105
|
-
// ----------------------
|
|
106
|
-
|
|
107
|
-
// Give the line between buttons some depth
|
|
108
|
-
.btn-group > .btn + .dropdown-toggle {
|
|
109
|
-
padding-left: 8px;
|
|
110
|
-
padding-right: 8px;
|
|
111
|
-
}
|
|
112
|
-
.btn-group > .btn-lg + .dropdown-toggle {
|
|
113
|
-
padding-left: 12px;
|
|
114
|
-
padding-right: 12px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// The clickable button for toggling the menu
|
|
118
|
-
// Remove the gradient and set the same inset shadow as the :active state
|
|
119
|
-
.btn-group.open .dropdown-toggle {
|
|
120
|
-
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
|
121
|
-
|
|
122
|
-
// Show no shadow for `.btn-link` since it has no other button styles.
|
|
123
|
-
&.btn-link {
|
|
124
|
-
.box-shadow(none);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
// Reposition the caret
|
|
130
|
-
.btn .caret {
|
|
131
|
-
margin-left: 0;
|
|
132
|
-
}
|
|
133
|
-
// Carets in other button sizes
|
|
134
|
-
.btn-lg .caret {
|
|
135
|
-
border-width: @caret-width-large @caret-width-large 0;
|
|
136
|
-
border-bottom-width: 0;
|
|
137
|
-
}
|
|
138
|
-
// Upside down carets for .dropup
|
|
139
|
-
.dropup .btn-lg .caret {
|
|
140
|
-
border-width: 0 @caret-width-large @caret-width-large;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
// Vertical button groups
|
|
145
|
-
// ----------------------
|
|
146
|
-
|
|
147
|
-
.btn-group-vertical {
|
|
148
|
-
> .btn,
|
|
149
|
-
> .btn-group,
|
|
150
|
-
> .btn-group > .btn {
|
|
151
|
-
display: block;
|
|
152
|
-
float: none;
|
|
153
|
-
width: 100%;
|
|
154
|
-
max-width: 100%;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Clear floats so dropdown menus can be properly placed
|
|
158
|
-
> .btn-group {
|
|
159
|
-
&:extend(.clearfix all);
|
|
160
|
-
> .btn {
|
|
161
|
-
float: none;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
> .btn + .btn,
|
|
166
|
-
> .btn + .btn-group,
|
|
167
|
-
> .btn-group + .btn,
|
|
168
|
-
> .btn-group + .btn-group {
|
|
169
|
-
margin-top: -1px;
|
|
170
|
-
margin-left: 0;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.btn-group-vertical > .btn {
|
|
175
|
-
&:not(:first-child):not(:last-child) {
|
|
176
|
-
border-radius: 0;
|
|
177
|
-
}
|
|
178
|
-
&:first-child:not(:last-child) {
|
|
179
|
-
border-top-right-radius: @border-radius-base;
|
|
180
|
-
.border-bottom-radius(0);
|
|
181
|
-
}
|
|
182
|
-
&:last-child:not(:first-child) {
|
|
183
|
-
border-bottom-left-radius: @border-radius-base;
|
|
184
|
-
.border-top-radius(0);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
|
188
|
-
border-radius: 0;
|
|
189
|
-
}
|
|
190
|
-
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
|
191
|
-
> .btn:last-child,
|
|
192
|
-
> .dropdown-toggle {
|
|
193
|
-
.border-bottom-radius(0);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
|
197
|
-
.border-top-radius(0);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
// Justified button groups
|
|
203
|
-
// ----------------------
|
|
204
|
-
|
|
205
|
-
.btn-group-justified {
|
|
206
|
-
display: table;
|
|
207
|
-
width: 100%;
|
|
208
|
-
table-layout: fixed;
|
|
209
|
-
border-collapse: separate;
|
|
210
|
-
> .btn,
|
|
211
|
-
> .btn-group {
|
|
212
|
-
float: none;
|
|
213
|
-
display: table-cell;
|
|
214
|
-
width: 1%;
|
|
215
|
-
}
|
|
216
|
-
> .btn-group .btn {
|
|
217
|
-
width: 100%;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
// Checkbox and radio options
|
|
223
|
-
[data-toggle="buttons"] > .btn > input[type="radio"],
|
|
224
|
-
[data-toggle="buttons"] > .btn > input[type="checkbox"] {
|
|
225
|
-
display: none;
|
|
226
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Buttons
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Base styles
|
|
7
|
-
// --------------------------------------------------
|
|
8
|
-
|
|
9
|
-
.btn {
|
|
10
|
-
display: inline-block;
|
|
11
|
-
margin-bottom: 0; // For input.btn
|
|
12
|
-
font-weight: @btn-font-weight;
|
|
13
|
-
text-align: center;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
cursor: pointer;
|
|
16
|
-
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
|
17
|
-
border: 1px solid transparent;
|
|
18
|
-
white-space: nowrap;
|
|
19
|
-
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
|
20
|
-
.user-select(none);
|
|
21
|
-
|
|
22
|
-
&:focus {
|
|
23
|
-
.tab-focus();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:hover,
|
|
27
|
-
&:focus {
|
|
28
|
-
color: @btn-default-color;
|
|
29
|
-
text-decoration: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&:active,
|
|
33
|
-
&.active {
|
|
34
|
-
outline: 0;
|
|
35
|
-
background-image: none;
|
|
36
|
-
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.disabled,
|
|
40
|
-
&[disabled],
|
|
41
|
-
fieldset[disabled] & {
|
|
42
|
-
cursor: not-allowed;
|
|
43
|
-
pointer-events: none; // Future-proof disabling of clicks
|
|
44
|
-
.opacity(.65);
|
|
45
|
-
.box-shadow(none);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
// Alternate buttons
|
|
51
|
-
// --------------------------------------------------
|
|
52
|
-
|
|
53
|
-
.btn-default {
|
|
54
|
-
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
|
55
|
-
}
|
|
56
|
-
.btn-primary {
|
|
57
|
-
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
|
58
|
-
}
|
|
59
|
-
// Success appears as green
|
|
60
|
-
.btn-success {
|
|
61
|
-
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
|
62
|
-
}
|
|
63
|
-
// Info appears as blue-green
|
|
64
|
-
.btn-info {
|
|
65
|
-
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
|
66
|
-
}
|
|
67
|
-
// Warning appears as orange
|
|
68
|
-
.btn-warning {
|
|
69
|
-
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
|
70
|
-
}
|
|
71
|
-
// Danger and error appear as red
|
|
72
|
-
.btn-danger {
|
|
73
|
-
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// Link buttons
|
|
78
|
-
// -------------------------
|
|
79
|
-
|
|
80
|
-
// Make a button look and behave like a link
|
|
81
|
-
.btn-link {
|
|
82
|
-
color: @link-color;
|
|
83
|
-
font-weight: normal;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
border-radius: 0;
|
|
86
|
-
|
|
87
|
-
&,
|
|
88
|
-
&:active,
|
|
89
|
-
&[disabled],
|
|
90
|
-
fieldset[disabled] & {
|
|
91
|
-
background-color: transparent;
|
|
92
|
-
.box-shadow(none);
|
|
93
|
-
}
|
|
94
|
-
&,
|
|
95
|
-
&:hover,
|
|
96
|
-
&:focus,
|
|
97
|
-
&:active {
|
|
98
|
-
border-color: transparent;
|
|
99
|
-
}
|
|
100
|
-
&:hover,
|
|
101
|
-
&:focus {
|
|
102
|
-
color: @link-hover-color;
|
|
103
|
-
text-decoration: underline;
|
|
104
|
-
background-color: transparent;
|
|
105
|
-
}
|
|
106
|
-
&[disabled],
|
|
107
|
-
fieldset[disabled] & {
|
|
108
|
-
&:hover,
|
|
109
|
-
&:focus {
|
|
110
|
-
color: @btn-link-disabled-color;
|
|
111
|
-
text-decoration: none;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
// Button Sizes
|
|
118
|
-
// --------------------------------------------------
|
|
119
|
-
|
|
120
|
-
.btn-lg {
|
|
121
|
-
// line-height: ensure even-numbered height of button next to large input
|
|
122
|
-
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
|
123
|
-
}
|
|
124
|
-
.btn-sm {
|
|
125
|
-
// line-height: ensure proper height of button next to small input
|
|
126
|
-
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
|
127
|
-
}
|
|
128
|
-
.btn-xs {
|
|
129
|
-
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
// Block button
|
|
134
|
-
// --------------------------------------------------
|
|
135
|
-
|
|
136
|
-
.btn-block {
|
|
137
|
-
display: block;
|
|
138
|
-
width: 100%;
|
|
139
|
-
padding-left: 0;
|
|
140
|
-
padding-right: 0;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// Vertically space out multiple block buttons
|
|
144
|
-
.btn-block + .btn-block {
|
|
145
|
-
margin-top: 5px;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// Specificity overrides
|
|
149
|
-
input[type="submit"],
|
|
150
|
-
input[type="reset"],
|
|
151
|
-
input[type="button"] {
|
|
152
|
-
&.btn-block {
|
|
153
|
-
width: 100%;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Carousel
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Wrapper for the slide container and indicators
|
|
7
|
-
.carousel {
|
|
8
|
-
position: relative;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.carousel-inner {
|
|
12
|
-
position: relative;
|
|
13
|
-
overflow: hidden;
|
|
14
|
-
width: 100%;
|
|
15
|
-
|
|
16
|
-
> .item {
|
|
17
|
-
display: none;
|
|
18
|
-
position: relative;
|
|
19
|
-
.transition(.6s ease-in-out left);
|
|
20
|
-
|
|
21
|
-
// Account for jankitude on images
|
|
22
|
-
> img,
|
|
23
|
-
> a > img {
|
|
24
|
-
.img-responsive();
|
|
25
|
-
line-height: 1;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
> .active,
|
|
30
|
-
> .next,
|
|
31
|
-
> .prev { display: block; }
|
|
32
|
-
|
|
33
|
-
> .active {
|
|
34
|
-
left: 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
> .next,
|
|
38
|
-
> .prev {
|
|
39
|
-
position: absolute;
|
|
40
|
-
top: 0;
|
|
41
|
-
width: 100%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
> .next {
|
|
45
|
-
left: 100%;
|
|
46
|
-
}
|
|
47
|
-
> .prev {
|
|
48
|
-
left: -100%;
|
|
49
|
-
}
|
|
50
|
-
> .next.left,
|
|
51
|
-
> .prev.right {
|
|
52
|
-
left: 0;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
> .active.left {
|
|
56
|
-
left: -100%;
|
|
57
|
-
}
|
|
58
|
-
> .active.right {
|
|
59
|
-
left: 100%;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Left/right controls for nav
|
|
65
|
-
// ---------------------------
|
|
66
|
-
|
|
67
|
-
.carousel-control {
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 0;
|
|
70
|
-
left: 0;
|
|
71
|
-
bottom: 0;
|
|
72
|
-
width: @carousel-control-width;
|
|
73
|
-
.opacity(@carousel-control-opacity);
|
|
74
|
-
font-size: @carousel-control-font-size;
|
|
75
|
-
color: @carousel-control-color;
|
|
76
|
-
text-align: center;
|
|
77
|
-
text-shadow: @carousel-text-shadow;
|
|
78
|
-
// We can't have this transition here because WebKit cancels the carousel
|
|
79
|
-
// animation if you trip this while in the middle of another animation.
|
|
80
|
-
|
|
81
|
-
// Set gradients for backgrounds
|
|
82
|
-
&.left {
|
|
83
|
-
#gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
|
|
84
|
-
}
|
|
85
|
-
&.right {
|
|
86
|
-
left: auto;
|
|
87
|
-
right: 0;
|
|
88
|
-
#gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Hover/focus state
|
|
92
|
-
&:hover,
|
|
93
|
-
&:focus {
|
|
94
|
-
outline: none;
|
|
95
|
-
color: @carousel-control-color;
|
|
96
|
-
text-decoration: none;
|
|
97
|
-
.opacity(.9);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Toggles
|
|
101
|
-
.icon-prev,
|
|
102
|
-
.icon-next,
|
|
103
|
-
.glyphicon-chevron-left,
|
|
104
|
-
.glyphicon-chevron-right {
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 50%;
|
|
107
|
-
z-index: 5;
|
|
108
|
-
display: inline-block;
|
|
109
|
-
}
|
|
110
|
-
.icon-prev,
|
|
111
|
-
.glyphicon-chevron-left {
|
|
112
|
-
left: 50%;
|
|
113
|
-
}
|
|
114
|
-
.icon-next,
|
|
115
|
-
.glyphicon-chevron-right {
|
|
116
|
-
right: 50%;
|
|
117
|
-
}
|
|
118
|
-
.icon-prev,
|
|
119
|
-
.icon-next {
|
|
120
|
-
width: 20px;
|
|
121
|
-
height: 20px;
|
|
122
|
-
margin-top: -10px;
|
|
123
|
-
margin-left: -10px;
|
|
124
|
-
font-family: serif;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.icon-prev {
|
|
128
|
-
&:before {
|
|
129
|
-
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
.icon-next {
|
|
133
|
-
&:before {
|
|
134
|
-
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Optional indicator pips
|
|
140
|
-
//
|
|
141
|
-
// Add an unordered list with the following class and add a list item for each
|
|
142
|
-
// slide your carousel holds.
|
|
143
|
-
|
|
144
|
-
.carousel-indicators {
|
|
145
|
-
position: absolute;
|
|
146
|
-
bottom: 10px;
|
|
147
|
-
left: 50%;
|
|
148
|
-
z-index: 15;
|
|
149
|
-
width: 60%;
|
|
150
|
-
margin-left: -30%;
|
|
151
|
-
padding-left: 0;
|
|
152
|
-
list-style: none;
|
|
153
|
-
text-align: center;
|
|
154
|
-
|
|
155
|
-
li {
|
|
156
|
-
display: inline-block;
|
|
157
|
-
width: 10px;
|
|
158
|
-
height: 10px;
|
|
159
|
-
margin: 1px;
|
|
160
|
-
text-indent: -999px;
|
|
161
|
-
border: 1px solid @carousel-indicator-border-color;
|
|
162
|
-
border-radius: 10px;
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
|
|
165
|
-
// IE8-9 hack for event handling
|
|
166
|
-
//
|
|
167
|
-
// Internet Explorer 8-9 does not support clicks on elements without a set
|
|
168
|
-
// `background-color`. We cannot use `filter` since that's not viewed as a
|
|
169
|
-
// background color by the browser. Thus, a hack is needed.
|
|
170
|
-
//
|
|
171
|
-
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
|
172
|
-
// set alpha transparency for the best results possible.
|
|
173
|
-
background-color: #000 \9; // IE8
|
|
174
|
-
background-color: rgba(0,0,0,0); // IE9
|
|
175
|
-
}
|
|
176
|
-
.active {
|
|
177
|
-
margin: 0;
|
|
178
|
-
width: 12px;
|
|
179
|
-
height: 12px;
|
|
180
|
-
background-color: @carousel-indicator-active-bg;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// Optional captions
|
|
185
|
-
// -----------------------------
|
|
186
|
-
// Hidden by default for smaller viewports
|
|
187
|
-
.carousel-caption {
|
|
188
|
-
position: absolute;
|
|
189
|
-
left: 15%;
|
|
190
|
-
right: 15%;
|
|
191
|
-
bottom: 20px;
|
|
192
|
-
z-index: 10;
|
|
193
|
-
padding-top: 20px;
|
|
194
|
-
padding-bottom: 20px;
|
|
195
|
-
color: @carousel-caption-color;
|
|
196
|
-
text-align: center;
|
|
197
|
-
text-shadow: @carousel-text-shadow;
|
|
198
|
-
& .btn {
|
|
199
|
-
text-shadow: none; // No shadow for button elements in carousel-caption
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
// Scale up controls for tablets and up
|
|
205
|
-
@media screen and (min-width: @screen-sm-min) {
|
|
206
|
-
|
|
207
|
-
// Scale up the controls a smidge
|
|
208
|
-
.carousel-control {
|
|
209
|
-
.glyphicons-chevron-left,
|
|
210
|
-
.glyphicons-chevron-right,
|
|
211
|
-
.icon-prev,
|
|
212
|
-
.icon-next {
|
|
213
|
-
width: 30px;
|
|
214
|
-
height: 30px;
|
|
215
|
-
margin-top: -15px;
|
|
216
|
-
margin-left: -15px;
|
|
217
|
-
font-size: 30px;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Show and left align the captions
|
|
222
|
-
.carousel-caption {
|
|
223
|
-
left: 20%;
|
|
224
|
-
right: 20%;
|
|
225
|
-
padding-bottom: 30px;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// Move up the indicators
|
|
229
|
-
.carousel-indicators {
|
|
230
|
-
bottom: 20px;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Close icons
|
|
3
|
-
// --------------------------------------------------
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.close {
|
|
7
|
-
float: right;
|
|
8
|
-
font-size: (@font-size-base * 1.5);
|
|
9
|
-
font-weight: @close-font-weight;
|
|
10
|
-
line-height: 1;
|
|
11
|
-
color: @close-color;
|
|
12
|
-
text-shadow: @close-text-shadow;
|
|
13
|
-
.opacity(.2);
|
|
14
|
-
|
|
15
|
-
&:hover,
|
|
16
|
-
&:focus {
|
|
17
|
-
color: @close-color;
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
.opacity(.5);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Additional properties for button version
|
|
24
|
-
// iOS requires the button element instead of an anchor tag.
|
|
25
|
-
// If you want the anchor version, it requires `href="#"`.
|
|
26
|
-
button& {
|
|
27
|
-
padding: 0;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
background: transparent;
|
|
30
|
-
border: 0;
|
|
31
|
-
-webkit-appearance: none;
|
|
32
|
-
}
|
|
33
|
-
}
|