phoenixbricks 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +674 -0
- data/README.md +85 -0
- data/bin/rbricks +5 -0
- data/lib/railsbricks.rb +115 -0
- data/lib/railsbricks/app_generator.rb +352 -0
- data/lib/railsbricks/assets/config/admin_post_routes.rbr +3 -0
- data/lib/railsbricks/assets/config/application.yml +9 -0
- data/lib/railsbricks/assets/config/contact_routes.rbr +2 -0
- data/lib/railsbricks/assets/config/initializers/devise_email/devise.rb +267 -0
- data/lib/railsbricks/assets/config/initializers/devise_username/devise.rb +267 -0
- data/lib/railsbricks/assets/config/post_routes.rbr +2 -0
- data/lib/railsbricks/assets/config/routes.rb +15 -0
- data/lib/railsbricks/assets/config/unicorn.rb +22 -0
- data/lib/railsbricks/assets/controllers/admin/base_controller.rb +10 -0
- data/lib/railsbricks/assets/controllers/admin/devise_email/users_controller.rb +66 -0
- data/lib/railsbricks/assets/controllers/admin/devise_username/users_controller.rb +69 -0
- data/lib/railsbricks/assets/controllers/admin/posts_controller.rb +73 -0
- data/lib/railsbricks/assets/controllers/brick_contact.rbr +23 -0
- data/lib/railsbricks/assets/controllers/devise_email/application_controller.rb +54 -0
- data/lib/railsbricks/assets/controllers/devise_username/application_controller.rb +56 -0
- data/lib/railsbricks/assets/controllers/pages_controller.rb +13 -0
- data/lib/railsbricks/assets/controllers/posts_controller.rbr +10 -0
- data/lib/railsbricks/assets/database/postgresql.yml +12 -0
- data/lib/railsbricks/assets/database/sqlite3.yml +8 -0
- data/lib/railsbricks/assets/gemfile/Gemfile +44 -0
- data/lib/railsbricks/assets/git/gitignore +30 -0
- data/lib/railsbricks/assets/javascripts/analytics.js.coffee +5 -0
- data/lib/railsbricks/assets/lib/markdown_writer.rb +19 -0
- data/lib/railsbricks/assets/mailers/contact_mailer.rb +13 -0
- data/lib/railsbricks/assets/migrations/20141010133702_create_posts.rb +17 -0
- data/lib/railsbricks/assets/migrations/devise_email/20141010133701_devise_create_users.rb +48 -0
- data/lib/railsbricks/assets/migrations/devise_username/20141010133701_devise_create_users.rb +54 -0
- data/lib/railsbricks/assets/models/devise_email/user.rb +41 -0
- data/lib/railsbricks/assets/models/devise_username/user.rb +57 -0
- data/lib/railsbricks/assets/models/post.rb +30 -0
- data/lib/railsbricks/assets/procfile/Procfile +1 -0
- data/lib/railsbricks/assets/seeds/devise_email/seeds_no_test_users.rb +11 -0
- data/lib/railsbricks/assets/seeds/devise_email/seeds_test_users.rb +24 -0
- data/lib/railsbricks/assets/seeds/devise_username/seeds_no_test_users.rb +12 -0
- data/lib/railsbricks/assets/seeds/devise_username/seeds_test_users.rb +26 -0
- data/lib/railsbricks/assets/stylesheets/application.scss +6 -0
- data/lib/railsbricks/assets/stylesheets/railsbricks_custom.scss +562 -0
- data/lib/railsbricks/assets/views/admin/base/admin_posts_link.rbr +1 -0
- data/lib/railsbricks/assets/views/admin/base/devise_email/index.html.erb +41 -0
- data/lib/railsbricks/assets/views/admin/base/devise_username/index.html.erb +41 -0
- data/lib/railsbricks/assets/views/admin/posts/_form.html.erb +54 -0
- data/lib/railsbricks/assets/views/admin/posts/dashboard.html.erb +9 -0
- data/lib/railsbricks/assets/views/admin/posts/drafts.html.erb +23 -0
- data/lib/railsbricks/assets/views/admin/posts/edit.html.erb +10 -0
- data/lib/railsbricks/assets/views/admin/posts/index.html.erb +23 -0
- data/lib/railsbricks/assets/views/admin/posts/new.html.erb +6 -0
- data/lib/railsbricks/assets/views/admin/users/devise_email/edit.html.erb +65 -0
- data/lib/railsbricks/assets/views/admin/users/devise_email/index.html.erb +54 -0
- data/lib/railsbricks/assets/views/admin/users/devise_username/edit.html.erb +74 -0
- data/lib/railsbricks/assets/views/admin/users/devise_username/index.html.erb +56 -0
- data/lib/railsbricks/assets/views/contact_mailer/contact_message.html.erb +5 -0
- data/lib/railsbricks/assets/views/devise/allow_signup_links.rbr +11 -0
- data/lib/railsbricks/assets/views/devise/devise_email/confirmations/new.html.erb +31 -0
- data/lib/railsbricks/assets/views/devise/devise_email/mailer/confirmation_instructions.html.erb +12 -0
- data/lib/railsbricks/assets/views/devise/devise_email/mailer/reset_password_instructions.html.erb +15 -0
- data/lib/railsbricks/assets/views/devise/devise_email/passwords/edit.html.erb +43 -0
- data/lib/railsbricks/assets/views/devise/devise_email/passwords/new.html.erb +31 -0
- data/lib/railsbricks/assets/views/devise/devise_email/registrations/edit.html.erb +63 -0
- data/lib/railsbricks/assets/views/devise/devise_email/registrations/new.html.erb +49 -0
- data/lib/railsbricks/assets/views/devise/devise_email/sessions/new.html.erb +49 -0
- data/lib/railsbricks/assets/views/devise/devise_email/shared/_links.erb +19 -0
- data/lib/railsbricks/assets/views/devise/devise_username/confirmations/new.html.erb +31 -0
- data/lib/railsbricks/assets/views/devise/devise_username/mailer/confirmation_instructions.html.erb +12 -0
- data/lib/railsbricks/assets/views/devise/devise_username/mailer/reset_password_instructions.html.erb +15 -0
- data/lib/railsbricks/assets/views/devise/devise_username/passwords/edit.html.erb +43 -0
- data/lib/railsbricks/assets/views/devise/devise_username/passwords/new.html.erb +31 -0
- data/lib/railsbricks/assets/views/devise/devise_username/registrations/edit.html.erb +63 -0
- data/lib/railsbricks/assets/views/devise/devise_username/registrations/new.html.erb +58 -0
- data/lib/railsbricks/assets/views/devise/devise_username/sessions/new.html.erb +49 -0
- data/lib/railsbricks/assets/views/devise/devise_username/shared/_links.erb +19 -0
- data/lib/railsbricks/assets/views/layouts/_navigation_links.html.erb +15 -0
- data/lib/railsbricks/assets/views/layouts/brick_analytics.rbr +11 -0
- data/lib/railsbricks/assets/views/pages/contact.html.erb +46 -0
- data/lib/railsbricks/assets/views/pages/inside.html.erb +4 -0
- data/lib/railsbricks/assets/views/pages/posts.html.erb +18 -0
- data/lib/railsbricks/assets/views/pages/show_post.html.erb +6 -0
- data/lib/railsbricks/auth_builder.rb +147 -0
- data/lib/railsbricks/config_helpers.rb +27 -0
- data/lib/railsbricks/config_values.rb +14 -0
- data/lib/railsbricks/errors.rb +18 -0
- data/lib/railsbricks/file_helpers.rb +54 -0
- data/lib/railsbricks/foundation/README.md +24 -0
- data/lib/railsbricks/foundation/Rakefile +6 -0
- data/lib/railsbricks/foundation/app/assets/images/.keep +0 -0
- data/lib/railsbricks/foundation/app/assets/images/apple-touch-icon-precomposed.png +0 -0
- data/lib/railsbricks/foundation/app/assets/images/apple-touch-icon.png +0 -0
- data/lib/railsbricks/foundation/app/assets/images/favicon.ico +0 -0
- data/lib/railsbricks/foundation/app/assets/javascripts/application.js +17 -0
- data/lib/railsbricks/foundation/app/assets/javascripts/common.js +7 -0
- data/lib/railsbricks/foundation/app/controllers/application_controller.rb +5 -0
- data/lib/railsbricks/foundation/app/controllers/concerns/.keep +0 -0
- data/lib/railsbricks/foundation/app/controllers/pages_controller.rb +7 -0
- data/lib/railsbricks/foundation/app/helpers/application_helper.rb +7 -0
- data/lib/railsbricks/foundation/app/helpers/email_helper.rb +5 -0
- data/lib/railsbricks/foundation/app/mailers/.keep +0 -0
- data/lib/railsbricks/foundation/app/models/.keep +0 -0
- data/lib/railsbricks/foundation/app/models/concerns/.keep +0 -0
- data/lib/railsbricks/foundation/app/views/layouts/_footer.html.erb +18 -0
- data/lib/railsbricks/foundation/app/views/layouts/_messages.html.erb +9 -0
- data/lib/railsbricks/foundation/app/views/layouts/_navigation.html.erb +18 -0
- data/lib/railsbricks/foundation/app/views/layouts/_navigation_links.html.erb +3 -0
- data/lib/railsbricks/foundation/app/views/layouts/application.html.erb +38 -0
- data/lib/railsbricks/foundation/app/views/pages/home.html.erb +2 -0
- data/lib/railsbricks/foundation/bin/bundle +3 -0
- data/lib/railsbricks/foundation/bin/rails +4 -0
- data/lib/railsbricks/foundation/bin/rake +4 -0
- data/lib/railsbricks/foundation/config.ru +4 -0
- data/lib/railsbricks/foundation/config/application.rb +34 -0
- data/lib/railsbricks/foundation/config/boot.rb +4 -0
- data/lib/railsbricks/foundation/config/environment.rb +5 -0
- data/lib/railsbricks/foundation/config/environments/development.rb +41 -0
- data/lib/railsbricks/foundation/config/environments/production.rb +95 -0
- data/lib/railsbricks/foundation/config/environments/test.rb +51 -0
- data/lib/railsbricks/foundation/config/initializers/backtrace_silencers.rb +7 -0
- data/lib/railsbricks/foundation/config/initializers/date_format.rb +27 -0
- data/lib/railsbricks/foundation/config/initializers/filter_parameter_logging.rb +4 -0
- data/lib/railsbricks/foundation/config/initializers/friendly_id.rb +88 -0
- data/lib/railsbricks/foundation/config/initializers/inflections.rb +16 -0
- data/lib/railsbricks/foundation/config/initializers/kaminari_config.rb +10 -0
- data/lib/railsbricks/foundation/config/initializers/mime_types.rb +5 -0
- data/lib/railsbricks/foundation/config/initializers/secret_token.rb +25 -0
- data/lib/railsbricks/foundation/config/initializers/session_store.rb +3 -0
- data/lib/railsbricks/foundation/config/initializers/wrap_parameters.rb +14 -0
- data/lib/railsbricks/foundation/config/locales/en.yml +23 -0
- data/lib/railsbricks/foundation/config/routes.rb +7 -0
- data/lib/railsbricks/foundation/db/migrate/20131103142222_create_friendly_id_slugs.rb +15 -0
- data/lib/railsbricks/foundation/db/schema.rb +29 -0
- data/lib/railsbricks/foundation/db/seeds.rb +0 -0
- data/lib/railsbricks/foundation/lib/assets/.keep +0 -0
- data/lib/railsbricks/foundation/lib/tasks/.keep +0 -0
- data/lib/railsbricks/foundation/public/404.html +58 -0
- data/lib/railsbricks/foundation/public/422.html +58 -0
- data/lib/railsbricks/foundation/public/500.html +57 -0
- data/lib/railsbricks/foundation/public/favicon.ico +0 -0
- data/lib/railsbricks/foundation/public/robots.txt +5 -0
- data/lib/railsbricks/foundation/vendor/assets/javascripts/.keep +0 -0
- data/lib/railsbricks/foundation/vendor/assets/stylesheets/.keep +0 -0
- data/lib/railsbricks/gemfile_builder.rb +118 -0
- data/lib/railsbricks/menu.rb +533 -0
- data/lib/railsbricks/post_builder.rb +103 -0
- data/lib/railsbricks/string_helpers.rb +39 -0
- data/lib/railsbricks/style_builder.rb +97 -0
- data/lib/railsbricks/ui_helpers.rb +11 -0
- data/lib/railsbricks/validator.rb +68 -0
- data/lib/railsbricks/version.rb +34 -0
- data/railsbricks.gemspec +16 -0
- metadata +198 -0
@@ -0,0 +1,562 @@
|
|
1
|
+
//***********************************************************
|
2
|
+
// BOOTSTRAP VARIABLES OVERRIDES
|
3
|
+
|
4
|
+
// Color system
|
5
|
+
$brand-primary: BRICK_BRAND_COLOR;
|
6
|
+
$brand-success: #5cb85c;
|
7
|
+
$brand-warning: #f0ad4e;
|
8
|
+
$brand-danger: #d9534f;
|
9
|
+
$brand-info: #5bc0de;
|
10
|
+
|
11
|
+
// Body scaffolding
|
12
|
+
$body-bg: BRICK_BODY_COLOR;
|
13
|
+
$text-color: BRICK_TEXT_COLOR;
|
14
|
+
$link-color: $brand-primary;
|
15
|
+
$link-hover-color: darken($link-color, 15%);
|
16
|
+
|
17
|
+
// Typography
|
18
|
+
BRICK_FONT_IMPORT
|
19
|
+
$font-family-sans-serif: BRICK_FONT_SANS_SERIF;
|
20
|
+
$font-family-serif: BRICK_FONT_SERIF;
|
21
|
+
$font-family-monospace: BRICK_FONT_MONOSPACE;
|
22
|
+
$font-family-base: BRICK_FONT_BASE;
|
23
|
+
$font-size-base: 14px;
|
24
|
+
|
25
|
+
// Headings
|
26
|
+
$headings-font-family: $font-family-base;
|
27
|
+
$headings-font-weight: 700;
|
28
|
+
$headings-color: inherit;
|
29
|
+
|
30
|
+
// Code blocks
|
31
|
+
$code-color: #c7254e;
|
32
|
+
$code-bg: #f9f2f4;
|
33
|
+
$pre-color: #373737;
|
34
|
+
$pre-bg: #f5f5f5;
|
35
|
+
$pre-border-color: #cccccc;
|
36
|
+
|
37
|
+
// Components: Padding
|
38
|
+
$padding-base-vertical: 6px;
|
39
|
+
$padding-large-vertical: 10px;
|
40
|
+
$padding-small-vertical: 5px;
|
41
|
+
$padding-base-horizontal: 12px;
|
42
|
+
$padding-large-horizontal: 16px;
|
43
|
+
$padding-small-horizontal: 10px;
|
44
|
+
|
45
|
+
// Components: Rounded corners
|
46
|
+
$border-radius-base: 4px;
|
47
|
+
$border-radius-large: 6px;
|
48
|
+
$border-radius-small: 3px;
|
49
|
+
|
50
|
+
// Components: Active state
|
51
|
+
$component-active-color: #ffffff;
|
52
|
+
$component-active-bg: $brand-primary;
|
53
|
+
|
54
|
+
// Components: Carets
|
55
|
+
$caret-width-base: 4px;
|
56
|
+
$caret-width-large: 5px;
|
57
|
+
|
58
|
+
// Buttons: Global
|
59
|
+
$btn-font-weight: normal;
|
60
|
+
$btn-link-disabled-color: #cccccc;
|
61
|
+
|
62
|
+
// Buttons: Default
|
63
|
+
$btn-default-color: #ffffff;
|
64
|
+
$btn-default-bg: #bbbbbb;
|
65
|
+
$btn-default-border: #cccccc;
|
66
|
+
|
67
|
+
// Buttons: Primary
|
68
|
+
$btn-primary-color: $btn-default-color;
|
69
|
+
$btn-primary-bg: $brand-primary;
|
70
|
+
$btn-primary-border: darken($btn-primary-bg, 5%);
|
71
|
+
|
72
|
+
// Buttons: Info
|
73
|
+
$btn-info-color: $btn-default-color;
|
74
|
+
$btn-info-bg: $brand-info;
|
75
|
+
$btn-info-border: darken($btn-info-bg, 5%);
|
76
|
+
|
77
|
+
// Buttons: Warning
|
78
|
+
$btn-warning-color: $btn-default-color;
|
79
|
+
$btn-warning-bg: $brand-warning;
|
80
|
+
$btn-warning-border: darken($btn-warning-bg, 5%);
|
81
|
+
|
82
|
+
// Buttons: Danger
|
83
|
+
$btn-danger-color: $btn-default-color;
|
84
|
+
$btn-danger-bg: $brand-danger;
|
85
|
+
$btn-danger-border: darken($btn-danger-bg, 5%);
|
86
|
+
|
87
|
+
// Form states and alerts
|
88
|
+
$state-success-text: #468847;
|
89
|
+
$state-success-bg: #dff0d8;
|
90
|
+
$state-success-border: darken($state-success-bg, 5%);
|
91
|
+
|
92
|
+
$state-warning-text: #c09853;
|
93
|
+
$state-warning-bg: #fcf8e3;
|
94
|
+
$state-warning-border: darken($state-warning-bg, 3%);
|
95
|
+
|
96
|
+
$state-danger-text: #b94a48;
|
97
|
+
$state-danger-bg: #f2dede;
|
98
|
+
$state-danger-border: darken($state-danger-bg, 3%);
|
99
|
+
|
100
|
+
$state-info-text: #3a87ad;
|
101
|
+
$state-info-bg: #d9edf7;
|
102
|
+
$state-info-border: darken($state-info-bg, 7%);
|
103
|
+
|
104
|
+
// Alerts: Base styles
|
105
|
+
$alert-padding: 15px;
|
106
|
+
$alert-border-radius: $border-radius-base;
|
107
|
+
$alert-link-font-weight: bold;
|
108
|
+
|
109
|
+
// Alerts: Warning
|
110
|
+
$alert-warning-text: $state-warning-text;
|
111
|
+
$alert-warning-bg: $state-warning-bg;
|
112
|
+
$alert-warning-border: $state-warning-border;
|
113
|
+
|
114
|
+
// Alerts: Success
|
115
|
+
$alert-success-text: $state-success-text;
|
116
|
+
$alert-success-bg: $state-success-bg;
|
117
|
+
$alert-success-border: $state-success-border;
|
118
|
+
|
119
|
+
// Alerts: Danger
|
120
|
+
$alert-danger-text: $state-danger-text;
|
121
|
+
$alert-danger-bg: $state-danger-bg;
|
122
|
+
$alert-danger-border: $state-danger-border;
|
123
|
+
|
124
|
+
//Alerts: Info
|
125
|
+
$alert-info-text: $state-info-text;
|
126
|
+
$alert-info-bg: $state-info-bg;
|
127
|
+
$alert-info-border: $state-info-border;
|
128
|
+
|
129
|
+
// Navbar: Base styles
|
130
|
+
$navbar-height: 50px;
|
131
|
+
$navbar-margin-bottom: 4px;
|
132
|
+
$navbar-padding-horizontal: 15px;
|
133
|
+
$navbar-padding-vertical: 13px;
|
134
|
+
$navbar-border-radius: 0px;
|
135
|
+
|
136
|
+
// Navbar: Default navbar
|
137
|
+
// -> Basics
|
138
|
+
$navbar-default-color: #777777;
|
139
|
+
$navbar-default-bg: #f8f8f8;
|
140
|
+
$navbar-default-border: darken($navbar-default-bg, 7%);
|
141
|
+
// -> Links
|
142
|
+
$navbar-default-link-color: #777777;
|
143
|
+
$navbar-default-link-hover-color: #333333;
|
144
|
+
$navbar-default-link-hover-bg: $navbar-default-bg;
|
145
|
+
$navbar-default-link-active-color: #555555;
|
146
|
+
$navbar-default-link-active-bg: darken($navbar-default-bg, 7%);
|
147
|
+
$navbar-default-link-disabled-color: #cccccc;
|
148
|
+
$navbar-default-link-disabled-bg:$navbar-default-bg;
|
149
|
+
// -> Brand
|
150
|
+
$navbar-default-brand-color: $navbar-default-link-color;
|
151
|
+
$navbar-default-brand-hover-color: darken($navbar-default-brand-color, 10%);
|
152
|
+
$navbar-default-brand-hover-bg: $navbar-default-bg;
|
153
|
+
// -> Toggle
|
154
|
+
$navbar-default-toggle-hover-bg: #dddddd;
|
155
|
+
$navbar-default-toggle-icon-bar-bg: #cccccc;
|
156
|
+
$navbar-default-toggle-border-color: #dddddd;
|
157
|
+
|
158
|
+
// Navbar: Inverted navbar
|
159
|
+
// -> Basics
|
160
|
+
$navbar-inverse-color: #eeeeee;
|
161
|
+
$navbar-inverse-bg: #222222;
|
162
|
+
$navbar-inverse-border: darken($navbar-inverse-bg, 7%);
|
163
|
+
// -> Links
|
164
|
+
$navbar-inverse-link-color: #eeeeee;
|
165
|
+
$navbar-inverse-link-hover-color: #ffffff;
|
166
|
+
$navbar-inverse-link-hover-bg: $navbar-inverse-bg;
|
167
|
+
$navbar-inverse-link-active-color: #ffffff;
|
168
|
+
$navbar-inverse-link-active-bg: darken($navbar-inverse-bg, 7%);
|
169
|
+
$navbar-inverse-link-disabled-color: #444444;
|
170
|
+
$navbar-inverse-link-disabled-bg:$navbar-inverse-bg;
|
171
|
+
// -> Brand
|
172
|
+
$navbar-inverse-brand-color: $navbar-inverse-link-color;
|
173
|
+
$navbar-inverse-brand-hover-color: #ffffff;
|
174
|
+
$navbar-inverse-brand-hover-bg: $navbar-inverse-bg;
|
175
|
+
// -> Toggle
|
176
|
+
$navbar-inverse-toggle-hover-bg: #333333;
|
177
|
+
$navbar-inverse-toggle-icon-bar-bg: #ffffff;
|
178
|
+
$navbar-inverse-toggle-border-color: #333333;
|
179
|
+
|
180
|
+
// Nav: Default nav
|
181
|
+
// -> Common values
|
182
|
+
$nav-link-padding: 10px 15px;
|
183
|
+
$nav-link-hover-bg: #eeeeee;
|
184
|
+
$nav-disabled-link-color: #cccccc;
|
185
|
+
$nav-disabled-link-hover-color: #cccccc;
|
186
|
+
$nav-open-link-hover-color: #ffffff;
|
187
|
+
$nav-open-caret-border-color: #ffffff;
|
188
|
+
// -> Pills
|
189
|
+
$nav-pills-active-link-hover-color: #ffffff;
|
190
|
+
$nav-pills-active-link-hover-bg: $component-active-bg;
|
191
|
+
// -> Tabs
|
192
|
+
$nav-tabs-border-color: #dddddd;
|
193
|
+
$nav-tabs-link-hover-border-color: #eeeeee;
|
194
|
+
$nav-tabs-active-link-hover-color: #bbbbbb;
|
195
|
+
$nav-tabs-active-link-hover-bg: $body-bg;
|
196
|
+
$nav-tabs-active-link-hover-border-color: #dddddd;
|
197
|
+
$nav-tabs-justified-link-border-color: #dddddd;
|
198
|
+
$nav-tabs-justified-active-link-border-color: $body-bg;
|
199
|
+
|
200
|
+
// Tables
|
201
|
+
// -> Default padding for <th>s and <td>s
|
202
|
+
$table-cell-padding: 8px;
|
203
|
+
// -> Default padding cells in .table-condensed
|
204
|
+
$table-condensed-cell-padding: 5px;
|
205
|
+
// -> Default background color used for all tables.
|
206
|
+
$table-bg: $body-bg;
|
207
|
+
// -> Background color used for .table-striped.
|
208
|
+
$table-bg-accent: #f9f9f9;
|
209
|
+
// -> Background color used for .table-hover.
|
210
|
+
$table-bg-hover: #f5f5f5;
|
211
|
+
// -> Border color for table and cell borders.
|
212
|
+
$table-border-color: #dddddd;
|
213
|
+
|
214
|
+
// Forms
|
215
|
+
// -> Inputs
|
216
|
+
$input-color: $text-color; // Text color for <input>s
|
217
|
+
$input-bg: #ffffff; // <input> background color
|
218
|
+
$input-border: #cccccc; // <input> border color
|
219
|
+
$input-border-radius: $border-radius-base; // <input> border radius
|
220
|
+
$input-color-placeholder: #bbbbbb; // Placeholder text color
|
221
|
+
// -> Input states
|
222
|
+
$input-border-focus: #66afe9; // Border color for inputs on focus
|
223
|
+
$input-bg-disabled: #dddddd; // <input disabled> background color
|
224
|
+
// -> Input sizes
|
225
|
+
$input-height-base: 38px; // Default .form-control height
|
226
|
+
$input-height-large: 46px; // Large .form-control height
|
227
|
+
$input-height-small: 28px; // Small .form-control height
|
228
|
+
// -> Legend
|
229
|
+
$legend-color: #aaaaaa;
|
230
|
+
$legend-border-color: #e5e5e5;
|
231
|
+
// -> Input groups
|
232
|
+
$input-group-addon-bg: #cccccc; // Background color for textual input addons
|
233
|
+
$input-group-addon-border-color: $input-border; // Border color for textual input addons
|
234
|
+
|
235
|
+
// Dropdowns
|
236
|
+
// -> Dropdown menu
|
237
|
+
$dropdown-bg: #ffffff; // Dropdown menu background color
|
238
|
+
$dropdown-border: #373737; // Dropdown menu border color
|
239
|
+
$dropdown-fallback-border: #cccccc; // Dropdown menu border color for IE8
|
240
|
+
$dropdown-caret-color: #dddddd; // Indicator arrow for showing an element has a dropdown
|
241
|
+
$dropdown-divider-bg: #e5e5e5; // Dropdown divider top border color
|
242
|
+
$dropdown-header-color: #dddddd; // Text color for headers within dropdown menus
|
243
|
+
// -> Dropdown items
|
244
|
+
$dropdown-link-color: $text-color; // Dropdown text color
|
245
|
+
$dropdown-link-hover-color: darken($dropdown-link-color,5%); // Hovered dropdown menu entry text color
|
246
|
+
$dropdown-link-hover-bg: #f5f5f5; // Hovered dropdown menu entry text color
|
247
|
+
$dropdown-link-active-color: $component-active-color; // Active dropdown menu entry text color
|
248
|
+
$dropdown-link-active-bg: $component-active-bg; // Active dropdown menu entry background color
|
249
|
+
$dropdown-link-disabled-color: #dddddd; // Disabled dropdown menu entry background color
|
250
|
+
|
251
|
+
// Panels and wells
|
252
|
+
// -> Common panel styles
|
253
|
+
$panel-bg: #ffffff;
|
254
|
+
$panel-inner-border: #dddddd; // Border color for elements within panels
|
255
|
+
$panel-border-radius: $border-radius-base;
|
256
|
+
$panel-footer-bg: #f5f5f5;
|
257
|
+
// -> Contextual panel colors
|
258
|
+
// --> Default
|
259
|
+
$panel-default-text: #373737;
|
260
|
+
$panel-default-border: #dddddd;
|
261
|
+
$panel-default-heading-bg: #f5f5f5;
|
262
|
+
// --> Primary
|
263
|
+
$panel-primary-text: #ffffff;
|
264
|
+
$panel-primary-border: $brand-primary;
|
265
|
+
$panel-primary-heading-bg: $brand-primary;
|
266
|
+
// --> Success
|
267
|
+
$panel-success-text: $state-success-text;
|
268
|
+
$panel-success-border: $state-success-border;
|
269
|
+
$panel-success-heading-bg: $state-success-bg;
|
270
|
+
// --> Info
|
271
|
+
$panel-info-text: $state-info-text;
|
272
|
+
$panel-info-border: $state-info-border;
|
273
|
+
$panel-info-heading-bg: $state-info-bg;
|
274
|
+
// --> Warning
|
275
|
+
$panel-warning-text: $state-warning-text;
|
276
|
+
$panel-warning-border: $state-warning-border;
|
277
|
+
$panel-warning-heading-bg: $state-warning-bg;
|
278
|
+
// --> Danger
|
279
|
+
$panel-danger-text: $state-danger-text;
|
280
|
+
$panel-danger-border: $state-danger-border;
|
281
|
+
$panel-danger-heading-bg: $state-danger-bg;
|
282
|
+
// -> Wells
|
283
|
+
$well-bg: #f5f5f5;
|
284
|
+
|
285
|
+
// Jumbotron
|
286
|
+
$jumbotron-padding: 30px;
|
287
|
+
$jumbotron-bg: #cccccc;
|
288
|
+
$jumbotron-font-size: ceil($font-size-base * 1.5);
|
289
|
+
$jumbotron-color: $text-color;
|
290
|
+
$jumbotron-heading-color: $headings-color;
|
291
|
+
|
292
|
+
// Carousel
|
293
|
+
$carousel-text-shadow: 0px 1px 2px #373737;
|
294
|
+
$carousel-control-color: #ffffff;
|
295
|
+
$carousel-caption-color: #ffffff;
|
296
|
+
$carousel-indicator-border-color: #ffffff;
|
297
|
+
$carousel-indicator-active-bg: #ffffff;
|
298
|
+
|
299
|
+
// Labels
|
300
|
+
$label-color: #ffffff; // Default label text color
|
301
|
+
$label-link-hover-color: #ffffff; // Default text color of a linked label
|
302
|
+
$label-default-bg: #cccccc; // Default label background color
|
303
|
+
$label-primary-bg: $brand-primary; // Primary label background color
|
304
|
+
$label-success-bg: $brand-success; // Success label background color
|
305
|
+
$label-info-bg: $brand-info; // Info label background color
|
306
|
+
$label-warning-bg: $brand-warning; // Warning label background color
|
307
|
+
$label-danger-bg: $brand-danger; // Danger label background color
|
308
|
+
|
309
|
+
// Close button
|
310
|
+
$close-font-weight: bold;
|
311
|
+
$close-color: #000000;
|
312
|
+
$close-text-shadow: 0px 1px 0px #ffffff;
|
313
|
+
|
314
|
+
// Type
|
315
|
+
$text-muted: #bbbbbb; // Text muted color
|
316
|
+
$abbr-border-color: #cccccc; // Abbreviations and acronyms border color
|
317
|
+
$headings-small-color: BRICK_HEADINGS_SMALL_COLOR; // Headings small color
|
318
|
+
$blockquote-small-color: #cccccc; // Blockquote small color
|
319
|
+
$blockquote-border-color: #eeeeee; // Blockquote border color
|
320
|
+
$page-header-border-color: #eeeeee; // Page header border color
|
321
|
+
|
322
|
+
// Other
|
323
|
+
$hr-border: #cccccc; // Horizontal line color
|
324
|
+
$component-offset-horizontal: 180px; // Horizontal offset for forms and lists
|
325
|
+
|
326
|
+
//***********************************************************
|
327
|
+
@import "bootstrap-sprockets";
|
328
|
+
@import "bootstrap";
|
329
|
+
@import "font-awesome-sprockets";
|
330
|
+
@import "font-awesome";
|
331
|
+
|
332
|
+
//***********************************************************
|
333
|
+
// CLASSES FOR VISUAL TESTING
|
334
|
+
.test1 {
|
335
|
+
background-color: yellow;
|
336
|
+
}
|
337
|
+
.test2 {
|
338
|
+
background-color: red;
|
339
|
+
}
|
340
|
+
.test3 {
|
341
|
+
background-color: blue;
|
342
|
+
}
|
343
|
+
//***********************************************************
|
344
|
+
|
345
|
+
//***********************************************************
|
346
|
+
// APPLICATION-WIDE
|
347
|
+
html,body {
|
348
|
+
height: 100%;
|
349
|
+
}
|
350
|
+
|
351
|
+
#wrap {
|
352
|
+
min-height: 100%;
|
353
|
+
padding-bottom: 120px;
|
354
|
+
}
|
355
|
+
|
356
|
+
blockquote{
|
357
|
+
font-size: $font-size-base;
|
358
|
+
font-style: italic;
|
359
|
+
}
|
360
|
+
|
361
|
+
.monospaced-control{
|
362
|
+
font-family: $font-family-monospace;
|
363
|
+
font-size: 12px;
|
364
|
+
}
|
365
|
+
|
366
|
+
.center-block{
|
367
|
+
margin-left: auto;
|
368
|
+
margin-right: auto;
|
369
|
+
}
|
370
|
+
//***********************************************************
|
371
|
+
|
372
|
+
//***********************************************************
|
373
|
+
// SPACING
|
374
|
+
$space-lg: 60px;
|
375
|
+
$space-md: 40px;
|
376
|
+
$space-sm: 20px;
|
377
|
+
$space-xs: 10px;
|
378
|
+
|
379
|
+
.space-top-lg{
|
380
|
+
margin-top: $space-lg;
|
381
|
+
}
|
382
|
+
.space-top-md{
|
383
|
+
margin-top: $space-md;
|
384
|
+
}
|
385
|
+
.space-top-sm{
|
386
|
+
margin-top: $space-sm;
|
387
|
+
}
|
388
|
+
.space-top-xs{
|
389
|
+
margin-top: $space-xs;
|
390
|
+
}
|
391
|
+
|
392
|
+
.space-bottom-lg{
|
393
|
+
margin-bottom: $space-lg;
|
394
|
+
}
|
395
|
+
.space-bottom-md{
|
396
|
+
margin-bottom: $space-md;
|
397
|
+
}
|
398
|
+
.space-bottom-sm{
|
399
|
+
margin-bottom: $space-sm;
|
400
|
+
}
|
401
|
+
.space-bottom-xs{
|
402
|
+
margin-bottom: $space-xs;
|
403
|
+
}
|
404
|
+
|
405
|
+
.space-left-lg{
|
406
|
+
margin-left: $space-lg;
|
407
|
+
}
|
408
|
+
.space-left-md{
|
409
|
+
margin-left: $space-md;
|
410
|
+
}
|
411
|
+
.space-left-sm{
|
412
|
+
margin-left: $space-sm;
|
413
|
+
}
|
414
|
+
.space-left-xs{
|
415
|
+
margin-left: $space-xs;
|
416
|
+
}
|
417
|
+
|
418
|
+
.space-right-lg{
|
419
|
+
margin-right: $space-lg;
|
420
|
+
}
|
421
|
+
.space-right-md{
|
422
|
+
margin-right: $space-md;
|
423
|
+
}
|
424
|
+
.space-right-sm{
|
425
|
+
margin-right: $space-sm;
|
426
|
+
}
|
427
|
+
.space-right-xs{
|
428
|
+
margin-right: $space-xs;
|
429
|
+
}
|
430
|
+
|
431
|
+
.space-all-lg{
|
432
|
+
margin: $space-lg;
|
433
|
+
}
|
434
|
+
.space-all-md{
|
435
|
+
margin: $space-md;
|
436
|
+
}
|
437
|
+
.space-all-sm{
|
438
|
+
margin: $space-sm;
|
439
|
+
}
|
440
|
+
.space-all-xs{
|
441
|
+
margin: $space-xs;
|
442
|
+
}
|
443
|
+
|
444
|
+
//***********************************************************
|
445
|
+
|
446
|
+
//***********************************************************
|
447
|
+
// FLASH MESSAGES
|
448
|
+
.alert {
|
449
|
+
margin-top: -4px;
|
450
|
+
}
|
451
|
+
//***********************************************************
|
452
|
+
|
453
|
+
//***********************************************************
|
454
|
+
// NAVBAR
|
455
|
+
.navbar-brand {
|
456
|
+
font-size: inherit;
|
457
|
+
}
|
458
|
+
//***********************************************************
|
459
|
+
|
460
|
+
//***********************************************************
|
461
|
+
// ERRORS
|
462
|
+
#error_explanation {
|
463
|
+
color: $brand-danger;
|
464
|
+
ul {
|
465
|
+
margin-left: 8px;
|
466
|
+
padding-left: 8px;
|
467
|
+
}
|
468
|
+
|
469
|
+
h2 {
|
470
|
+
display:none;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
|
474
|
+
.error-text {
|
475
|
+
color: $brand-danger;
|
476
|
+
}
|
477
|
+
|
478
|
+
.field_with_errors {
|
479
|
+
.form-control {
|
480
|
+
border: 1px solid $brand-danger;
|
481
|
+
}
|
482
|
+
label {
|
483
|
+
color: $brand-danger;
|
484
|
+
}
|
485
|
+
}
|
486
|
+
//***********************************************************
|
487
|
+
|
488
|
+
//***********************************************************
|
489
|
+
// IMAGES
|
490
|
+
img {
|
491
|
+
@extend .img-responsive;
|
492
|
+
}
|
493
|
+
|
494
|
+
.img-inline{
|
495
|
+
display: inline;
|
496
|
+
}
|
497
|
+
|
498
|
+
.img-block{
|
499
|
+
display: block;
|
500
|
+
}
|
501
|
+
|
502
|
+
.img-framed{
|
503
|
+
border: 1px solid #cccccc;
|
504
|
+
box-shadow: 2px 2px 6px #dddddd;
|
505
|
+
border-radius: 4px;
|
506
|
+
}
|
507
|
+
|
508
|
+
.img-title{
|
509
|
+
color: #bbbbbb;
|
510
|
+
font-size: 0.9em;
|
511
|
+
font-style: italic;
|
512
|
+
margin-top: 4px;
|
513
|
+
}
|
514
|
+
|
515
|
+
//***********************************************************
|
516
|
+
|
517
|
+
//***********************************************************
|
518
|
+
// VIDEO
|
519
|
+
.js-video {
|
520
|
+
height: 0;
|
521
|
+
padding-top: 25px;
|
522
|
+
padding-bottom: 67.5%;
|
523
|
+
margin-bottom: 10px;
|
524
|
+
position: relative;
|
525
|
+
overflow: hidden;
|
526
|
+
box-shadow: 3px 3px 5px #cccccc;
|
527
|
+
border: 3px solid #373737;
|
528
|
+
|
529
|
+
}
|
530
|
+
|
531
|
+
.js-video.widescreen {
|
532
|
+
padding-bottom: 57.25%;
|
533
|
+
}
|
534
|
+
|
535
|
+
.js-video.vimeo {
|
536
|
+
padding-top: 0;
|
537
|
+
}
|
538
|
+
|
539
|
+
.js-video embed, .js-video iframe, .js-video object, .js-video video {
|
540
|
+
top: 0;
|
541
|
+
left: 0;
|
542
|
+
width: 100%;
|
543
|
+
height: 100%;
|
544
|
+
position: absolute;
|
545
|
+
}
|
546
|
+
//***********************************************************
|
547
|
+
|
548
|
+
|
549
|
+
//***********************************************************
|
550
|
+
// FOOTER
|
551
|
+
#footer {
|
552
|
+
background-color: BRICK_FOOTER_BACKGROUND_COLOR;
|
553
|
+
color: BRICK_FOOTER_COLOR;
|
554
|
+
height: 100px;
|
555
|
+
margin-top: -100px;
|
556
|
+
letter-spacing: 1px;
|
557
|
+
|
558
|
+
.footer-first-row {
|
559
|
+
padding-top: 20px;
|
560
|
+
}
|
561
|
+
}
|
562
|
+
//***********************************************************
|