beyond_canvas 0.13.1.pre → 0.14.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/icons/file.svg +1 -0
- data/app/assets/images/icons/flash_checkbox.svg +1 -0
- data/app/assets/images/icons/flash_close.svg +1 -0
- data/app/assets/images/icons/flash_error.svg +1 -0
- data/app/assets/images/icons/flash_info.svg +1 -0
- data/app/assets/images/icons/flash_warning.svg +1 -0
- data/app/assets/javascripts/beyond_canvas/base.js +94 -0
- data/app/assets/stylesheets/beyond_canvas/base.scss +25 -0
- data/app/assets/stylesheets/beyond_canvas/components/_actions.scss +6 -0
- data/app/assets/stylesheets/beyond_canvas/components/_buttons.scss +112 -0
- data/app/assets/stylesheets/beyond_canvas/components/_cards.scss +34 -0
- data/app/assets/stylesheets/beyond_canvas/components/_comments.scss +6 -0
- data/app/assets/stylesheets/beyond_canvas/components/_flash.scss +66 -0
- data/app/assets/stylesheets/beyond_canvas/components/_forms.scss +43 -0
- data/app/assets/stylesheets/beyond_canvas/components/_inputs.scss +97 -0
- data/app/assets/stylesheets/beyond_canvas/components/_layouts.scss +7 -0
- data/app/assets/stylesheets/beyond_canvas/components/_links.scss +17 -0
- data/app/assets/stylesheets/beyond_canvas/components/_main.scss +39 -0
- data/app/assets/stylesheets/beyond_canvas/components/_margins.scss +9 -0
- data/app/assets/stylesheets/beyond_canvas/components/_markdown.scss +74 -0
- data/app/assets/stylesheets/beyond_canvas/components/_notices.scss +58 -0
- data/app/assets/stylesheets/beyond_canvas/components/_relative.scss +3 -0
- data/app/assets/stylesheets/beyond_canvas/components/_spinner.scss +48 -0
- data/app/assets/stylesheets/beyond_canvas/components/_tables.scss +31 -0
- data/app/assets/stylesheets/beyond_canvas/components/_texts.scss +7 -0
- data/app/assets/stylesheets/beyond_canvas/mailer.scss +5 -0
- data/app/assets/stylesheets/beyond_canvas/settings/{_reset_css.sass → _reset_css.scss} +29 -21
- data/app/assets/stylesheets/beyond_canvas/settings/_typography.scss +67 -0
- data/app/assets/stylesheets/beyond_canvas/settings/_variables.scss +147 -0
- data/app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss +24 -0
- data/app/controllers/beyond_canvas/application_controller.rb +1 -1
- data/app/controllers/beyond_canvas/system_controller.rb +1 -1
- data/app/controllers/concerns/beyond_canvas/locale_management.rb +4 -4
- data/app/controllers/concerns/beyond_canvas/request_validation.rb +7 -5
- data/app/controllers/concerns/beyond_canvas/status_codes.rb +5 -3
- data/app/form_builders/beyond_canvas/form_builder.rb +13 -9
- data/app/helpers/beyond_canvas/application_helper.rb +17 -18
- data/app/helpers/beyond_canvas/locale_switch_helper.rb +1 -1
- data/app/javascript/beyond_canvas/base.js +6 -0
- data/app/{assets/javascripts/beyond_canvas → javascript/beyond_canvas/initializers}/buttons.js +19 -14
- data/app/{assets/javascripts/beyond_canvas → javascript/beyond_canvas/initializers}/flash.js +11 -7
- data/app/javascript/beyond_canvas/initializers/inputs.js +39 -0
- data/app/views/beyond_canvas/custom/_public_head.html.erb +1 -0
- data/app/views/beyond_canvas/locales/_edit.html.erb +8 -0
- data/app/views/beyond_canvas/mailer/_header.html.erb +2 -2
- data/app/views/beyond_canvas/shared/_flash.html.erb +13 -0
- data/app/views/beyond_canvas/shared/_head.html.erb +29 -0
- data/app/views/beyond_canvas/shared/_logo.html.erb +2 -0
- data/app/views/layouts/beyond_canvas/public.html.erb +16 -0
- data/config/initializers/beyond_canvas/filter_parameter_logging.rb +5 -5
- data/lib/beyond_canvas.rb +12 -17
- data/lib/beyond_canvas/asset_registration.rb +29 -0
- data/lib/beyond_canvas/configuration.rb +27 -0
- data/lib/beyond_canvas/engine.rb +10 -1
- data/lib/beyond_canvas/version.rb +1 -1
- data/lib/generators/beyond_canvas/assets/assets_generator.rb +14 -0
- data/lib/generators/beyond_canvas/assets/templates/beyond_canvas.js +1 -0
- data/lib/generators/beyond_canvas/assets/templates/beyond_canvas.scss +1 -0
- data/lib/generators/beyond_canvas/{install_generator.rb → beyond_api/beyond_api_generator.rb} +1 -7
- data/lib/generators/beyond_canvas/{custom_styles_generator.rb → custom_styles/custom_styles_generator.rb} +2 -2
- data/lib/generators/{templates → beyond_canvas/custom_styles/templates}/beyond_canvas_custom_styles.sass +0 -0
- data/lib/generators/beyond_canvas/install/install_generator.rb +35 -0
- data/lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb +40 -0
- data/lib/generators/beyond_canvas/webpacker/plugins/jquery.js +7 -0
- data/lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.js +3 -0
- data/lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.scss +1 -0
- data/lib/generators/beyond_canvas/webpacker/webpacker_generator.rb +26 -0
- metadata +86 -70
- data/app/assets/javascripts/beyond_canvas.js +0 -3
- data/app/assets/javascripts/beyond_canvas/inputs.js +0 -28
- data/app/assets/stylesheets/beyond_canvas.sass +0 -25
- data/app/assets/stylesheets/beyond_canvas/components/_actions.sass +0 -5
- data/app/assets/stylesheets/beyond_canvas/components/_buttons.sass +0 -86
- data/app/assets/stylesheets/beyond_canvas/components/_cards.sass +0 -26
- data/app/assets/stylesheets/beyond_canvas/components/_comments.sass +0 -5
- data/app/assets/stylesheets/beyond_canvas/components/_flash.sass +0 -51
- data/app/assets/stylesheets/beyond_canvas/components/_forms.sass +0 -32
- data/app/assets/stylesheets/beyond_canvas/components/_inputs.sass +0 -79
- data/app/assets/stylesheets/beyond_canvas/components/_layouts.sass +0 -5
- data/app/assets/stylesheets/beyond_canvas/components/_links.sass +0 -13
- data/app/assets/stylesheets/beyond_canvas/components/_main.sass +0 -28
- data/app/assets/stylesheets/beyond_canvas/components/_margins.sass +0 -7
- data/app/assets/stylesheets/beyond_canvas/components/_markdown.sass +0 -60
- data/app/assets/stylesheets/beyond_canvas/components/_notices.sass +0 -41
- data/app/assets/stylesheets/beyond_canvas/components/_relative.sass +0 -2
- data/app/assets/stylesheets/beyond_canvas/components/_spinner.sass +0 -38
- data/app/assets/stylesheets/beyond_canvas/components/_tables.sass +0 -25
- data/app/assets/stylesheets/beyond_canvas/components/_texts.sass +0 -6
- data/app/assets/stylesheets/beyond_canvas/mailer.sass +0 -5
- data/app/assets/stylesheets/beyond_canvas/settings/_typography.sass +0 -53
- data/app/assets/stylesheets/beyond_canvas/settings/_variables.sass +0 -145
- data/app/assets/stylesheets/beyond_canvas/utilities/_mixins.sass +0 -19
- data/app/views/beyond_canvas/custom/_public_head.html.slim +0 -0
- data/app/views/beyond_canvas/locales/_edit.html.slim +0 -6
- data/app/views/beyond_canvas/shared/_flash.html.slim +0 -6
- data/app/views/beyond_canvas/shared/_head.html.slim +0 -20
- data/app/views/beyond_canvas/shared/_logo.html.slim +0 -2
- data/app/views/layouts/beyond_canvas/public.html.slim +0 -12
- data/config/initializers/beyond_canvas/assets.rb +0 -5
- data/lib/generators/templates/beyond_canvas.rb +0 -20
@@ -0,0 +1 @@
|
|
1
|
+
@import "~@epages/beyond_canvas/src/scss/base";
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module BeyondCanvas
|
4
|
+
module Generators
|
5
|
+
class WebpackerGenerator < Rails::Generators::Base # :nodoc:
|
6
|
+
source_root File.expand_path('templates', __dir__)
|
7
|
+
|
8
|
+
def install_assets
|
9
|
+
template 'beyond_canvas.js', 'app/javascript/packs/beyond_canvas.js'
|
10
|
+
template 'beyond_canvas.scss', 'app/javascript/stylesheets/beyond_canvas.scss'
|
11
|
+
|
12
|
+
copy_file "#{__dir__}/plugins/jquery.js", Rails.root.join('config/webpack/plugins/jquery.js').to_s
|
13
|
+
|
14
|
+
insert_into_file Rails.root.join('config/webpack/environment.js').to_s,
|
15
|
+
"const jquery = require('./plugins/jquery')\n",
|
16
|
+
after: %r{require\(('|")@rails/webpacker\1\);?\n}
|
17
|
+
|
18
|
+
insert_into_file Rails.root.join('config/webpack/environment.js').to_s,
|
19
|
+
"environment.plugins.prepend('jquery', jquery)\n",
|
20
|
+
before: 'module.exports'
|
21
|
+
|
22
|
+
run 'yarn add @epages/beyond_canvas'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beyond_canvas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unai Abrisketa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: beyond_api
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.8'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bourbon
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '7.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '7.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: colorize
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,81 +81,81 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.5'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: rails
|
84
|
+
name: jquery-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
90
|
-
- - ">="
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: 6.0.2.1
|
89
|
+
version: '4.4'
|
93
90
|
type: :runtime
|
94
91
|
prerelease: false
|
95
92
|
version_requirements: !ruby/object:Gem::Requirement
|
96
93
|
requirements:
|
97
94
|
- - "~>"
|
98
95
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 6.0.2.1
|
96
|
+
version: '4.4'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
98
|
+
name: premailer-rails
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
106
100
|
requirements:
|
107
101
|
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
103
|
+
version: '1.11'
|
110
104
|
type: :runtime
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
108
|
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
110
|
+
version: '1.11'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
112
|
+
name: sassc-rails
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
120
114
|
requirements:
|
121
115
|
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
117
|
+
version: '2.1'
|
124
118
|
type: :runtime
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
122
|
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
124
|
+
version: '2.1'
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
126
|
+
name: sprockets
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
134
128
|
requirements:
|
135
|
-
- - "
|
129
|
+
- - ">="
|
136
130
|
- !ruby/object:Gem::Version
|
137
|
-
version: '
|
131
|
+
version: '3.0'
|
132
|
+
- - "<"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '4.1'
|
138
135
|
type: :runtime
|
139
136
|
prerelease: false
|
140
137
|
version_requirements: !ruby/object:Gem::Requirement
|
141
138
|
requirements:
|
142
|
-
- - "
|
139
|
+
- - ">="
|
143
140
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
141
|
+
version: '3.0'
|
142
|
+
- - "<"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '4.1'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
|
-
name: rubocop
|
146
|
+
name: rubocop-rails
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
151
|
+
version: '2.5'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: '2.5'
|
159
159
|
description: |2
|
160
160
|
Beyond Canvas is an open-source framework that provides CSS styles for apps
|
161
161
|
designed and developed for the online shop software Beyond
|
@@ -169,33 +169,36 @@ files:
|
|
169
169
|
- README.md
|
170
170
|
- Rakefile
|
171
171
|
- app/assets/config/beyond_canvas_manifest.js
|
172
|
-
- app/assets/
|
173
|
-
- app/assets/
|
174
|
-
- app/assets/
|
175
|
-
- app/assets/
|
176
|
-
- app/assets/
|
177
|
-
- app/assets/
|
178
|
-
- app/assets/
|
179
|
-
- app/assets/stylesheets/beyond_canvas/
|
180
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
181
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
182
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
183
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
184
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
185
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
186
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
187
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
188
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
189
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
190
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
191
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
192
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
193
|
-
- app/assets/stylesheets/beyond_canvas/components/
|
194
|
-
- app/assets/stylesheets/beyond_canvas/
|
195
|
-
- app/assets/stylesheets/beyond_canvas/
|
196
|
-
- app/assets/stylesheets/beyond_canvas/
|
197
|
-
- app/assets/stylesheets/beyond_canvas/
|
198
|
-
- app/assets/stylesheets/beyond_canvas/
|
172
|
+
- app/assets/images/icons/file.svg
|
173
|
+
- app/assets/images/icons/flash_checkbox.svg
|
174
|
+
- app/assets/images/icons/flash_close.svg
|
175
|
+
- app/assets/images/icons/flash_error.svg
|
176
|
+
- app/assets/images/icons/flash_info.svg
|
177
|
+
- app/assets/images/icons/flash_warning.svg
|
178
|
+
- app/assets/javascripts/beyond_canvas/base.js
|
179
|
+
- app/assets/stylesheets/beyond_canvas/base.scss
|
180
|
+
- app/assets/stylesheets/beyond_canvas/components/_actions.scss
|
181
|
+
- app/assets/stylesheets/beyond_canvas/components/_buttons.scss
|
182
|
+
- app/assets/stylesheets/beyond_canvas/components/_cards.scss
|
183
|
+
- app/assets/stylesheets/beyond_canvas/components/_comments.scss
|
184
|
+
- app/assets/stylesheets/beyond_canvas/components/_flash.scss
|
185
|
+
- app/assets/stylesheets/beyond_canvas/components/_forms.scss
|
186
|
+
- app/assets/stylesheets/beyond_canvas/components/_inputs.scss
|
187
|
+
- app/assets/stylesheets/beyond_canvas/components/_layouts.scss
|
188
|
+
- app/assets/stylesheets/beyond_canvas/components/_links.scss
|
189
|
+
- app/assets/stylesheets/beyond_canvas/components/_main.scss
|
190
|
+
- app/assets/stylesheets/beyond_canvas/components/_margins.scss
|
191
|
+
- app/assets/stylesheets/beyond_canvas/components/_markdown.scss
|
192
|
+
- app/assets/stylesheets/beyond_canvas/components/_notices.scss
|
193
|
+
- app/assets/stylesheets/beyond_canvas/components/_relative.scss
|
194
|
+
- app/assets/stylesheets/beyond_canvas/components/_spinner.scss
|
195
|
+
- app/assets/stylesheets/beyond_canvas/components/_tables.scss
|
196
|
+
- app/assets/stylesheets/beyond_canvas/components/_texts.scss
|
197
|
+
- app/assets/stylesheets/beyond_canvas/mailer.scss
|
198
|
+
- app/assets/stylesheets/beyond_canvas/settings/_reset_css.scss
|
199
|
+
- app/assets/stylesheets/beyond_canvas/settings/_typography.scss
|
200
|
+
- app/assets/stylesheets/beyond_canvas/settings/_variables.scss
|
201
|
+
- app/assets/stylesheets/beyond_canvas/utilities/_mixins.scss
|
199
202
|
- app/controllers/beyond_canvas/application_controller.rb
|
200
203
|
- app/controllers/beyond_canvas/system_controller.rb
|
201
204
|
- app/controllers/concerns/beyond_canvas/locale_management.rb
|
@@ -204,28 +207,41 @@ files:
|
|
204
207
|
- app/form_builders/beyond_canvas/form_builder.rb
|
205
208
|
- app/helpers/beyond_canvas/application_helper.rb
|
206
209
|
- app/helpers/beyond_canvas/locale_switch_helper.rb
|
207
|
-
- app/
|
208
|
-
- app/
|
210
|
+
- app/javascript/beyond_canvas/base.js
|
211
|
+
- app/javascript/beyond_canvas/initializers/buttons.js
|
212
|
+
- app/javascript/beyond_canvas/initializers/flash.js
|
213
|
+
- app/javascript/beyond_canvas/initializers/inputs.js
|
214
|
+
- app/views/beyond_canvas/custom/_public_head.html.erb
|
215
|
+
- app/views/beyond_canvas/locales/_edit.html.erb
|
209
216
|
- app/views/beyond_canvas/mailer/_button.html.erb
|
210
217
|
- app/views/beyond_canvas/mailer/_footer.html.erb
|
211
218
|
- app/views/beyond_canvas/mailer/_header.html.erb
|
212
219
|
- app/views/beyond_canvas/mailer/_text.html.erb
|
213
|
-
- app/views/beyond_canvas/shared/_flash.html.
|
214
|
-
- app/views/beyond_canvas/shared/_head.html.
|
215
|
-
- app/views/beyond_canvas/shared/_logo.html.
|
220
|
+
- app/views/beyond_canvas/shared/_flash.html.erb
|
221
|
+
- app/views/beyond_canvas/shared/_head.html.erb
|
222
|
+
- app/views/beyond_canvas/shared/_logo.html.erb
|
216
223
|
- app/views/layouts/beyond_canvas/mailer.html.erb
|
217
|
-
- app/views/layouts/beyond_canvas/public.html.
|
218
|
-
- config/initializers/beyond_canvas/assets.rb
|
224
|
+
- app/views/layouts/beyond_canvas/public.html.erb
|
219
225
|
- config/initializers/beyond_canvas/filter_parameter_logging.rb
|
220
226
|
- config/initializers/beyond_canvas/form_utils.rb
|
221
227
|
- config/routes.rb
|
222
228
|
- lib/beyond_canvas.rb
|
229
|
+
- lib/beyond_canvas/asset_registration.rb
|
230
|
+
- lib/beyond_canvas/configuration.rb
|
223
231
|
- lib/beyond_canvas/engine.rb
|
224
232
|
- lib/beyond_canvas/version.rb
|
225
|
-
- lib/generators/beyond_canvas/
|
226
|
-
- lib/generators/beyond_canvas/
|
227
|
-
- lib/generators/templates/beyond_canvas.
|
228
|
-
- lib/generators/
|
233
|
+
- lib/generators/beyond_canvas/assets/assets_generator.rb
|
234
|
+
- lib/generators/beyond_canvas/assets/templates/beyond_canvas.js
|
235
|
+
- lib/generators/beyond_canvas/assets/templates/beyond_canvas.scss
|
236
|
+
- lib/generators/beyond_canvas/beyond_api/beyond_api_generator.rb
|
237
|
+
- lib/generators/beyond_canvas/custom_styles/custom_styles_generator.rb
|
238
|
+
- lib/generators/beyond_canvas/custom_styles/templates/beyond_canvas_custom_styles.sass
|
239
|
+
- lib/generators/beyond_canvas/install/install_generator.rb
|
240
|
+
- lib/generators/beyond_canvas/install/templates/beyond_canvas.rb.erb
|
241
|
+
- lib/generators/beyond_canvas/webpacker/plugins/jquery.js
|
242
|
+
- lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.js
|
243
|
+
- lib/generators/beyond_canvas/webpacker/templates/beyond_canvas.scss
|
244
|
+
- lib/generators/beyond_canvas/webpacker/webpacker_generator.rb
|
229
245
|
homepage: https://github.com/ePages-de/beyond_canvas
|
230
246
|
licenses:
|
231
247
|
- MIT
|
@@ -238,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
238
254
|
requirements:
|
239
255
|
- - ">="
|
240
256
|
- !ruby/object:Gem::Version
|
241
|
-
version: '
|
257
|
+
version: '2.5'
|
242
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
259
|
requirements:
|
244
260
|
- - ">"
|
@@ -1,28 +0,0 @@
|
|
1
|
-
(function($) {
|
2
|
-
$(document).on('ready page:load turbolinks:load', function() {
|
3
|
-
$('input[type="file"]').each(function() {
|
4
|
-
var $input = $(this),
|
5
|
-
$label = $(`.input__file__text.${$input.attr('id')}`),
|
6
|
-
labelVal = $label.html();
|
7
|
-
|
8
|
-
$input.on('change', function(e) {
|
9
|
-
var fileName = '';
|
10
|
-
|
11
|
-
if (this.files && this.files.length > 1)
|
12
|
-
fileName = (this.getAttribute('data-multiple-caption') || '').replace('{count}', this.files.length);
|
13
|
-
else if (e.target.value)
|
14
|
-
fileName = e.target.value.split('\\').pop();
|
15
|
-
|
16
|
-
if (fileName)
|
17
|
-
$label.html(`<i class="far fa-file input__file__icon"></i>${fileName}`);
|
18
|
-
else
|
19
|
-
$label.html(labelVal);
|
20
|
-
});
|
21
|
-
|
22
|
-
// Firefox bug fix
|
23
|
-
$input
|
24
|
-
.on('focus', function() { $input.addClass('has-focus'); })
|
25
|
-
.on('blur', function() { $input.removeClass('has-focus'); });
|
26
|
-
});
|
27
|
-
});
|
28
|
-
})(jQuery);
|
@@ -1,25 +0,0 @@
|
|
1
|
-
@import 'bourbon'
|
2
|
-
|
3
|
-
@import 'beyond_canvas/settings/variables'
|
4
|
-
@import 'beyond_canvas/settings/reset_css'
|
5
|
-
@import 'beyond_canvas/settings/typography'
|
6
|
-
|
7
|
-
@import 'beyond_canvas/utilities/mixins'
|
8
|
-
|
9
|
-
@import 'beyond_canvas/components/actions'
|
10
|
-
@import 'beyond_canvas/components/buttons'
|
11
|
-
@import 'beyond_canvas/components/cards'
|
12
|
-
@import 'beyond_canvas/components/comments'
|
13
|
-
@import 'beyond_canvas/components/flash'
|
14
|
-
@import 'beyond_canvas/components/forms'
|
15
|
-
@import 'beyond_canvas/components/inputs'
|
16
|
-
@import 'beyond_canvas/components/layouts'
|
17
|
-
@import 'beyond_canvas/components/links'
|
18
|
-
@import 'beyond_canvas/components/main'
|
19
|
-
@import 'beyond_canvas/components/margins'
|
20
|
-
@import 'beyond_canvas/components/notices'
|
21
|
-
@import 'beyond_canvas/components/relative'
|
22
|
-
@import 'beyond_canvas/components/tables'
|
23
|
-
@import 'beyond_canvas/components/spinner'
|
24
|
-
@import 'beyond_canvas/components/texts'
|
25
|
-
@import 'beyond_canvas/components/markdown'
|
@@ -1,86 +0,0 @@
|
|
1
|
-
%button
|
2
|
-
+padding($button-padding)
|
3
|
-
@if $button-box-shadow != true
|
4
|
-
padding-top: 7px
|
5
|
-
align-items: center
|
6
|
-
border-radius: $button-border-radius
|
7
|
-
border-width: 1px
|
8
|
-
border-style: solid
|
9
|
-
cursor: pointer
|
10
|
-
display: flex
|
11
|
-
font-weight: $button-font-weight
|
12
|
-
justify-content: flex-end
|
13
|
-
line-height: 1
|
14
|
-
outline: none
|
15
|
-
transition: $main-transition
|
16
|
-
|
17
|
-
@mixin button-solid($background, $color)
|
18
|
-
+background-color-darken($background, 10%)
|
19
|
-
color: $color
|
20
|
-
|
21
|
-
.spinner
|
22
|
-
display: none
|
23
|
-
|
24
|
-
> div
|
25
|
-
background-color: $color
|
26
|
-
|
27
|
-
&:hover
|
28
|
-
border-color: darken($background, 10%)
|
29
|
-
|
30
|
-
@mixin button-transparent($background)
|
31
|
-
background-color: transparent
|
32
|
-
border-color: $background
|
33
|
-
color: $background
|
34
|
-
|
35
|
-
.spinner
|
36
|
-
display: none
|
37
|
-
|
38
|
-
> div
|
39
|
-
background-color: $background
|
40
|
-
|
41
|
-
&:hover
|
42
|
-
background-color: lighten($background, 40%)
|
43
|
-
|
44
|
-
@mixin button-border($background)
|
45
|
-
border-color: $background
|
46
|
-
|
47
|
-
@if $button-box-shadow == true
|
48
|
-
border-bottom-width: 2px
|
49
|
-
border-bottom-color: darken($background, 10%)
|
50
|
-
|
51
|
-
|
52
|
-
.button
|
53
|
-
|
54
|
-
&__solid
|
55
|
-
|
56
|
-
&--primary
|
57
|
-
@extend %button
|
58
|
-
+button-solid($button-primary-background, $button-primary-color)
|
59
|
-
+button-border($button-primary-background)
|
60
|
-
|
61
|
-
&--secondary
|
62
|
-
@extend %button
|
63
|
-
+button-solid($button-secondary-background, $button-secondary-color)
|
64
|
-
+button-border($button-secondary-background)
|
65
|
-
|
66
|
-
&--danger
|
67
|
-
@extend %button
|
68
|
-
+button-solid($button-danger-background, $button-danger-color)
|
69
|
-
+button-border($button-danger-background)
|
70
|
-
|
71
|
-
&__transparent
|
72
|
-
|
73
|
-
&--primary
|
74
|
-
@extend %button
|
75
|
-
+button-transparent($button-primary-background)
|
76
|
-
+button-border($button-primary-background)
|
77
|
-
|
78
|
-
&--secondary
|
79
|
-
@extend %button
|
80
|
-
+button-transparent($button-secondary-background)
|
81
|
-
+button-border($button-secondary-background)
|
82
|
-
|
83
|
-
&--danger
|
84
|
-
@extend %button
|
85
|
-
+button-transparent($button-danger-background)
|
86
|
-
+button-border($button-danger-background)
|