workarea-image_decoration 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/Gemfile +17 -0
  4. data/LICENSE +52 -0
  5. data/README.md +42 -0
  6. data/Rakefile +56 -0
  7. data/app/assets/javascripts/workarea/admin/image_decoration/.keep +0 -0
  8. data/app/assets/javascripts/workarea/storefront/image_decoration/.keep +0 -0
  9. data/app/assets/javascripts/workarea/storefront/image_decoration/modules/custom_sizing.js +37 -0
  10. data/app/assets/javascripts/workarea/storefront/image_decoration/modules/optional_feature.js +33 -0
  11. data/app/assets/javascripts/workarea/storefront/image_decoration/modules/pattern_repeat.js +45 -0
  12. data/app/assets/javascripts/workarea/storefront/products/modules/create_your_own.js +25 -0
  13. data/app/assets/stylesheets/workarea/admin/image_decoration/.keep +0 -0
  14. data/app/assets/stylesheets/workarea/storefront/image_decoration/.keep +0 -0
  15. data/app/assets/stylesheets/workarea/storefront/image_decoration/components/custom_sizing.scss +62 -0
  16. data/app/assets/stylesheets/workarea/storefront/image_decoration/components/optional_feature.scss +15 -0
  17. data/app/assets/stylesheets/workarea/storefront/image_decoration/components/pattern_repeat.scss +273 -0
  18. data/app/assets/stylesheets/workarea/storefront/products/components/create_your_own.scss +38 -0
  19. data/app/controllers/.keep +0 -0
  20. data/app/controllers/workarea/storefront/products_controller.decorator +33 -0
  21. data/app/helpers/.keep +0 -0
  22. data/app/mailers/.keep +0 -0
  23. data/app/models/.keep +0 -0
  24. data/app/models/workarea/catalog/product_image.decorator +15 -0
  25. data/app/view_models/workarea/storefront/product_templates/image_decoration_view_model.rb +16 -0
  26. data/app/views/.keep +0 -0
  27. data/app/views/workarea/storefront/products/create_your_own.html.haml +97 -0
  28. data/app/views/workarea/storefront/products/shared/_custom_sizing.html.haml +56 -0
  29. data/app/views/workarea/storefront/products/shared/_material.html.haml +37 -0
  30. data/app/views/workarea/storefront/products/shared/_optional_feature.html.haml +37 -0
  31. data/app/views/workarea/storefront/products/shared/_pattern_repeat.html.haml +44 -0
  32. data/app/views/workarea/storefront/products/templates/_image_decoration.html.haml +112 -0
  33. data/bin/rails +25 -0
  34. data/config/initializers/append_points.rb +64 -0
  35. data/config/initializers/dragonfly.rb +31 -0
  36. data/config/initializers/workarea.rb +4 -0
  37. data/config/routes.rb +6 -0
  38. data/lib/workarea/image_decoration.rb +8 -0
  39. data/lib/workarea/image_decoration/engine.rb +10 -0
  40. data/lib/workarea/image_decoration/version.rb +5 -0
  41. data/test/dummy/.ruby-version +1 -0
  42. data/test/dummy/Rakefile +6 -0
  43. data/test/dummy/app/assets/config/manifest.js +3 -0
  44. data/test/dummy/app/assets/images/.keep +0 -0
  45. data/test/dummy/app/assets/javascripts/application.js +14 -0
  46. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  47. data/test/dummy/app/controllers/application_controller.rb +2 -0
  48. data/test/dummy/app/controllers/concerns/.keep +0 -0
  49. data/test/dummy/app/helpers/application_helper.rb +2 -0
  50. data/test/dummy/app/jobs/application_job.rb +2 -0
  51. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  52. data/test/dummy/app/models/concerns/.keep +0 -0
  53. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  54. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  55. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  56. data/test/dummy/bin/bundle +3 -0
  57. data/test/dummy/bin/rails +4 -0
  58. data/test/dummy/bin/rake +4 -0
  59. data/test/dummy/bin/setup +25 -0
  60. data/test/dummy/bin/update +25 -0
  61. data/test/dummy/config.ru +5 -0
  62. data/test/dummy/config/application.rb +33 -0
  63. data/test/dummy/config/boot.rb +5 -0
  64. data/test/dummy/config/environment.rb +5 -0
  65. data/test/dummy/config/environments/development.rb +52 -0
  66. data/test/dummy/config/environments/production.rb +83 -0
  67. data/test/dummy/config/environments/test.rb +45 -0
  68. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  69. data/test/dummy/config/initializers/assets.rb +12 -0
  70. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  71. data/test/dummy/config/initializers/content_security_policy.rb +25 -0
  72. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  73. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  74. data/test/dummy/config/initializers/inflections.rb +16 -0
  75. data/test/dummy/config/initializers/mime_types.rb +4 -0
  76. data/test/dummy/config/initializers/workarea.rb +5 -0
  77. data/test/dummy/config/initializers/wrap_parameters.rb +9 -0
  78. data/test/dummy/config/locales/en.yml +33 -0
  79. data/test/dummy/config/puma.rb +37 -0
  80. data/test/dummy/config/routes.rb +5 -0
  81. data/test/dummy/config/spring.rb +6 -0
  82. data/test/dummy/db/seeds.rb +2 -0
  83. data/test/dummy/lib/assets/.keep +0 -0
  84. data/test/dummy/log/.keep +0 -0
  85. data/test/integration/workarea/storefront/products_integration_test.rb +19 -0
  86. data/test/models/workarea/catalog/product_image_test.rb +46 -0
  87. data/test/system/workarea/storefront/create_your_own_system_test.rb +18 -0
  88. data/test/system/workarea/storefront/optional_feature_system_test.rb +43 -0
  89. data/test/teaspoon_env.rb +6 -0
  90. data/test/test_helper.rb +10 -0
  91. data/workarea-image_decoration.gemspec +20 -0
  92. metadata +149 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4d87c8a5f421ebc213517377fbb357fa03c6a3259ccc35896152b7c75353989e
