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
@@ -12,15 +12,17 @@
|
|
12
12
|
.img-thumbnail {
|
13
13
|
padding: 4px;
|
14
14
|
line-height: @line-height-base;
|
15
|
-
|
16
|
-
border
|
15
|
+
background-color: @thumbnail-bg;
|
16
|
+
border: 1px solid @thumbnail-border;
|
17
|
+
border-radius: @thumbnail-border-radius;
|
17
18
|
.transition(all .2s ease-in-out);
|
18
19
|
}
|
19
20
|
.thumbnail {
|
20
21
|
display: block;
|
21
22
|
}
|
23
|
+
.thumbnail > img,
|
22
24
|
.img-thumbnail {
|
23
|
-
|
25
|
+
.img-responsive();
|
24
26
|
}
|
25
27
|
|
26
28
|
// Add a hover state for linked versions only
|
@@ -31,12 +33,10 @@ a.thumbnail:focus {
|
|
31
33
|
|
32
34
|
// Images and captions
|
33
35
|
.thumbnail > img {
|
34
|
-
display: block;
|
35
|
-
max-width: 100%;
|
36
36
|
margin-left: auto;
|
37
37
|
margin-right: auto;
|
38
38
|
}
|
39
39
|
.thumbnail .caption {
|
40
40
|
padding: 9px;
|
41
|
-
color: @
|
41
|
+
color: @thumbnail-caption-color;
|
42
42
|
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
z-index: @zindex-tooltip;
|
10
10
|
display: block;
|
11
11
|
visibility: visible;
|
12
|
-
font-size:
|
12
|
+
font-size: @font-size-mini;
|
13
13
|
line-height: 1.4;
|
14
14
|
.opacity(0);
|
15
15
|
|
@@ -47,6 +47,18 @@
|
|
47
47
|
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
48
48
|
border-top-color: @tooltip-arrow-color;
|
49
49
|
}
|
50
|
+
&.top-left .tooltip-arrow {
|
51
|
+
bottom: 0;
|
52
|
+
left: 5px;
|
53
|
+
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
54
|
+
border-top-color: @tooltip-arrow-color;
|
55
|
+
}
|
56
|
+
&.top-right .tooltip-arrow {
|
57
|
+
bottom: 0;
|
58
|
+
right: 5px;
|
59
|
+
border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
|
60
|
+
border-top-color: @tooltip-arrow-color;
|
61
|
+
}
|
50
62
|
&.right .tooltip-arrow {
|
51
63
|
top: 50%;
|
52
64
|
left: 0;
|
@@ -68,4 +80,16 @@
|
|
68
80
|
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
69
81
|
border-bottom-color: @tooltip-arrow-color;
|
70
82
|
}
|
83
|
+
&.bottom-left .tooltip-arrow {
|
84
|
+
top: 0;
|
85
|
+
left: 5px;
|
86
|
+
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
87
|
+
border-bottom-color: @tooltip-arrow-color;
|
88
|
+
}
|
89
|
+
&.bottom-right .tooltip-arrow {
|
90
|
+
top: 0;
|
91
|
+
right: 5px;
|
92
|
+
border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
|
93
|
+
border-bottom-color: @tooltip-arrow-color;
|
94
|
+
}
|
71
95
|
}
|
@@ -7,10 +7,10 @@
|
|
7
7
|
// -------------------------
|
8
8
|
|
9
9
|
p {
|
10
|
-
margin: 0 0 (@line-height-
|
10
|
+
margin: 0 0 (@line-height-computed / 2);
|
11
11
|
}
|
12
12
|
.lead {
|
13
|
-
margin-bottom: @line-height-
|
13
|
+
margin-bottom: @line-height-computed;
|
14
14
|
font-size: (@font-size-base * 1.5);
|
15
15
|
font-weight: 200;
|
16
16
|
line-height: 1.4;
|
@@ -23,14 +23,12 @@ p {
|
|
23
23
|
// Ex: 14px base font * 85% = about 12px
|
24
24
|
small { font-size: 85%; }
|
25
25
|
|
26
|
-
strong { font-weight: bold; }
|
27
|
-
em { font-style: italic; }
|
28
26
|
cite { font-style: normal; }
|
29
27
|
|
30
28
|
// Utility classes
|
31
|
-
.text-muted { color: @
|
29
|
+
.text-muted { color: @gray-light; }
|
32
30
|
a.text-muted:hover,
|
33
|
-
a.text-muted:focus { color: darken(@
|
31
|
+
a.text-muted:focus { color: darken(@gray-light, 10%); }
|
34
32
|
|
35
33
|
.text-warning { color: @state-warning-text; }
|
36
34
|
a.text-warning:hover,
|
@@ -56,41 +54,37 @@ h1, h2, h3, h4, h5, h6,
|
|
56
54
|
.h1, .h2, .h3, .h4, .h5, .h6 {
|
57
55
|
font-family: @headings-font-family;
|
58
56
|
font-weight: @headings-font-weight;
|
59
|
-
line-height: @line-height
|
57
|
+
line-height: @headings-line-height;
|
60
58
|
small {
|
61
59
|
font-weight: normal;
|
62
60
|
line-height: 1;
|
63
|
-
color: @
|
61
|
+
color: @gray-light;
|
64
62
|
}
|
65
63
|
}
|
66
64
|
|
67
65
|
h1,
|
68
66
|
h2,
|
69
67
|
h3 {
|
70
|
-
margin-top: @line-height-
|
71
|
-
margin-bottom: (@line-height-
|
72
|
-
line-height: (@line-height-base * 2);
|
73
|
-
}
|
74
|
-
h3 {
|
75
|
-
line-height: (@line-height-base * 1.5);
|
68
|
+
margin-top: @line-height-computed;
|
69
|
+
margin-bottom: (@line-height-computed / 2);
|
76
70
|
}
|
77
71
|
h4,
|
78
72
|
h5,
|
79
73
|
h6 {
|
80
|
-
margin-top: (@line-height-
|
81
|
-
margin-bottom: (@line-height-
|
74
|
+
margin-top: (@line-height-computed / 2);
|
75
|
+
margin-bottom: (@line-height-computed / 2);
|
82
76
|
}
|
83
77
|
|
84
|
-
h1, .h1 { font-size: (@font-size-base * 2.
|
85
|
-
h2, .h2 { font-size: (@font-size-base * 2.25); } // ~32px
|
86
|
-
h3, .h3 { font-size: (@font-size-base * 1.
|
87
|
-
h4, .h4 { font-size: (@font-size-base * 1.25); } // ~18px
|
78
|
+
h1, .h1 { font-size: ceil(@font-size-base * 2.70); } // ~38px
|
79
|
+
h2, .h2 { font-size: ceil(@font-size-base * 2.25); } // ~32px
|
80
|
+
h3, .h3 { font-size: ceil(@font-size-base * 1.70); } // ~24px
|
81
|
+
h4, .h4 { font-size: ceil(@font-size-base * 1.25); } // ~18px
|
88
82
|
h5, .h5 { font-size: @font-size-base; }
|
89
|
-
h6, .h6 { font-size: (@font-size-base * 0.85); } // ~12px
|
83
|
+
h6, .h6 { font-size: ceil(@font-size-base * 0.85); } // ~12px
|
90
84
|
|
91
|
-
h1 small, .h1 small { font-size: (@font-size-base * 1.
|
92
|
-
h2 small, .h2 small { font-size: (@font-size-base * 1.25); } // ~18px
|
93
|
-
h3 small, .h3 small
|
85
|
+
h1 small, .h1 small { font-size: ceil(@font-size-base * 1.70); } // ~24px
|
86
|
+
h2 small, .h2 small { font-size: ceil(@font-size-base * 1.25); } // ~18px
|
87
|
+
h3 small, .h3 small,
|
94
88
|
h4 small, .h4 small { font-size: @font-size-base; }
|
95
89
|
|
96
90
|
|
@@ -98,9 +92,9 @@ h4 small, .h4 small { font-size: @font-size-base; }
|
|
98
92
|
// -------------------------
|
99
93
|
|
100
94
|
.page-header {
|
101
|
-
padding-bottom: ((@line-height-
|
102
|
-
margin: (@line-height-
|
103
|
-
border-bottom: 1px solid @
|
95
|
+
padding-bottom: ((@line-height-computed / 2) - 1);
|
96
|
+
margin: (@line-height-computed * 2) 0 @line-height-computed;
|
97
|
+
border-bottom: 1px solid @gray-lighter;
|
104
98
|
}
|
105
99
|
|
106
100
|
|
@@ -111,8 +105,8 @@ h4 small, .h4 small { font-size: @font-size-base; }
|
|
111
105
|
// Unordered and Ordered lists
|
112
106
|
ul,
|
113
107
|
ol {
|
114
|
-
|
115
|
-
margin:
|
108
|
+
margin-top: 0;
|
109
|
+
margin-bottom: (@line-height-computed / 2);
|
116
110
|
}
|
117
111
|
ul ul,
|
118
112
|
ul ol,
|
@@ -120,15 +114,12 @@ ol ol,
|
|
120
114
|
ol ul {
|
121
115
|
margin-bottom: 0;
|
122
116
|
}
|
123
|
-
li {
|
124
|
-
line-height: @line-height-base;
|
125
|
-
}
|
126
117
|
|
127
118
|
// List options
|
128
119
|
|
129
|
-
// Unstyled keeps list items block level, just removes list-style
|
120
|
+
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
130
121
|
.list-unstyled {
|
131
|
-
|
122
|
+
padding-left: 0;
|
132
123
|
list-style: none;
|
133
124
|
}
|
134
125
|
// Inline turns list items into inline-block
|
@@ -143,7 +134,7 @@ li {
|
|
143
134
|
|
144
135
|
// Description Lists
|
145
136
|
dl {
|
146
|
-
margin-bottom: @line-height-
|
137
|
+
margin-bottom: @line-height-computed;
|
147
138
|
}
|
148
139
|
dt,
|
149
140
|
dd {
|
@@ -153,11 +144,10 @@ dt {
|
|
153
144
|
font-weight: bold;
|
154
145
|
}
|
155
146
|
dd {
|
156
|
-
margin-left: (@line-height-
|
147
|
+
margin-left: (@line-height-computed / 2);
|
157
148
|
}
|
158
149
|
// Horizontal layout (like forms)
|
159
150
|
.dl-horizontal {
|
160
|
-
.clearfix(); // Ensure dl clears floats if empty dd elements present
|
161
151
|
dt {
|
162
152
|
float: left;
|
163
153
|
width: (@component-offset-horizontal - 20);
|
@@ -166,6 +156,7 @@ dd {
|
|
166
156
|
.text-overflow();
|
167
157
|
}
|
168
158
|
dd {
|
159
|
+
.clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
169
160
|
margin-left: @component-offset-horizontal;
|
170
161
|
}
|
171
162
|
}
|
@@ -175,7 +166,7 @@ dd {
|
|
175
166
|
|
176
167
|
// Horizontal rules
|
177
168
|
hr {
|
178
|
-
margin: @line-height-
|
169
|
+
margin: @line-height-computed 0;
|
179
170
|
border: 0;
|
180
171
|
border-top: 1px solid @hr-border;
|
181
172
|
border-bottom: 1px solid #fff;
|
@@ -187,7 +178,7 @@ abbr[title],
|
|
187
178
|
// Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
|
188
179
|
abbr[data-original-title] {
|
189
180
|
cursor: help;
|
190
|
-
border-bottom: 1px dotted @
|
181
|
+
border-bottom: 1px dotted @gray-light;
|
191
182
|
}
|
192
183
|
abbr.initialism {
|
193
184
|
font-size: 90%;
|
@@ -196,19 +187,21 @@ abbr.initialism {
|
|
196
187
|
|
197
188
|
// Blockquotes
|
198
189
|
blockquote {
|
199
|
-
padding:
|
200
|
-
margin: 0 0 @line-height-
|
201
|
-
border-left: 5px solid @
|
190
|
+
padding: (@line-height-computed / 2) @line-height-computed;
|
191
|
+
margin: 0 0 @line-height-computed;
|
192
|
+
border-left: 5px solid @gray-lighter;
|
202
193
|
p {
|
203
|
-
margin-bottom: 0;
|
204
194
|
font-size: (@font-size-base * 1.25);
|
205
195
|
font-weight: 300;
|
206
196
|
line-height: 1.25;
|
207
197
|
}
|
198
|
+
p:last-child {
|
199
|
+
margin-bottom: 0;
|
200
|
+
}
|
208
201
|
small {
|
209
202
|
display: block;
|
210
203
|
line-height: @line-height-base;
|
211
|
-
color: @
|
204
|
+
color: @gray-light;
|
212
205
|
&:before {
|
213
206
|
content: '\2014 \00A0';
|
214
207
|
}
|
@@ -219,7 +212,7 @@ blockquote {
|
|
219
212
|
float: right;
|
220
213
|
padding-right: 15px;
|
221
214
|
padding-left: 0;
|
222
|
-
border-right: 5px solid @
|
215
|
+
border-right: 5px solid @gray-lighter;
|
223
216
|
border-left: 0;
|
224
217
|
p,
|
225
218
|
small {
|
@@ -247,7 +240,7 @@ blockquote:after {
|
|
247
240
|
// Addresses
|
248
241
|
address {
|
249
242
|
display: block;
|
250
|
-
margin-bottom: @line-height-
|
243
|
+
margin-bottom: @line-height-computed;
|
251
244
|
font-style: normal;
|
252
245
|
line-height: @line-height-base;
|
253
246
|
}
|
@@ -10,11 +10,11 @@
|
|
10
10
|
// Grays
|
11
11
|
// -------------------------
|
12
12
|
|
13
|
-
@
|
14
|
-
@
|
15
|
-
@gray:
|
16
|
-
@
|
17
|
-
@
|
13
|
+
@gray-darker: lighten(#000, 13.5%); // #222
|
14
|
+
@gray-dark: lighten(#000, 20%); // #333
|
15
|
+
@gray: lighten(#000, 33.5%); // #555
|
16
|
+
@gray-light: lighten(#000, 60%); // #999
|
17
|
+
@gray-lighter: lighten(#000, 93.5%); // #eee
|
18
18
|
|
19
19
|
// Brand colors
|
20
20
|
// -------------------------
|
@@ -29,7 +29,7 @@
|
|
29
29
|
// -------------------------
|
30
30
|
|
31
31
|
@body-bg: #fff;
|
32
|
-
@text-color: @
|
32
|
+
@text-color: @gray-dark;
|
33
33
|
|
34
34
|
// Links
|
35
35
|
// -------------------------
|
@@ -46,27 +46,34 @@
|
|
46
46
|
@font-family-base: @font-family-sans-serif;
|
47
47
|
|
48
48
|
@font-size-base: 14px;
|
49
|
-
@font-size-large: (@font-size-base * 1.25); // ~18px
|
50
|
-
@font-size-small: (@font-size-base * 0.85); // ~12px
|
51
|
-
@font-size-mini: (@font-size-base * 0.75); // ~11px
|
49
|
+
@font-size-large: ceil(@font-size-base * 1.25); // ~18px
|
50
|
+
@font-size-small: ceil(@font-size-base * 0.85); // ~12px
|
51
|
+
@font-size-mini: ceil(@font-size-base * 0.75); // ~11px
|
52
52
|
|
53
|
-
@line-height-base:
|
53
|
+
@line-height-base: 1.428571429; // 20/14
|
54
|
+
@line-height-computed: floor(@font-size-base * @line-height-base); // ~20px
|
54
55
|
|
55
|
-
@headings-font-family:
|
56
|
+
@headings-font-family: @font-family-base;
|
56
57
|
@headings-font-weight: 500;
|
58
|
+
@headings-line-height: 1.1;
|
57
59
|
|
58
60
|
|
59
61
|
// Components
|
60
62
|
// -------------------------
|
61
|
-
// Based on 14px font-size and 1.
|
63
|
+
// Based on 14px font-size and 1.428 line-height (~20px to start)
|
62
64
|
|
63
|
-
@padding-
|
64
|
-
@padding-
|
65
|
-
@padding-mini: 0 6px; // 22px
|
65
|
+
@padding-base-vertical: 8px;
|
66
|
+
@padding-base-horizontal: 12px;
|
66
67
|
|
67
|
-
@
|
68
|
-
@
|
69
|
-
|
68
|
+
@padding-large-vertical: 14px;
|
69
|
+
@padding-large-horizontal: 16px;
|
70
|
+
|
71
|
+
@padding-small-vertical: 5px;
|
72
|
+
@padding-small-horizontal: 10px;
|
73
|
+
|
74
|
+
@border-radius-base: 4px;
|
75
|
+
@border-radius-large: 6px;
|
76
|
+
@border-radius-small: 3px;
|
70
77
|
|
71
78
|
@component-active-bg: @brand-primary;
|
72
79
|
|
@@ -78,30 +85,35 @@
|
|
78
85
|
@table-bg-accent: #f9f9f9; // for striping
|
79
86
|
@table-bg-hover: #f5f5f5; // for hover
|
80
87
|
|
81
|
-
@table-border:
|
88
|
+
@table-border-color: #ddd; // table and cell border
|
82
89
|
|
83
90
|
|
84
91
|
// Buttons
|
85
92
|
// -------------------------
|
86
93
|
|
87
|
-
@btn-color:
|
88
|
-
@btn-bg:
|
89
|
-
@btn-border:
|
94
|
+
@btn-default-color: #fff;
|
95
|
+
@btn-default-bg: #474949;
|
96
|
+
@btn-default-border: @btn-default-bg;
|
90
97
|
|
98
|
+
@btn-primary-color: @btn-default-color;
|
91
99
|
@btn-primary-bg: @brand-primary;
|
92
100
|
@btn-primary-border: @btn-primary-bg;
|
93
101
|
|
94
|
-
@btn-
|
95
|
-
@btn-success-
|
102
|
+
@btn-success-color: @btn-default-color;
|
103
|
+
@btn-success-bg: @brand-success;
|
104
|
+
@btn-success-border: @btn-success-bg;
|
96
105
|
|
97
|
-
@btn-
|
98
|
-
@btn-warning-
|
106
|
+
@btn-warning-color: @btn-default-color;
|
107
|
+
@btn-warning-bg: @brand-warning;
|
108
|
+
@btn-warning-border: @btn-warning-bg;
|
99
109
|
|
100
|
-
@btn-
|
101
|
-
@btn-danger-
|
110
|
+
@btn-danger-color: @btn-default-color;
|
111
|
+
@btn-danger-bg: @brand-danger;
|
112
|
+
@btn-danger-border: @btn-danger-bg;
|
102
113
|
|
103
|
-
@btn-
|
104
|
-
@btn-info-
|
114
|
+
@btn-info-color: @btn-default-color;
|
115
|
+
@btn-info-bg: @brand-info;
|
116
|
+
@btn-info-border: @btn-info-bg;
|
105
117
|
|
106
118
|
|
107
119
|
|
@@ -109,18 +121,16 @@
|
|
109
121
|
// -------------------------
|
110
122
|
|
111
123
|
@input-bg: #fff;
|
112
|
-
@input-bg-disabled: @
|
124
|
+
@input-bg-disabled: @gray-lighter;
|
113
125
|
|
114
126
|
@input-border: #ccc;
|
115
127
|
@input-border-radius: @border-radius-base;
|
116
128
|
|
117
|
-
@input-color-placeholder: @
|
129
|
+
@input-color-placeholder: @gray-light;
|
118
130
|
|
119
|
-
@input-height-base: (@line-height-
|
120
|
-
@input-height-large: (@
|
121
|
-
@input-height-small: (@
|
122
|
-
|
123
|
-
@form-actions-bg: #f5f5f5;
|
131
|
+
@input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
|
132
|
+
@input-height-large: (ceil(@font-size-large * @line-height-base) + (@padding-large-vertical * 2) + 2);
|
133
|
+
@input-height-small: (ceil(@font-size-small * @line-height-base) + (@padding-small-vertical * 2) + 2);
|
124
134
|
|
125
135
|
|
126
136
|
// Dropdowns
|
@@ -131,13 +141,12 @@
|
|
131
141
|
@dropdown-divider-top: #e5e5e5;
|
132
142
|
@dropdown-divider-bottom: #fff;
|
133
143
|
|
134
|
-
@dropdown-link-color: @grayDark;
|
135
|
-
@dropdown-link-hover-color: #fff;
|
136
|
-
@dropdown-link-hover-bg: @dropdown-link-active-bg;
|
137
|
-
|
138
144
|
@dropdown-link-active-color: #fff;
|
139
145
|
@dropdown-link-active-bg: @component-active-bg;
|
140
146
|
|
147
|
+
@dropdown-link-color: @gray-dark;
|
148
|
+
@dropdown-link-hover-color: #fff;
|
149
|
+
@dropdown-link-hover-bg: @dropdown-link-active-bg;
|
141
150
|
|
142
151
|
|
143
152
|
// COMPONENT VARIABLES
|
@@ -157,23 +166,14 @@
|
|
157
166
|
@zindex-modal: 1050;
|
158
167
|
|
159
168
|
|
160
|
-
// Glyphicons font path
|
161
|
-
// -------------------------
|
162
|
-
@glyphicons-font-path: "../fonts";
|
163
|
-
|
164
|
-
|
165
169
|
// Navbar
|
166
170
|
// -------------------------
|
167
171
|
|
168
172
|
// Basics of a navbar
|
169
173
|
@navbar-height: 50px;
|
170
|
-
@navbar-
|
174
|
+
@navbar-color: #777;
|
171
175
|
@navbar-bg: #eee;
|
172
|
-
|
173
|
-
// Navbar brand label
|
174
|
-
@navbar-brand-color: @navbar-link-color;
|
175
|
-
@navbar-brand-hover-color: darken(@navbar-link-color, 10%);
|
176
|
-
@navbar-brand-hover-bg: transparent;
|
176
|
+
@navbar-padding: floor(@grid-gutter-width / 2); // ~15px
|
177
177
|
|
178
178
|
// Navbar links
|
179
179
|
@navbar-link-color: #777;
|
@@ -184,17 +184,17 @@
|
|
184
184
|
@navbar-link-disabled-color: #ccc;
|
185
185
|
@navbar-link-disabled-bg: transparent;
|
186
186
|
|
187
|
+
// Navbar brand label
|
188
|
+
@navbar-brand-color: @navbar-link-color;
|
189
|
+
@navbar-brand-hover-color: darken(@navbar-link-color, 10%);
|
190
|
+
@navbar-brand-hover-bg: transparent;
|
191
|
+
|
187
192
|
// Inverted navbar
|
188
|
-
@navbar-inverse-
|
193
|
+
@navbar-inverse-color: @gray-light;
|
189
194
|
@navbar-inverse-bg: #222;
|
190
195
|
|
191
|
-
// Inverted navbar brand label
|
192
|
-
@navbar-inverse-brand-color: @navbar-inverse-link-color;
|
193
|
-
@navbar-inverse-brand-color-hover: #fff;
|
194
|
-
@navbar-inverse-brand-bg-hover: transparent;
|
195
|
-
|
196
196
|
// Inverted navbar links
|
197
|
-
@navbar-inverse-link-color: @
|
197
|
+
@navbar-inverse-link-color: @gray-light;
|
198
198
|
@navbar-inverse-link-hover-color: #fff;
|
199
199
|
@navbar-inverse-link-hover-bg: transparent;
|
200
200
|
@navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
|
@@ -202,6 +202,11 @@
|
|
202
202
|
@navbar-inverse-link-disabled-color: #444;
|
203
203
|
@navbar-inverse-link-disabled-bg: transparent;
|
204
204
|
|
205
|
+
// Inverted navbar brand label
|
206
|
+
@navbar-inverse-brand-color: @navbar-inverse-link-color;
|
207
|
+
@navbar-inverse-brand-hover-color: #fff;
|
208
|
+
@navbar-inverse-brand-hover-bg: transparent;
|
209
|
+
|
205
210
|
// Inverted navbar search
|
206
211
|
// Normal navbar needs no special styles or vars
|
207
212
|
@navbar-inverse-search-bg: lighten(@navbar-inverse-bg, 25%);
|
@@ -221,7 +226,7 @@
|
|
221
226
|
// Jumbotron
|
222
227
|
// -------------------------
|
223
228
|
|
224
|
-
@jumbotron-bg: @
|
229
|
+
@jumbotron-bg: @gray-lighter;
|
225
230
|
@jumbotron-heading-color: inherit;
|
226
231
|
@jumbotron-lead-color: inherit;
|
227
232
|
|
@@ -275,6 +280,28 @@
|
|
275
280
|
// -------------------------
|
276
281
|
@modal-inner-padding: 20px;
|
277
282
|
|
283
|
+
@modal-title-padding: 15px;
|
284
|
+
@modal-title-line-height: @line-height-base;
|
285
|
+
|
286
|
+
// Alerts
|
287
|
+
// -------------------------
|
288
|
+
@alert-bg: @state-warning-bg;
|
289
|
+
@alert-text: @state-warning-text;
|
290
|
+
@alert-border: @state-warning-border;
|
291
|
+
@alert-border-radius: @border-radius-base;
|
292
|
+
|
293
|
+
@alert-success-bg: @state-success-bg;
|
294
|
+
@alert-success-text: @state-success-text;
|
295
|
+
@alert-success-border: @state-success-border;
|
296
|
+
|
297
|
+
@alert-danger-bg: @state-danger-bg;
|
298
|
+
@alert-danger-text: @state-danger-text;
|
299
|
+
@alert-danger-border: @state-danger-border;
|
300
|
+
|
301
|
+
@alert-info-bg: @state-info-bg;
|
302
|
+
@alert-info-text: @state-info-text;
|
303
|
+
@alert-info-border: @state-info-border;
|
304
|
+
|
278
305
|
|
279
306
|
// Progress bars
|
280
307
|
// -------------------------
|
@@ -293,7 +320,7 @@
|
|
293
320
|
@list-group-border-radius: @border-radius-base;
|
294
321
|
|
295
322
|
@list-group-hover-bg: #f5f5f5;
|
296
|
-
@list-group-active-
|
323
|
+
@list-group-active-color: #fff;
|
297
324
|
@list-group-active-bg: @component-active-bg;
|
298
325
|
@list-group-active-border: @list-group-active-bg;
|
299
326
|
|
@@ -303,6 +330,7 @@
|
|
303
330
|
@panel-border: #ddd;
|
304
331
|
@panel-border-radius: @border-radius-base;
|
305
332
|
@panel-heading-bg: #f5f5f5;
|
333
|
+
@panel-footer-bg: #f5f5f5;
|
306
334
|
|
307
335
|
@panel-primary-text: #fff;
|
308
336
|
@panel-primary-border: @brand-primary;
|
@@ -325,6 +353,14 @@
|
|
325
353
|
@panel-info-heading-bg: @state-info-bg;
|
326
354
|
|
327
355
|
|
356
|
+
// Thumbnails
|
357
|
+
// -------------------------
|
358
|
+
@thumbnail-caption-color: @text-color;
|
359
|
+
@thumbnail-bg: @body-bg;
|
360
|
+
@thumbnail-border: #ddd;
|
361
|
+
@thumbnail-border-radius: @border-radius-base;
|
362
|
+
|
363
|
+
|
328
364
|
// Wells
|
329
365
|
// -------------------------
|
330
366
|
@well-bg: #f5f5f5;
|
@@ -334,12 +370,48 @@
|
|
334
370
|
// -------------------------
|
335
371
|
|
336
372
|
// Hr border color
|
337
|
-
@hr-border: @
|
373
|
+
@hr-border: @gray-lighter;
|
338
374
|
|
339
375
|
// Horizontal forms & lists
|
340
376
|
@component-offset-horizontal: 180px;
|
341
377
|
|
342
378
|
|
379
|
+
// Media queries breakpoints
|
380
|
+
// --------------------------------------------------
|
381
|
+
|
382
|
+
// Tiny screen / phone
|
383
|
+
@screen-tiny: 480px;
|
384
|
+
@screen-phone: @screen-tiny;
|
385
|
+
|
386
|
+
// Small screen / tablet
|
387
|
+
@screen-small: 768px;
|
388
|
+
@screen-tablet: @screen-small;
|
389
|
+
|
390
|
+
// Medium screen / desktop
|
391
|
+
@screen-medium: 992px;
|
392
|
+
@screen-desktop: @screen-medium;
|
393
|
+
|
394
|
+
// So media queries don't overlap when required, provide a maximum
|
395
|
+
@screen-small-max: (@screen-medium - 1);
|
396
|
+
@screen-tablet-max: @screen-small-max;
|
397
|
+
|
398
|
+
// Large screen / wide desktop
|
399
|
+
@screen-large: 1200px;
|
400
|
+
@screen-large-desktop: @screen-large;
|
401
|
+
|
402
|
+
|
403
|
+
// Container sizes
|
404
|
+
// --------------------------------------------------
|
405
|
+
|
406
|
+
// Small screen / tablet
|
407
|
+
@container-tablet: 728px;
|
408
|
+
|
409
|
+
// Medium screen / desktop
|
410
|
+
@container-desktop: 940px;
|
411
|
+
|
412
|
+
// Large screen / wide desktop
|
413
|
+
@container-large-desktop: 1170px;
|
414
|
+
|
343
415
|
|
344
416
|
// Grid system
|
345
417
|
// --------------------------------------------------
|
@@ -349,4 +421,4 @@
|
|
349
421
|
// Padding, to be divided by two and applied to the left and right of all columns
|
350
422
|
@grid-gutter-width: 30px;
|
351
423
|
// Point at which the navbar stops collapsing
|
352
|
-
@grid-float-breakpoint:
|
424
|
+
@grid-float-breakpoint: @screen-tablet;
|