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.
Files changed (98) hide show
  1. data/lib/padrino-admin/bootstrap-less/accordion.less +6 -9
  2. data/lib/padrino-admin/bootstrap-less/alerts.less +46 -51
  3. data/lib/padrino-admin/bootstrap-less/badges.less +2 -7
  4. data/lib/padrino-admin/bootstrap-less/bootstrap.less +0 -1
  5. data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +3 -3
  6. data/lib/padrino-admin/bootstrap-less/button-groups.less +37 -37
  7. data/lib/padrino-admin/bootstrap-less/buttons.less +52 -67
  8. data/lib/padrino-admin/bootstrap-less/carousel.less +24 -35
  9. data/lib/padrino-admin/bootstrap-less/close.less +14 -13
  10. data/lib/padrino-admin/bootstrap-less/code.less +4 -7
  11. data/lib/padrino-admin/bootstrap-less/component-animations.less +2 -11
  12. data/lib/padrino-admin/bootstrap-less/dropdowns.less +26 -82
  13. data/lib/padrino-admin/bootstrap-less/font-awesome-ie7.less +1895 -292
  14. data/lib/padrino-admin/bootstrap-less/font-awesome.less +26 -530
  15. data/lib/padrino-admin/bootstrap-less/font-awesome/bootstrap.less +84 -0
  16. data/lib/padrino-admin/bootstrap-less/font-awesome/core.less +129 -0
  17. data/lib/padrino-admin/bootstrap-less/font-awesome/extras.less +93 -0
  18. data/lib/padrino-admin/bootstrap-less/font-awesome/font-awesome-ie7.less +1953 -0
  19. data/lib/padrino-admin/bootstrap-less/font-awesome/font-awesome.less +33 -0
  20. data/lib/padrino-admin/bootstrap-less/font-awesome/icons.less +381 -0
  21. data/lib/padrino-admin/bootstrap-less/font-awesome/mixins.less +48 -0
  22. data/lib/padrino-admin/bootstrap-less/font-awesome/path.less +14 -0
  23. data/lib/padrino-admin/bootstrap-less/font-awesome/variables.less +735 -0
  24. data/lib/padrino-admin/bootstrap-less/forms.less +123 -227
  25. data/lib/padrino-admin/bootstrap-less/grid.less +174 -19
  26. data/lib/padrino-admin/bootstrap-less/jumbotron.less +4 -4
  27. data/lib/padrino-admin/bootstrap-less/labels.less +52 -28
  28. data/lib/padrino-admin/bootstrap-less/list-group.less +37 -44
  29. data/lib/padrino-admin/bootstrap-less/media.less +1 -1
  30. data/lib/padrino-admin/bootstrap-less/mixins.less +97 -120
  31. data/lib/padrino-admin/bootstrap-less/modals.less +5 -4
  32. data/lib/padrino-admin/bootstrap-less/navbar.less +148 -174
  33. data/lib/padrino-admin/bootstrap-less/navs.less +145 -164
  34. data/lib/padrino-admin/bootstrap-less/padrino-admin.less +2 -2
  35. data/lib/padrino-admin/bootstrap-less/pager.less +45 -33
  36. data/lib/padrino-admin/bootstrap-less/pagination.less +11 -23
  37. data/lib/padrino-admin/bootstrap-less/panels.less +11 -1
  38. data/lib/padrino-admin/bootstrap-less/popovers.less +6 -6
  39. data/lib/padrino-admin/bootstrap-less/print.less +13 -2
  40. data/lib/padrino-admin/bootstrap-less/progress-bars.less +3 -3
  41. data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +92 -32
  42. data/lib/padrino-admin/bootstrap-less/scaffolding.less +9 -18
  43. data/lib/padrino-admin/bootstrap-less/tables.less +70 -67
  44. data/lib/padrino-admin/bootstrap-less/thumbnails.less +6 -6
  45. data/lib/padrino-admin/bootstrap-less/tooltip.less +25 -1
  46. data/lib/padrino-admin/bootstrap-less/type.less +39 -46
  47. data/lib/padrino-admin/bootstrap-less/variables.less +135 -63
  48. data/lib/padrino-admin/generators/admin_app.rb +9 -0
  49. data/lib/padrino-admin/generators/admin_page.rb +9 -0
  50. data/lib/padrino-admin/generators/orm.rb +1 -10
  51. data/lib/padrino-admin/generators/templates/account/activerecord.rb.tt +1 -1
  52. data/lib/padrino-admin/generators/templates/account/datamapper.rb.tt +1 -1
  53. data/lib/padrino-admin/generators/templates/account/minirecord.rb.tt +1 -1
  54. data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +1 -1
  55. data/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt +1 -1
  56. data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +1 -1
  57. data/lib/padrino-admin/generators/templates/assets/images/font/FontAwesome.otf +0 -0
  58. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.eot +0 -0
  59. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.svg +153 -38
  60. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.ttf +0 -0
  61. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.woff +0 -0
  62. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/affix.js +120 -0
  63. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/{bootstrap-alert.js → alert.js} +32 -35
  64. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +1 -1
  65. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/{bootstrap-button.js → button.js} +37 -37
  66. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/carousel.js +210 -0
  67. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/collapse.js +156 -0
  68. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/dropdown.js +155 -0
  69. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/modal.js +243 -0
  70. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/popover.js +111 -0
  71. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/scrollspy.js +156 -0
  72. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tab.js +133 -0
  73. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/tooltip.js +356 -0
  74. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/transition.js +47 -0
  75. data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +406 -452
  76. data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +3 -3
  77. data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +1 -1
  78. data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +3 -3
  79. data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +1 -1
  80. data/lib/padrino-admin/generators/templates/page/controller.rb.tt +1 -1
  81. data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +3 -3
  82. data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +1 -1
  83. data/lib/padrino-admin/helpers/view_helpers.rb +1 -1
  84. data/test/generators/test_admin_app_generator.rb +9 -0
  85. data/test/generators/test_admin_page_generator.rb +11 -0
  86. metadata +27 -23
  87. data/lib/padrino-admin/bootstrap-less/glyphicons.less +0 -200
  88. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-affix.js +0 -117
  89. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-carousel.js +0 -207
  90. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-collapse.js +0 -167
  91. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-dropdown.js +0 -165
  92. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-modal.js +0 -251
  93. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-popover.js +0 -114
  94. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-scrollspy.js +0 -162
  95. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tab.js +0 -144
  96. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tooltip.js +0 -361
  97. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-transition.js +0 -60
  98. 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