4
+ data.tar.gz: 77bad5f188518eb142e7415bd8b29d6b8e49fa0616bfb2f600114f5751582752
5
+ SHA512:
6
+ metadata.gz: e4ea779eac90c4dea02704c6a4cecd8022def4b0f29351c215feb5aca016c9b3f0195ef71326aa8b27386c5172e27eca09c26d87db89c98532d95db1c3dd367a
7
+ data.tar.gz: bdd87aa8d6fe856b4b1ee01d6f97f60a710e49466f27582d837e9d4206159958da08b474e71217b326900d1ce1c56e2081f387b987182bd5be4c14ff0e67445e
@@ -0,0 +1,21 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/log/*.log
5
+ test/dummy/tmp/
6
+ .DS_Store
7
+ .byebug_history
8
+ .bundle/
9
+ .sass-cache/
10
+ Gemfile.lock
11
+ pkg/
12
+ test/dummy/tmp/
13
+ test/dummy/public/
14
+ log/*.log
15
+ test/dummy/log/*.log
16
+ test/dummy/db/*.sqlite3
17
+ test/dummy/db/*.sqlite3-journal
18
+ node_modules
19
+ yarn.lock
20
+ yarn-error.log
21
+ package-lock.json
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ # Declare your gem's dependencies in image_decoration.gemspec.
5
+ # Bundler will treat runtime dependencies like base dependencies, and
6
+ # development dependencies will be added by default to the :development group.
7
+ gemspec
8
+
9
+ # Declare any dependencies that are still in development here instead of in
10
+ # your gemspec. These might include edge Rails or gems from your path or
11
+ # Git. Remember to move these dependencies to your gemspec before releasing
12
+ # your gem to rubygems.org.
13
+
14
+ # To use a debugger
15
+ # gem 'byebug', group: [:development, :test]
16
+
17
+ gem 'workarea', github: 'workarea-commerce/workarea'
data/LICENSE ADDED
@@ -0,0 +1,52 @@
1
+ WebLinc
2
+ Business Source License
3
+
4
+ Licensor: WebLinc Corporation, 22 S. 3rd Street, 2nd Floor, Philadelphia PA 19106
5
+
6
+ Licensed Work: Workarea Commerce Platform
7
+ The Licensed Work is (c) 2019 WebLinc Corporation
8
+
9
+ Additional Use Grant:
10
+ You may make production use of the Licensed Work without an additional license agreement with WebLinc so long as you do not use the Licensed Work for a Commerce Service.
11
+
12
+ A "Commerce Service" is a commercial offering that allows third parties (other than your employees and contractors) to access the functionality of the Licensed Work by creating or managing commerce functionality, the products, taxonomy, assets and/or content of which are controlled by such third parties.
13
+
14
+ For information about obtaining an additional license agreement with WebLinc, contact licensing@workarea.com.
15
+
16
+ Change Date: 2019-08-20
17
+
18
+ Change License: Version 2.0 or later of the GNU General Public License as published by the Free Software Foundation
19
+
20
+ Terms
21
+
22
+ The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
23
+
24
+ Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
25
+
26
+ If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
27
+
28
+ All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
29
+
30
+ You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
31
+
32
+ Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
33
+
34
+ This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License). TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE. MariaDB hereby grants you permission to use this License’s text to license your works and to refer to it using the trademark "Business Source License" as long as you comply with the Covenants of Licensor below.
35
+
36
+ Covenants of Licensor
37
+ In consideration of the right to use this License’s text and the "Business Source License" name and trademark, Licensor covenants to MariaDB, and to all other recipients of the licensed work to be provided by Licensor:
38
+
39
+ To specify as the Change License the GPL Version 2.0 or any later version, or a license that is compatible with GPL Version 2.0 or a later version, where "compatible" means that software provided under the Change License can be included in a program with software provided under GPL Version 2.0 or a later version. Licensor may specify additional Change Licenses without limitation.
40
+
41
+ To either: (a) specify an additional grant of rights to use that does not impose any additional restriction on the right granted in this License, as the Additional Use Grant; or (b) insert the text "None."
42
+
43
+ To specify a Change Date.
44
+
45
+ Not to modify this License in any other way.
46
+
47
+ Notice
48
+ The Business Source License (this document, or the "License") is not an Open Source license. However, the Licensed Work will eventually be made available under an Open Source License, as stated in this License.
49
+
50
+ For more information on the use of the Business Source License generally, please visit the Adopting and Developing Business Source License FAQ.
51
+
52
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. "Business Source License" is a trademark of MariaDB Corporation Ab.
@@ -0,0 +1,42 @@
1
+ # Workarea::Image::Manipulation
2
+ ### Following features will be available.
3
+
4
+ Size
5
+ - Small, Medium Large
6
+ - Custom size dimensions
7
+ - Image adjusts to size selected or entered
8
+ Patterns
9
+ - Similar to color, a repeatable pattern to be printed at a specific scale/size (example:
10
+ Material
11
+ - materials to select from
12
+ - Material selection alters price p/sq ft
13
+ Options
14
+ - Black/White
15
+ - Top Coat
16
+ - Flip Image
17
+
18
+ ## Usage
19
+ How to use my plugin.
20
+
21
+ ## Installation
22
+ Add this line to your application's Gemfile:
23
+
24
+ ```ruby
25
+ gem 'workarea-image_decoration'
26
+ ```
27
+
28
+ And then execute:
29
+ ```bash
30
+ $ bundle
31
+ ```
32
+
33
+ Or install it yourself as:
34
+ ```bash
35
+ $ gem install workarea-image_decoration
36
+ ```
37
+
38
+ ## Contributing
39
+ Contribution directions go here.
40
+
41
+ ## License
42
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,56 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+ RDoc::Task.new(:rdoc) do |rdoc|
9
+ rdoc.rdoc_dir = 'rdoc'
10
+ rdoc.title = 'Image Decoration'
11
+ rdoc.options << '--line-numbers'
12
+ rdoc.rdoc_files.include('README.md')
13
+ rdoc.rdoc_files.include('lib/**/*.rb')
14
+ end
15
+
16
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
17
+ load 'rails/tasks/engine.rake'
18
+ load 'rails/tasks/statistics.rake'
19
+ load 'workarea/changelog.rake'
20
+
21
+ require 'rake/testtask'
22
+ Rake::TestTask.new(:test) do |t|
23
+ t.libs << 'lib'
24
+ t.libs << 'test'
25
+ t.pattern = 'test/**/*_test.rb'
26
+ t.verbose = false
27
+ end
28
+ task default: :test
29
+
30
+ $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
31
+ require 'workarea/image_decoration/version'
32
+
33
+ desc "Release version #{Workarea::ImageDecoration::VERSION} of the gem"
34
+ task :release do
35
+ Rake::Task['workarea:changelog'].execute
36
+ system 'git add CHANGELOG.md'
37
+ system 'git commit -m "Update CHANGELOG"'
38
+
39
+ system "git tag -a v#{Workarea::ImageDecoration::VERSION} -m 'Tagging #{Workarea::ImageDecoration::VERSION}'"
40
+ system 'git push origin HEAD --follow-tags'
41
+
42
+ system "gem build workarea-image_decoration.gemspec"
43
+ system "gem push workarea-image_decoration-#{Workarea::ImageDecoration::VERSION}.gem"
44
+ system "rm workarea-image_decoration-#{Workarea::ImageDecoration::VERSION}.gem"
45
+ end
46
+
47
+ desc 'Run the JavaScript tests'
48
+ ENV['TEASPOON_RAILS_ENV'] = File.expand_path('../test/dummy/config/environment', __FILE__)
49
+ task teaspoon: 'app:teaspoon'
50
+
51
+ desc 'Start a server at http://localhost:3000/teaspoon for JavaScript tests'
52
+ task :teaspoon_server do
53
+ Dir.chdir("test/dummy")
54
+ teaspoon_env = File.expand_path('../test/teaspoon_env.rb', __FILE__)
55
+ system "RAILS_ENV=test TEASPOON_ENV=#{teaspoon_env} rails s"
56
+ end
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @namespace WORKAREA.customSizing
3
+ */
4
+
5
+ WORKAREA.registerModule('customSizing', (function () {
6
+ 'use strict';
7
+
8
+ var customSize = function (event) {
9
+ var target = $(this).data("target")
10
+ // $('.item.has-overlayed-item').add(target).removeClass("has-overlayed-item")
11
+ const image = document.getElementsByClassName('scalable_main_image');
12
+ console.log(image);
13
+ const cropper = new Cropper(image, {
14
+ aspectRatio: 16 / 9,
15
+ crop(event) {
16
+ console.log(event.detail.x);
17
+ console.log(event.detail.y);
18
+ console.log(event.detail.width);
19
+ console.log(event.detail.height);
20
+ console.log(event.detail.rotate);
21
+ console.log(event.detail.scaleX);
22
+ console.log(event.detail.scaleY);
23
+ },
24
+ });
25
+
26
+ },
27
+
28
+ init = function ($scope) {
29
+
30
+ $('input[value="custom"]', $scope).on('click', customSize);
31
+
32
+ };
33
+
34
+ return {
35
+ init: init
36
+ };
37
+ }()));
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @namespace WORKAREA.optionalFeature
3
+ */
4
+
5
+ WORKAREA.registerModule('optionalFeature', (function () {
6
+ 'use strict';
7
+
8
+ var onCheckboxClick = function (event) {
9
+ var target = $("[data-grayscale-target]")
10
+ target.toggleClass('img-filter-grayscale')
11
+ },
12
+
13
+ flipImage = function (event) {
14
+ var target = $("[data-flipimage-target]")
15
+ target.toggleClass('img-transform-mirror')
16
+ },
17
+
18
+ personalize = function (event) {
19
+ $('#add-text').toggle();
20
+ },
21
+
22
+
23
+ init = function ($scope) {
24
+ $('input[type="checkbox"][data-grayscale]', $scope).on('click', onCheckboxClick);
25
+ $('input[type="checkbox"][data-flipimage]', $scope).on('click', flipImage);
26
+ $('#text', $scope).on('click', personalize);
27
+ };
28
+
29
+ return {
30
+ init: init
31
+ };
32
+
33
+ }()));
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @namespace WORKAREA.patternRepeat
3
+ */
4
+
5
+ WORKAREA.registerModule('patternRepeat', (function () {
6
+ 'use strict';
7
+
8
+ var onRadioClick = function (event) {
9
+
10
+ var others = $("[name='" + this.name + "']").map(function () {
11
+ return this.value
12
+ }).get().join(" ")
13
+ $('.scalable_main_image, .thumb-set-bg').removeClass(others).addClass(this.value)
14
+ },
15
+
16
+ displayLiving = function (event) {
17
+ var target = $(this).data("target")
18
+ $('.product-details__primary-image.overlayed-item').add(target).removeClass("overlayed-image-3 detail-view first-preview overlayed-image-4").addClass('overlayed-image-3')
19
+ },
20
+ displayDining = function (event) {
21
+ var target = $(this).data("target")
22
+ $('.product-details__primary-image.overlayed-item ').add(target).removeClass("overlayed-image-3 detail-view first-preview overlayed-image-4").addClass('overlayed-image-4')
23
+ },
24
+ displayDetail = function (event) {
25
+ var target = $(this).data("target")
26
+ $('.product-details__primary-image.overlayed-item').add(target).removeClass("overlayed-image-3 first-preview overlayed-image-4").addClass('detail-view')
27
+ },
28
+ firstPreview = function (event) {
29
+ var target = $(this).data("target")
30
+ $('.product-details__primary-image.overlayed-item').add(target).removeClass("overlayed-image-3 detail-view overlayed-image-4").addClass('first-preview')
31
+ },
32
+
33
+ init = function ($scope) {
34
+
35
+ $('input[type="radio"]', $scope).on('click', onRadioClick);
36
+ $('.first-preview', $scope).on('click', firstPreview);
37
+ $('.overlayed-item-3', $scope).on('click', displayLiving);
38
+ $('.overlayed-item-4', $scope).on('click', displayDining);
39
+ $('.detail-thumb', $scope).on('click', displayDetail);
40
+ };
41
+
42
+ return {
43
+ init: init
44
+ };
45
+ }()));
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @namespace WORKAREA.createYourOwn
3
+ */
4
+
5
+ WORKAREA.registerModule('createYourOwn', (function () {
6
+ 'use strict';
7
+
8
+ var description = function (event) {
9
+ $('#own-create').toggle();
10
+ },
11
+
12
+ shipping = function (event) {
13
+ $('#own-ship').toggle();
14
+ },
15
+
16
+ init = function ($scope) {
17
+ $('#create', $scope).on('click', description);
18
+ $('#ship', $scope).on('click', shipping);
19
+ };
20
+
21
+ return {
22
+ init: init
23
+ };
24
+
25
+ }()));
@@ -0,0 +1,62 @@
1
+ // Styling for Custom sizing feature
2
+
3
+ .form-list {
4
+ margin: 0px;
5
+ }
6
+ .form-list .radio {
7
+ font-size: 1em;
8
+ cursor: pointer;
9
+ }
10
+ .custom-size-options li {
11
+ margin-bottom: 5px;
12
+ }
13
+
14
+ .custom-size-options .form-control {
15
+ display: inline-block;
16
+ vertical-align: middle;
17
+ }
18
+ .custom-size-options .size-input {
19
+ height: 2.2em;
20
+ width: 4em;
21
+ }
22
+ .form-control {
23
+ display: block;
24
+ width: 100%;
25
+ height: 34px;
26
+ padding: 6px 12px;
27
+ font-size: 14px;
28
+ line-height: 1.42857143;
29
+ color: #555;
30
+ background-color: #fff;
31
+ background-image: none;
32
+ border: 1px solid #ccc;
33
+ border-radius: 4px;
34
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
35
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
36
+ -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
37
+ -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
38
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
39
+ }
40
+ .custom-size-options label {
41
+ font-size: 14px;
42
+ color: #929292;
43
+ }
44
+ .custom-size-options ul {
45
+ padding: 0;
46
+ }
47
+ .custom-size-options li {
48
+ margin-bottom: 5px;
49
+ }
50
+ .custom-size-options li > div {
51
+ display: inline-block;
52
+ }
53
+
54
+ .form-list input[type='radio'] {
55
+
56
+ &:before {
57
+ box-shadow: 0 0 0 0px #ffa200 inset !important;
58
+ }
59
+ &:checked {
60
+ box-shadow: 0 0 0 8px #ffa200 inset;
61
+ }
62
+ }
@@ -0,0 +1,15 @@
1
+ .img-filter-grayscale {
2
+ filter: grayscale(100%);
3
+ }
4
+
5
+ .img-transform-mirror {
6
+ transform: scaleX(-1);
7
+ }
8
+
9
+ .personalize{
10
+ display: none;
11
+ }
12
+
13
+ input[type='radio'] {
14
+ left: 0em !important;
15
+ }
@@ -0,0 +1,273 @@
1
+ // Styling for pattern repeat image
2
+
3
+ .relative input[type='radio'] {
4
+ left: 0.9em !important;
5
+
6
+ &:before {
7
+ box-shadow: 0 0 0 0px #ffa200 inset !important;
8
+ }
9
+ &:checked {
10
+ box-shadow: 0 0 0 8px #ffa200 inset;
11
+ }
12
+ }
13
+
14
+ tr td input {
15
+ cursor: pointer;
16
+ }
17
+
18
+ .scalable-img {
19
+ width: 68px;
20
+ height: 68px;
21
+ }
22
+ .scalable_main_image {
23
+ width: 100%;
24
+ height: 550px;
25
+ transition: all, .3s;
26
+ }
27
+
28
+ // Pattern repeats
29
+
30
+ .scalable-img.hundred, .scalable_main_image.hundred, .thumb-set-bg.hundred {
31
+ border: 2px solid transparent;
32
+ padding: 0px;
33
+ background-size: 100%;
34
+ }
35
+ .scalable-img.seventyfive, .scalable_main_image.seventyfive, .thumb-set-bg.seventyfive {
36
+ border: 2px solid transparent;
37
+ padding: 0px;
38
+ background-size: 75%;
39
+ }
40
+ .scalable-img.fifty, .scalable_main_image.fifty, .thumb-set-bg.fifty {
41
+ border: 2px solid transparent;
42
+ padding: 0px;
43
+ background-size: 50%;
44
+ }
45
+ .scalable-img.twentyfive, .scalable_main_image.twentyfive, .thumb-set-bg.twentyfive {
46
+ border: 2px solid transparent;
47
+ padding: 0px;
48
+ background-size: 25%;
49
+ }
50
+ .no-repeat, .scalable_main_image.no-repeat, .thumb-set-bg.no-repeat {
51
+ border: 2px solid transparent;
52
+ padding: 0px;
53
+ background-size: 100%;
54
+ }
55
+ .thumb-zoom {
56
+ background-position: top left;
57
+ background-size: 140% !important;
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ right: 0;
62
+ bottom: 0;
63
+ width: 100%;
64
+ height: 100%;
65
+ }
66
+ .scalable-patterns.radio .no-repeat-pattern {
67
+ font-size: 11px;
68
+ letter-spacing: .5px;
69
+ line-height: 1.2;
70
+ left: 0px;
71
+ bottom: 19px;
72
+ width: 67px;
73
+ height: 68px;
74
+ color: white;
75
+ opacity: .8;
76
+ background-color: #6d6e71;
77
+ -webkit-box-pack: center;
78
+ -ms-flex-pack: center;
79
+ justify-content: center;
80
+ -webkit-box-align: center;
81
+ -ms-flex-align: center;
82
+ align-items: center;
83
+ display: -webkit-box;
84
+ display: -ms-flexbox;
85
+ display: flex;
86
+ z-index: 2;
87
+ text-align: -webkit-center;
88
+ }
89
+ .detailed-view {
90
+ font-size: 11px;
91
+ letter-spacing: .5px;
92
+ line-height: 1.2;
93
+ left: 0px;
94
+ top: 0px;
95
+ bottom: 0px;
96
+ width: 70px;
97
+ height: 71px;
98
+ color: white;
99
+ opacity: .8;
100
+ background-color: #6d6e71;
101
+ -webkit-box-pack: center;
102
+ -ms-flex-pack: center;
103
+ justify-content: center;
104
+ -webkit-box-align: center;
105
+ -ms-flex-align: center;
106
+ align-items: center;
107
+ display: -webkit-box;
108
+ display: -ms-flexbox;
109
+ display: flex;
110
+ z-index: 2;
111
+ text-align: -webkit-center;
112
+ }
113
+
114
+ .detail-view {
115
+ width: 750px;
116
+ background-size: 200%;
117
+ position: relative;
118
+ // background-repeat: no-repeat;
119
+ left: -1500px;
120
+ top: 0px;
121
+ z-index: 999;
122
+ opacity: 1;
123
+ }
124
+
125
+ .first-preview {
126
+ background-size: 200%;
127
+ }
128
+
129
+ .absolute {
130
+ position: absolute;
131
+ }
132
+ .relative {
133
+ position: relative;
134
+ }
135
+ .scalable-patterns.radio {
136
+ margin-bottom: 45px;
137
+ margin-top: 5px;
138
+ }
139
+
140
+ .radio {
141
+ font-size: 1em;
142
+ cursor: pointer;
143
+ position: relative;
144
+ display: block;
145
+ margin-top: 10px;
146
+ margin-bottom: 10px;
147
+ }
148
+
149
+ ul {
150
+ display: block;
151
+ list-style-type: disc;
152
+ margin-block-start: 1em;
153
+ margin-block-end: 1em;
154
+ margin-inline-start: 0px;
155
+ margin-inline-end: 0px;
156
+ padding-inline-start: 40px;
157
+ }
158
+ dd, dt {
159
+ line-height: 1.42857143;
160
+ }
161
+ dl {
162
+ display: block;
163
+ margin-block-start: 1em;
164
+ margin-block-end: 1em;
165
+ margin-inline-start: 0px;
166
+ margin-inline-end: 0px;
167
+ }
168
+ ul li{
169
+ display: inline;
170
+ }
171
+
172
+ .img-responsive{
173
+ width: 5em !important;
174
+ height: 5em !important;
175
+
176
+ }
177
+
178
+ .thumb-set-bg {
179
+ // background-size: 100%;
180
+ background-position: top left;
181
+ position: absolute;
182
+ top: 0;
183
+ left: 0;
184
+ right: 0;
185
+ bottom: 0;
186
+ width: 100%;
187
+ height: 100%;
188
+ -webkit-transition: all, .3s;
189
+ -o-transition: all, .3s;
190
+ transition: all, .3s;
191
+ }
192
+
193
+ .radio label {
194
+ min-height: 20px;
195
+ padding-left: 20px;
196
+ margin-bottom: 0;
197
+ font-weight: 400;
198
+ cursor: pointer;
199
+ }
200
+ .scalable-patterns.radio .pattern-name {
201
+ position: static;
202
+ right: 17px;
203
+ bottom: -25px;
204
+ padding-left: 14px;
205
+ }
206
+ .z-index-1 {
207
+ z-index: 1;
208
+ }
209
+ .overlay-item-ruler .ruler-overlay {
210
+ background-repeat: no-repeat;
211
+ background-size: cover;
212
+ background-image: url(https://www.muralsyourway.com/skin/frontend/smartwave/porto/images/YouRule.png);
213
+ position: absolute;
214
+ top: 0;
215
+ left: 0;
216
+ right: 0;
217
+ bottom: 0;
218
+ width: 100%;
219
+ height: 100%;
220
+ z-index: 1;
221
+ }
222
+
223
+ .has-overlayed-item {
224
+ position: relative;
225
+ height: 100%;
226
+ display: block;
227
+ }
228
+ .has-overlayed-item .overlayed-item {
229
+ position: absolute;
230
+ width: 100%;
231
+ height: 120%;
232
+ bottom: 0;
233
+ left: 0;
234
+ z-index: 1;
235
+ background-size: contain;
236
+ background-position: center bottom;
237
+ background-repeat: no-repeat;
238
+ }
239
+
240
+ .overlayed-image-3 {
241
+ background-image: url('https://www.muralsyourway.com/media/overlays/living_land.png');
242
+ transition: all, 1s;
243
+ }
244
+ .overlayed-image-4 {
245
+ background-image: url('https://www.muralsyourway.com/media/overlays/office_land.png');
246
+ transition: all, 1s;
247
+ }
248
+ .living-overlay {
249
+ margin-left: 4px;
250
+ }
251
+ .office_land-overlay {
252
+ margin-left: 4px;
253
+ }
254
+ .thumbnail {
255
+ margin-left: 4px;
256
+ margin-top: -3.3em;
257
+ }
258
+ td .item {
259
+ cursor: pointer;
260
+ }
261
+ .has-overlayed-item .zoomed {
262
+ background-repeat: no-repeat;
263
+ background-position: top left;
264
+ background-size: 141%;
265
+ position: absolute;
266
+ top: 0;
267
+ left: 0;
268
+ right: 0;
269
+ bottom: 0;
270
+ width: 100%;
271
+ height: 100%;
272
+ z-index: 1;
273
+ }