padrino-admin 0.10.7 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +22 -1
  3. data/lib/padrino-admin.rb +8 -1
  4. data/lib/padrino-admin/access_control.rb +6 -4
  5. data/lib/padrino-admin/bootstrap-less/accordion.less +34 -0
  6. data/lib/padrino-admin/bootstrap-less/alerts.less +98 -0
  7. data/lib/padrino-admin/bootstrap-less/badges.less +58 -0
  8. data/lib/padrino-admin/bootstrap-less/bootstrap.less +62 -0
  9. data/lib/padrino-admin/bootstrap-less/breadcrumbs.less +25 -0
  10. data/lib/padrino-admin/bootstrap-less/button-groups.less +166 -0
  11. data/lib/padrino-admin/bootstrap-less/buttons.less +175 -0
  12. data/lib/padrino-admin/bootstrap-less/carousel.less +192 -0
  13. data/lib/padrino-admin/bootstrap-less/close.less +32 -0
  14. data/lib/padrino-admin/bootstrap-less/code.less +61 -0
  15. data/lib/padrino-admin/bootstrap-less/component-animations.less +32 -0
  16. data/lib/padrino-admin/bootstrap-less/dropdowns.less +223 -0
  17. data/lib/padrino-admin/bootstrap-less/font-awesome-ie7.less +350 -0
  18. data/lib/padrino-admin/bootstrap-less/font-awesome.less +537 -0
  19. data/lib/padrino-admin/bootstrap-less/forms.less +543 -0
  20. data/lib/padrino-admin/bootstrap-less/glyphicons.less +200 -0
  21. data/lib/padrino-admin/bootstrap-less/grid.less +49 -0
  22. data/lib/padrino-admin/bootstrap-less/jumbotron.less +32 -0
  23. data/lib/padrino-admin/bootstrap-less/labels.less +46 -0
  24. data/lib/padrino-admin/bootstrap-less/media.less +54 -0
  25. data/lib/padrino-admin/bootstrap-less/mixins.less +530 -0
  26. data/lib/padrino-admin/bootstrap-less/modals.less +136 -0
  27. data/lib/padrino-admin/bootstrap-less/navbar.less +379 -0
  28. data/lib/padrino-admin/bootstrap-less/navs.less +277 -0
  29. data/lib/padrino-admin/bootstrap-less/normalize.less +396 -0
  30. data/lib/padrino-admin/bootstrap-less/padrino-admin.less +16 -0
  31. data/lib/padrino-admin/bootstrap-less/pager.less +43 -0
  32. data/lib/padrino-admin/bootstrap-less/pagination.less +100 -0
  33. data/lib/padrino-admin/bootstrap-less/popovers.less +133 -0
  34. data/lib/padrino-admin/bootstrap-less/print.less +74 -0
  35. data/lib/padrino-admin/bootstrap-less/progress-bars.less +118 -0
  36. data/lib/padrino-admin/bootstrap-less/responsive-utilities.less +59 -0
  37. data/lib/padrino-admin/bootstrap-less/scaffolding.less +90 -0
  38. data/lib/padrino-admin/bootstrap-less/tables.less +231 -0
  39. data/lib/padrino-admin/bootstrap-less/thumbnails.less +42 -0
  40. data/lib/padrino-admin/bootstrap-less/tooltip.less +71 -0
  41. data/lib/padrino-admin/bootstrap-less/type.less +252 -0
  42. data/lib/padrino-admin/bootstrap-less/utilities.less +42 -0
  43. data/lib/padrino-admin/bootstrap-less/variables.less +316 -0
  44. data/lib/padrino-admin/bootstrap-less/wells.less +29 -0
  45. data/lib/padrino-admin/generators/actions.rb +18 -2
  46. data/lib/padrino-admin/generators/admin_app.rb +38 -26
  47. data/lib/padrino-admin/generators/admin_page.rb +8 -1
  48. data/lib/padrino-admin/generators/orm.rb +58 -11
  49. data/lib/padrino-admin/generators/templates/account/couchrest.rb.tt +1 -1
  50. data/lib/padrino-admin/generators/templates/account/{mini_record.rb.tt → minirecord.rb.tt} +0 -0
  51. data/lib/padrino-admin/generators/templates/account/mongoid.rb.tt +1 -1
  52. data/lib/padrino-admin/generators/templates/account/ohm.rb.tt +61 -0
  53. data/lib/padrino-admin/generators/templates/account/sequel.rb.tt +1 -1
  54. data/lib/padrino-admin/generators/templates/app.rb.tt +36 -29
  55. data/lib/padrino-admin/generators/templates/app/controllers/{base.rb → base.rb.tt} +1 -2
  56. data/lib/padrino-admin/generators/templates/app/controllers/sessions.rb.tt +6 -3
  57. data/lib/padrino-admin/generators/templates/assets/images/favicon.ico +0 -0
  58. data/lib/padrino-admin/generators/templates/assets/images/font/FontAwesome.otf +0 -0
  59. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.eot +0 -0
  60. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.svg +284 -0
  61. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.ttf +0 -0
  62. data/lib/padrino-admin/generators/templates/assets/images/font/fontawesome-webfont.woff +0 -0
  63. data/lib/padrino-admin/generators/templates/assets/images/logo.png +0 -0
  64. data/lib/padrino-admin/generators/templates/assets/javascripts/application.js +117 -0
  65. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-affix.js +117 -0
  66. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-alert.js +99 -0
  67. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-button.js +105 -0
  68. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-carousel.js +207 -0
  69. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-collapse.js +167 -0
  70. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-dropdown.js +165 -0
  71. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-modal.js +251 -0
  72. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-popover.js +114 -0
  73. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-scrollspy.js +162 -0
  74. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tab.js +144 -0
  75. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-tooltip.js +361 -0
  76. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-transition.js +60 -0
  77. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap-typeahead.js +335 -0
  78. data/lib/padrino-admin/generators/templates/assets/javascripts/bootstrap/bootstrap.min.js +6 -0
  79. data/lib/padrino-admin/generators/templates/assets/javascripts/jquery-1.9.0.min.js +4 -0
  80. data/lib/padrino-admin/generators/templates/assets/stylesheets/application.css +346 -0
  81. data/lib/padrino-admin/generators/templates/assets/stylesheets/bootstrap.css +952 -0
  82. data/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt +13 -15
  83. data/lib/padrino-admin/generators/templates/erb/app/errors/403.erb.tt +3 -0
  84. data/lib/padrino-admin/generators/templates/erb/app/errors/404.erb.tt +3 -0
  85. data/lib/padrino-admin/generators/templates/erb/app/errors/500.erb.tt +3 -0
  86. data/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt +59 -39
  87. data/lib/padrino-admin/generators/templates/erb/app/layouts/error.erb.tt +23 -0
  88. data/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt +41 -53
  89. data/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt +16 -9
  90. data/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt +9 -17
  91. data/lib/padrino-admin/generators/templates/erb/page/index.erb.tt +73 -31
  92. data/lib/padrino-admin/generators/templates/erb/page/new.erb.tt +8 -16
  93. data/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt +11 -24
  94. data/lib/padrino-admin/generators/templates/haml/app/errors/403.haml.tt +3 -0
  95. data/lib/padrino-admin/generators/templates/haml/app/errors/404.haml.tt +3 -0
  96. data/lib/padrino-admin/generators/templates/haml/app/errors/500.haml.tt +3 -0
  97. data/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt +47 -29
  98. data/lib/padrino-admin/generators/templates/haml/app/layouts/error.haml.tt +18 -0
  99. data/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt +33 -28
  100. data/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt +13 -9
  101. data/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt +7 -14
  102. data/lib/padrino-admin/generators/templates/haml/page/index.haml.tt +56 -27
  103. data/lib/padrino-admin/generators/templates/haml/page/new.haml.tt +6 -13
  104. data/lib/padrino-admin/generators/templates/page/controller.rb.tt +57 -12
  105. data/lib/padrino-admin/generators/templates/slim/app/base/index.slim.tt +11 -24
  106. data/lib/padrino-admin/generators/templates/slim/app/errors/403.slim.tt +3 -0
  107. data/lib/padrino-admin/generators/templates/slim/app/errors/404.slim.tt +3 -0
  108. data/lib/padrino-admin/generators/templates/slim/app/errors/500.slim.tt +3 -0
  109. data/lib/padrino-admin/generators/templates/slim/app/layouts/application.slim.tt +43 -26
  110. data/lib/padrino-admin/generators/templates/slim/app/layouts/error.slim.tt +19 -0
  111. data/lib/padrino-admin/generators/templates/slim/app/sessions/new.slim.tt +31 -27
  112. data/lib/padrino-admin/generators/templates/slim/page/_form.slim.tt +13 -11
  113. data/lib/padrino-admin/generators/templates/slim/page/edit.slim.tt +7 -15
  114. data/lib/padrino-admin/generators/templates/slim/page/index.slim.tt +54 -28
  115. data/lib/padrino-admin/generators/templates/slim/page/new.slim.tt +6 -14
  116. data/lib/padrino-admin/helpers/authentication_helpers.rb +6 -4
  117. data/lib/padrino-admin/helpers/view_helpers.rb +27 -5
  118. data/lib/padrino-admin/locale/admin/cs.yml +53 -13
  119. data/lib/padrino-admin/locale/admin/da.yml +53 -13
  120. data/lib/padrino-admin/locale/admin/de.yml +53 -13
  121. data/lib/padrino-admin/locale/admin/en.yml +53 -13
  122. data/lib/padrino-admin/locale/admin/es.yml +53 -13
  123. data/lib/padrino-admin/locale/admin/fr.yml +53 -13
  124. data/lib/padrino-admin/locale/admin/hu.yml +53 -13
  125. data/lib/padrino-admin/locale/admin/it.yml +53 -13
  126. data/lib/padrino-admin/locale/admin/ja.yml +54 -13
  127. data/lib/padrino-admin/locale/admin/lv.yml +53 -13
  128. data/lib/padrino-admin/locale/admin/nl.yml +53 -13
  129. data/lib/padrino-admin/locale/admin/no.yml +53 -13
  130. data/lib/padrino-admin/locale/admin/pl.yml +53 -13
  131. data/lib/padrino-admin/locale/admin/pt_br.yml +53 -13
  132. data/lib/padrino-admin/locale/admin/ro.yml +53 -13
  133. data/lib/padrino-admin/locale/admin/ru.yml +54 -13
  134. data/lib/padrino-admin/locale/admin/sv.yml +53 -13
  135. data/lib/padrino-admin/locale/admin/tr.yml +53 -13
  136. data/lib/padrino-admin/locale/admin/uk.yml +53 -13
  137. data/lib/padrino-admin/locale/admin/zh_cn.yml +53 -13
  138. data/lib/padrino-admin/locale/admin/zh_tw.yml +53 -13
  139. data/lib/padrino-admin/locale/orm/fr.yml +8 -8
  140. data/padrino-admin.gemspec +2 -0
  141. data/test/fixtures/data_mapper.rb +0 -4
  142. data/test/generators/test_account_model_generator.rb +88 -18
  143. data/test/generators/test_admin_app_generator.rb +120 -165
  144. data/test/generators/test_admin_page_generator.rb +53 -56
  145. data/test/helper.rb +4 -0
  146. data/test/test_admin_application.rb +5 -5
  147. data/test/test_locale.rb +3 -3
  148. metadata +119 -35
  149. data/lib/padrino-admin/generators/templates/assets/stylesheets/base.css +0 -95
  150. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css +0 -364
  151. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/bec-green/style.css +0 -290
  152. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/bec/style.css +0 -301
  153. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css +0 -287
  154. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/default/style.css +0 -373
  155. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css +0 -305
  156. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/kathleene/style.css +0 -279
  157. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css +0 -345
  158. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css +0 -269
  159. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css +0 -302
  160. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css +0 -281
  161. data/lib/padrino-admin/generators/templates/assets/stylesheets/themes/warehouse/style.css +0 -391
  162. data/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt +0 -13
  163. data/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt +0 -11
  164. data/lib/padrino-admin/generators/templates/slim/app/base/_sidebar.slim.tt +0 -11