- border: 1px solid #ddd;
16
- border-radius: @border-radius-base;
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
- display: inline-block;
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: @gray;
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: 11px;
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-base / 2);
10
+ margin: 0 0 (@line-height-computed / 2);
11
11
  }
12
12
  .lead {
13
- margin-bottom: @line-height-base;
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: @grayLight; }
29
+ .text-muted { color: @gray-light; }
32
30
  a.text-muted:hover,
33
- a.text-muted:focus { color: darken(@grayLight, 10%); }
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-base;
57
+ line-height: @headings-line-height;
60
58
  small {
61
59
  font-weight: normal;
62
60
  line-height: 1;
63
- color: @grayLight;
61
+ color: @gray-light;
64
62
  }
65
63
  }
66
64
 
67
65
  h1,
68
66
  h2,
69
67
  h3 {
70
- margin-top: @line-height-base;
71
- margin-bottom: (@line-height-base / 2);
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-base / 2);
81
- margin-bottom: (@line-height-base / 2);
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.75); } // ~38px
85
- h2, .h2 { font-size: (@font-size-base * 2.25); } // ~32px
86
- h3, .h3 { font-size: (@font-size-base * 1.75); } // ~24px
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.75); } // ~24px
92
- h2 small, .h2 small { font-size: (@font-size-base * 1.25); } // ~18px
93
- h3 small, .h3 small { font-size: @font-size-base; }
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-base / 2) - 1);
102
- margin: (@line-height-base * 2) 0 @line-height-base;
103
- border-bottom: 1px solid @grayLighter;
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
- padding: 0;
115
- margin: 0 0 (@line-height-base / 2) 25px;
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
- margin-left: 0;
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-base;
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-base / 2);
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-base 0;
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 @grayLight;
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: 0 0 0 15px;
200
- margin: 0 0 @line-height-base;
201
- border-left: 5px solid @grayLighter;
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: @grayLight;
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 @grayLighter;
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-base;
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
- @grayDarker: #222;
14
- @grayDark: #333;
15
- @gray: #555;
16
- @grayLight: #999;
17
- @grayLighter: #eee;
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: @grayDark;
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: 20px;
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: inherit; // empty to use BS default, @font-family-base
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.5 line-height
63
+ // Based on 14px font-size and 1.428 line-height (~20px to start)
62
64
 
63
- @padding-large: 11px 14px; // 44px
64
- @padding-small: 2px 10px; // 26px
65
- @padding-mini: 0 6px; // 22px
65
+ @padding-base-vertical: 8px;
66
+ @padding-base-horizontal: 12px;
66
67
 
67
- @border-radius-base: 4px;
68
- @border-radius-large: 6px;
69
- @border-radius-small: 3px;
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: #ddd; // table and cell border
88
+ @table-border-color: #ddd; // table and cell border
82
89
 
83
90
 
84
91
  // Buttons
85
92
  // -------------------------
86
93
 
87
- @btn-color: #fff;
88
- @btn-bg: #a7a9aa;
89
- @btn-border: @btn-bg;
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-bg-success: @brand-success;
95
- @btn-success-border: @btn-bg-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-bg-warning: @brand-warning;
98
- @btn-warning-border: @btn-bg-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-bg-danger: @brand-danger;
101
- @btn-danger-border: @btn-bg-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-bg-info: @brand-info;
104
- @btn-info-border: @btn-bg-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: @grayLighter;
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: @grayLight;
129
+ @input-color-placeholder: @gray-light;
118
130
 
119
- @input-height-base: (@line-height-base + 14px); // base line-height + 12px vertical padding + 2px top/bottom border
120
- @input-height-large: (@line-height-base + 24px); // base line-height + 22px vertical padding + 2px top/bottom border
121
- @input-height-small: (@line-height-base + 6px); // base line-height + 4px vertical padding + 2px top/bottom border
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-text: #777;
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-text: @grayLight;
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: @grayLight;
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: @grayLighter;
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-text: #fff;
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: @grayLighter;
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: 768px;
424
+ @grid-float-breakpoint: @screen-tablet;