@@ -0,0 +1,252 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Body text
7
+ // -------------------------
8
+
9
+ p {
10
+ margin: 0 0 (@line-height-base / 2);
11
+ }
12
+ .lead {
13
+ margin-bottom: @line-height-base;
14
+ .font-size((@font-size-base * 1.5));
15
+ font-weight: 200;
16
+ line-height: 1.25;
17
+ }
18
+
19
+
20
+ // Emphasis & misc
21
+ // -------------------------
22
+
23
+ // Ex: 14px base font * 85% = about 12px
24
+ small { font-size: 85%; }
25
+
26
+ strong { font-weight: bold; }
27
+ em { font-style: italic; }
28
+ cite { font-style: normal; }
29
+
30
+ // Utility classes
31
+ .muted { color: @grayLight; }
32
+ a.muted:hover,
33
+ a.muted:focus { color: darken(@grayLight, 10%); }
34
+
35
+ .text-warning { color: @state-warning-text; }
36
+ a.text-warning:hover,
37
+ a.text-warning:focus { color: darken(@state-warning-text, 10%); }
38
+
39
+ .text-error { color: @state-error-text; }
40
+ a.text-error:hover,
41
+ a.text-error:focus { color: darken(@state-error-text, 10%); }
42
+
43
+ .text-success { color: @state-success-text; }
44
+ a.text-success:hover,
45
+ a.text-success:focus { color: darken(@state-success-text, 10%); }
46
+
47
+ .text-left { text-align: left; }
48
+ .text-right { text-align: right; }
49
+ .text-center { text-align: center; }
50
+
51
+
52
+ // Headings
53
+ // -------------------------
54
+
55
+ h1, h2, h3, h4, h5, h6,
56
+ .h1, .h2, .h3, .h4, .h5, .h6 {
57
+ font-family: @headings-font-family;
58
+ font-weight: @headings-font-weight;
59
+ line-height: @line-height-base;
60
+ text-rendering: optimizelegibility; // Fix the character spacing for headings
61
+ small {
62
+ font-weight: normal;
63
+ line-height: 1;
64
+ color: @grayLight;
65
+ }
66
+ }
67
+
68
+ h1,
69
+ h2,
70
+ h3 {
71
+ margin-top: @line-height-base;
72
+ margin-bottom: (@line-height-base / 2);
73
+ line-height: (@line-height-base * 2);
74
+ }
75
+ h3 {
76
+ line-height: (@line-height-base * 1.5);
77
+ }
78
+ h4,
79
+ h5,
80
+ h6 {
81
+ margin-top: (@line-height-base / 2);
82
+ margin-bottom: (@line-height-base / 2);
83
+ }
84
+
85
+ h1, .h1 { font-size: (@font-size-base * 2.75); font-size: 4rem; } // ~38px
86
+ h2, .h2 { font-size: (@font-size-base * 2.25); font-size: 3rem; } // ~32px
87
+ h3, .h3 { font-size: (@font-size-base * 1.75); font-size: 2.5rem; } // ~24px
88
+ h4, .h4 { font-size: (@font-size-base * 1.25); font-size: 2rem; } // ~18px
89
+ h5, .h5 { font-size: @font-size-base; font-size: 1.6rem; }
90
+ h6, .h6 { font-size: (@font-size-base * 0.85); font-size: 1.2rem; } // ~12px
91
+
92
+ h1 small, .h1 small { font-size: (@font-size-base * 1.75); } // ~24px
93
+ h2 small, .h2 small { font-size: (@font-size-base * 1.25); } // ~18px
94
+ h3 small, .h3 small { font-size: @font-size-base; }
95
+ h4 small, .h4 small { font-size: @font-size-base; }
96
+
97
+
98
+ // Page header
99
+ // -------------------------
100
+
101
+ .page-header {
102
+ padding-bottom: ((@line-height-base / 2) - 1);
103
+ margin: (@line-height-base * 2) 0 @line-height-base;
104
+ border-bottom: 1px solid @grayLighter;
105
+ }
106
+
107
+
108
+
109
+ // Lists
110
+ // --------------------------------------------------
111
+
112
+ // Unordered and Ordered lists
113
+ ul,
114
+ ol {
115
+ padding: 0;
116
+ margin: 0 0 (@line-height-base / 2) 25px;
117
+ }
118
+ ul ul,
119
+ ul ol,
120
+ ol ol,
121
+ ol ul {
122
+ margin-bottom: 0;
123
+ }
124
+ li {
125
+ line-height: @line-height-base;
126
+ }
127
+
128
+ // List options
129
+ // Unstyled keeps list items block level, just removes list-style
130
+ .list-unstyled,
131
+ // Inline turns list items into inline-block
132
+ .list-inline {
133
+ margin-left: 0;
134
+ list-style: none;
135
+ }
136
+ // Single-line list items
137
+ .list-inline > li {
138
+ display: inline-block;
139
+ padding-left: 5px;
140
+ padding-right: 5px;
141
+ }
142
+
143
+ // Description Lists
144
+ dl {
145
+ margin-bottom: @line-height-base;
146
+ }
147
+ dt,
148
+ dd {
149
+ line-height: @line-height-base;
150
+ }
151
+ dt {
152
+ font-weight: bold;
153
+ }
154
+ dd {
155
+ margin-left: (@line-height-base / 2);
156
+ }
157
+ // Horizontal layout (like forms)
158
+ .dl-horizontal {
159
+ .clear_float(); // Ensure dl clears floats if empty dd elements present
160
+ dt {
161
+ float: left;
162
+ width: (@component-offset-horizontal - 20);
163
+ clear: left;
164
+ text-align: right;
165
+ .text-overflow();
166
+ }
167
+ dd {
168
+ margin-left: @component-offset-horizontal;
169
+ }
170
+ }
171
+
172
+ // MISC
173
+ // ----
174
+
175
+ // Horizontal rules
176
+ hr {
177
+ margin: @line-height-base 0;
178
+ border: 0;
179
+ border-top: 1px solid @hr-border;
180
+ border-bottom: 1px solid #fff;
181
+ border-bottom: 1px solid rgba(255,255,255,.5);
182
+ }
183
+
184
+ // Abbreviations and acronyms
185
+ abbr[title],
186
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
187
+ abbr[data-original-title] {
188
+ cursor: help;
189
+ border-bottom: 1px dotted @grayLight;
190
+ }
191
+ abbr.initialism {
192
+ font-size: 90%;
193
+ text-transform: uppercase;
194
+ }
195
+
196
+ // Blockquotes
197
+ blockquote {
198
+ padding: 0 0 0 15px;
199
+ margin: 0 0 @line-height-base;
200
+ border-left: 5px solid @grayLighter;
201
+ p {
202
+ margin-bottom: 0;
203
+ font-size: (@font-size-base * 1.25);
204
+ font-weight: 300;
205
+ line-height: 1.25;
206
+ }
207
+ small {
208
+ display: block;
209
+ line-height: @line-height-base;
210
+ color: @grayLight;
211
+ &:before {
212
+ content: '\2014 \00A0';
213
+ }
214
+ }
215
+
216
+ // Float right with text-align: right
217
+ &.pull-right {
218
+ float: right;
219
+ padding-right: 15px;
220
+ padding-left: 0;
221
+ border-right: 5px solid @grayLighter;
222
+ border-left: 0;
223
+ p,
224
+ small {
225
+ text-align: right;
226
+ }
227
+ small {
228
+ &:before {
229
+ content: '';
230
+ }
231
+ &:after {
232
+ content: '\00A0 \2014';
233
+ }
234
+ }
235
+ }
236
+ }
237
+
238
+ // Quotes
239
+ q:before,
240
+ q:after,
241
+ blockquote:before,
242
+ blockquote:after {
243
+ content: "";
244
+ }
245
+
246
+ // Addresses
247
+ address {
248
+ display: block;
249
+ margin-bottom: @line-height-base;
250
+ font-style: normal;
251
+ line-height: @line-height-base;
252
+ }
@@ -0,0 +1,42 @@
1
+ //
2
+ // Utility classes
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Floats
7
+ // -------------------------
8
+
9
+ .clearfix {
10
+ .clear_float();
11
+ }
12
+ .pull-right {
13
+ float: right;
14
+ }
15
+ .pull-left {
16
+ float: left;
17
+ }
18
+
19
+
20
+ // Toggling content
21
+ // -------------------------
22
+
23
+ .hide {
24
+ display: none !important;
25
+ }
26
+ .show {
27
+ display: block !important;
28
+ }
29
+ .invisible {
30
+ visibility: hidden;
31
+ }
32
+ .text-hide {
33
+ .hide-text();
34
+ }
35
+
36
+
37
+ // For Affix plugin
38
+ // -------------------------
39
+
40
+ .affix {
41
+ position: fixed;
42
+ }
@@ -0,0 +1,316 @@
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Global values
7
+ // --------------------------------------------------
8
+
9
+
10
+ // Grays
11
+ // -------------------------
12
+
13
+ @grayDarker: #222;
14
+ @grayDark: #333;
15
+ @gray: #555;
16
+ @grayLight: #999;
17
+ @grayLighter: #eee;
18
+
19
+ // Brand colors
20
+ // -------------------------
21
+
22
+ @brand-primary: #428bca;
23
+ @brand-success: #5cb85c;
24
+ @brand-warning: #f0ad4e;
25
+ @brand-danger: #d9534f;
26
+ @brand-info: #5bc0de;
27
+
28
+ // Scaffolding
29
+ // -------------------------
30
+
31
+ @body-background: #fff;
32
+ @text-color: @grayDark;
33
+
34
+ // Links
35
+ // -------------------------
36
+
37
+ @link-color: #428bca;
38
+ @link-color-hover: darken(@link-color, 15%);
39
+
40
+ // Typography
41
+ // -------------------------
42
+
43
+ @font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
44
+ @font-family-serif: Georgia, "Times New Roman", Times, serif;
45
+ @font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
46
+ @font-family-base: @font-family-sans-serif;
47
+
48
+ @font-size-base: 14;
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
52
+
53
+ @line-height-base: 20px;
54
+
55
+ @headings-font-family: inherit; // empty to use BS default, @font-family-base
56
+ @headings-font-weight: 500;
57
+
58
+
59
+ // Component sizing
60
+ // -------------------------
61
+ // Based on 14px font-size and 1.5 line-height
62
+
63
+ @padding-large: 11px 14px; // 44px
64
+ @padding-small: 2px 10px; // 26px
65
+ @padding-mini: 0 6px; // 22px
66
+
67
+ @border-radius-base: 4px;
68
+ @border-radius-large: 6px;
69
+ @border-radius-small: 3px;
70
+
71
+
72
+ // Tables
73
+ // -------------------------
74
+
75
+ @table-background: transparent; // overall background-color
76
+ @table-background-accent: #f9f9f9; // for striping
77
+ @table-background-hover: #f5f5f5; // for hover
78
+
79
+ @table-border: #ddd; // table and cell border
80
+
81
+
82
+ // Buttons
83
+ // -------------------------
84
+
85
+ @btn-color: #fff;
86
+ @btn-background: #a7a9aa;
87
+ @btn-border: @btn-background;
88
+
89
+ @btn-background-primary: @brand-primary;
90
+ @btn-border-primary: @btn-background-primary;
91
+
92
+ @btn-background-success: @brand-success;
93
+ @btn-border-success: @btn-background-success;
94
+
95
+ @btn-background-warning: @brand-warning;
96
+ @btn-border-warning: @btn-background-warning;
97
+
98
+ @btn-background-danger: @brand-danger;
99
+ @btn-border-danger: @btn-background-danger;
100
+
101
+ @btn-background-info: @brand-info;
102
+ @btn-border-info: @btn-background-info;
103
+
104
+
105
+
106
+ // Forms
107
+ // -------------------------
108
+
109
+ @input-background: #fff;
110
+ @input-background-disabled: @grayLighter;
111
+
112
+ @input-border: #ccc;
113
+ @input-border-radius: @border-radius-base;
114
+ @input-border-radius-search: 20px;
115
+
116
+ @input-color-placeholder: @grayLight;
117
+
118
+ @input-height-base: (@line-height-base + 14px); // base line-height + 12px vertical padding + 2px top/bottom border
119
+ @input-height-large: (@line-height-base + 24px); // base line-height + 22px vertical padding + 2px top/bottom border
120
+ @input-height-small: (@line-height-base + 6px); // base line-height + 4px vertical padding + 2px top/bottom border
121
+
122
+ // adjust min-height on input sizes
123
+
124
+
125
+ @form-actions-background: #f5f5f5;
126
+
127
+
128
+ // Dropdowns
129
+ // -------------------------
130
+
131
+ @dropdown-background: #fff;
132
+ @dropdown-border: rgba(0,0,0,.15);
133
+ @dropdown-divider-top: #e5e5e5;
134
+ @dropdown-divider-bottom: #fff;
135
+
136
+ @dropdown-link-color: @grayDark;
137
+ @dropdown-link-color-hover: #fff;
138
+ @dropdown-link-color-active: #fff;
139
+
140
+ @dropdown-link-background-active: @link-color;
141
+ @dropdown-link-background-hover: @dropdown-link-background-active;
142
+
143
+
144
+
145
+ // COMPONENT VARIABLES
146
+ // --------------------------------------------------
147
+
148
+
149
+ // Z-index master list
150
+ // -------------------------
151
+ // Used for a bird's eye view of components dependent on the z-axis
152
+ // Try to avoid customizing these :)
153
+
154
+ @zindex-dropdown: 1000;
155
+ @zindex-popover: 1010;
156
+ @zindex-tooltip: 1030;
157
+ @zindex-navbar-fixed: 1030;
158
+ @zindex-modal-background: 1040;
159
+ @zindex-modal: 1050;
160
+
161
+
162
+ // Glyphicons font path
163
+ // -------------------------
164
+ @glyphicons-font-path: "../fonts";
165
+
166
+
167
+ // Navbar
168
+ // -------------------------
169
+
170
+ // Responsive collapsing
171
+ // @navbar-collapse-width: 979px;
172
+ // @navbar-collapse-width-desktop: @navbar-collapse-width + 1;
173
+
174
+ // Basics of a navbar
175
+ @navbar-height: 50px;
176
+ @navbar-text: #777;
177
+ @navbar-bg: #eee;
178
+
179
+ // Navbar brand label
180
+ @navbar-brand-color: @navbar-link-color;
181
+ @navbar-brand-color-hover: darken(@navbar-link-color, 10%);
182
+ @navbar-brand-bg-hover: transparent;
183
+
184
+ // Navbar links
185
+ @navbar-link-color: #777;
186
+ @navbar-link-color-hover: #333;
187
+ @navbar-link-bg-hover: transparent;
188
+ @navbar-link-color-active: #555;
189
+ @navbar-link-bg-active: darken(@navbar-bg, 10%);
190
+ @navbar-link-color-disabled: #ccc;
191
+ @navbar-link-bg-disabled: transparent;
192
+
193
+ // Inverted navbar
194
+ @navbar-inverse-text: @grayLight;
195
+ @navbar-inverse-bg: #222;
196
+
197
+ // Inverted navbar brand label
198
+ @navbar-inverse-brand-color: @navbar-inverse-link-color;
199
+ @navbar-inverse-brand-color-hover: #fff;
200
+ @navbar-inverse-brand-bg-hover: transparent;
201
+
202
+ // Inverted navbar links
203
+ @navbar-inverse-link-color: @grayLight;
204
+ @navbar-inverse-link-color-hover: #fff;
205
+ @navbar-inverse-link-bg-hover: transparent;
206
+ @navbar-inverse-link-color-active: @navbar-inverse-link-color-hover;
207
+ @navbar-inverse-link-bg-active: darken(@navbar-inverse-bg, 10%);
208
+ @navbar-inverse-link-color-disabled: #444;
209
+ @navbar-inverse-link-bg-disabled: transparent;
210
+
211
+ // Inverted navbar search
212
+ // Normal navbar needs no special styles or vars
213
+ @navbar-inverse-search-background: lighten(@navbar-inverse-bg, 25%);
214
+ @navbar-inverse-search-background-focus: #fff;
215
+ @navbar-inverse-search-border: @navbar-inverse-bg;
216
+ @navbar-inverse-search-placeholder-color: #ccc;
217
+
218
+
219
+
220
+ // Pagination
221
+ // -------------------------
222
+
223
+ @pagination-background: #fff;
224
+ @pagination-background-active: #f5f5f5;
225
+ @pagination-border: #ddd;
226
+
227
+
228
+ // Jumbotron
229
+ // -------------------------
230
+
231
+ @jumbotron-background: @grayLighter;
232
+ @jumbotron-heading-color: inherit;
233
+ @jumbotron-lead-color: inherit;
234
+
235
+
236
+ // Form states and alerts
237
+ // -------------------------
238
+
239
+ @state-warning-text: #c09853;
240
+ @state-warning-background: #fcf8e3;
241
+ @state-warning-border: darken(spin(@state-warning-background, -10), 3%);
242
+
243
+ @state-error-text: #b94a48;
244
+ @state-error-background: #f2dede;
245
+ @state-error-border: darken(spin(@state-error-background, -10), 3%);
246
+
247
+ @state-success-text: #468847;
248
+ @state-success-background: #dff0d8;
249
+ @state-success-border: darken(spin(@state-success-background, -10), 5%);
250
+
251
+ @state-info-text: #3a87ad;
252
+ @state-info-background: #d9edf7;
253
+ @state-info-border: darken(spin(@state-info-background, -10), 7%);
254
+
255
+
256
+ // Tooltips and popovers
257
+ // -------------------------
258
+ @tooltip-color: #fff;
259
+ @tooltip-background: rgba(0,0,0,.9);
260
+ @tooltip-arrow-width: 5px;
261
+ @tooltip-arrow-color: @tooltip-background;
262
+
263
+ @popover-background: #fff;
264
+ @popover-arrow-width: 10px;
265
+ @popover-arrow-color: #fff;
266
+ @popover-title-background: darken(@popover-background, 3%);
267
+
268
+ // Special enhancement for popovers
269
+ @popover-arrow-outer-width: (@popover-arrow-width + 1);
270
+ @popover-arrow-outer-color: rgba(0,0,0,.25);
271
+
272
+
273
+ // Labels
274
+ // -------------------------
275
+ @label-success-background: @brand-success;
276
+ @label-info-background: @brand-info;
277
+ @label-warning-background: @brand-warning;
278
+ @label-danger-background: @brand-danger;
279
+
280
+
281
+ // Modals
282
+ // -------------------------
283
+
284
+ @modal-inner-padding: 20px;
285
+
286
+
287
+ // Progress bars
288
+ // -------------------------
289
+ @progress-bg: #f5f5f5;
290
+ @progress-bar-bg: @brand-primary;
291
+ @progress-bar-success-bg: @brand-success;
292
+ @progress-bar-warning-bg: @brand-warning;
293
+ @progress-bar-danger-bg: @brand-danger;
294
+ @progress-bar-info-bg: @brand-info;
295
+
296
+
297
+ // Miscellaneous
298
+ // -------------------------
299
+
300
+ // Hr border color
301
+ @hr-border: @grayLighter;
302
+
303
+ // Horizontal forms & lists
304
+ @component-offset-horizontal: 180px;
305
+
306
+ // Wells
307
+ @well-background: #f5f5f5;
308
+
309
+
310
+
311
+ // Grid system
312
+ // --------------------------------------------------
313
+
314
+ @grid-columns: 12;
315
+ @grid-gutter-width: 30px;
316
+ @grid-float-breakpoint: 768px;