tiendapp_validator 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +46 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/lib/tiendapp_validator.rb +31 -0
  12. data/lib/tiendapp_validator/auxiliar_methods.rb +75 -0
  13. data/lib/tiendapp_validator/liquid_validators.rb +61 -0
  14. data/lib/tiendapp_validator/required_files.rb +30 -0
  15. data/lib/tiendapp_validator/schema_validators.rb +11 -0
  16. data/lib/tiendapp_validator/version.rb +3 -0
  17. data/public/store_templates/public/_blog_navigator.liquid +13 -0
  18. data/public/store_templates/public/_cart.liquid +4 -0
  19. data/public/store_templates/public/_cart_button_product.liquid +4 -0
  20. data/public/store_templates/public/_customizations.liquid +157 -0
  21. data/public/store_templates/public/_footer.liquid +77 -0
  22. data/public/store_templates/public/_header.liquid +61 -0
  23. data/public/store_templates/public/_login.liquid +26 -0
  24. data/public/store_templates/public/_navbar.liquid +139 -0
  25. data/public/store_templates/public/_navbar_submenu.liquid +11 -0
  26. data/public/store_templates/public/_product.liquid +20 -0
  27. data/public/store_templates/public/_products.liquid +30 -0
  28. data/public/store_templates/public/assets/css/bootstrap-submenu.min.css +8 -0
  29. data/public/store_templates/public/assets/css/bootstrap.min.css +6 -0
  30. data/public/store_templates/public/assets/css/bootstrap.min.css.map +1 -0
  31. data/public/store_templates/public/assets/css/progress-wizard.min.css +1 -0
  32. data/public/store_templates/public/assets/css/theme.css +1307 -0
  33. data/public/store_templates/public/assets/css/ui-notification.css +105 -0
  34. data/public/store_templates/public/assets/fonts/glyphicons-halflings-regular.eot +0 -0
  35. data/public/store_templates/public/assets/fonts/glyphicons-halflings-regular.svg +288 -0
  36. data/public/store_templates/public/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
  37. data/public/store_templates/public/assets/fonts/glyphicons-halflings-regular.woff +0 -0
  38. data/public/store_templates/public/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
  39. data/public/store_templates/public/assets/images/blog_header.jpg +0 -0
  40. data/public/store_templates/public/assets/images/email_header_logo.png +0 -0
  41. data/public/store_templates/public/assets/images/header_image_1.png +0 -0
  42. data/public/store_templates/public/assets/images/header_image_2.png +0 -0
  43. data/public/store_templates/public/assets/images/header_image_3.png +0 -0
  44. data/public/store_templates/public/assets/images/logo_navbar.png +0 -0
  45. data/public/store_templates/public/assets/js/bootstrap-submenu.min.js +7 -0
  46. data/public/store_templates/public/assets/js/bootstrap.min.js +7 -0
  47. data/public/store_templates/public/assets/js/navbar_responsive_navigation.js +28 -0
  48. data/public/store_templates/public/assets/js/npm.js +13 -0
  49. data/public/store_templates/public/assets/js/sessions.js +27 -0
  50. data/public/store_templates/public/blog.liquid +71 -0
  51. data/public/store_templates/public/checkout/address.liquid +33 -0
  52. data/public/store_templates/public/checkout/cart.liquid +108 -0
  53. data/public/store_templates/public/checkout/delivery.liquid +33 -0
  54. data/public/store_templates/public/checkout/payment.liquid +33 -0
  55. data/public/store_templates/public/config/customization_schema.json +662 -0
  56. data/public/store_templates/public/config/email_customization_schema.json +394 -0
  57. data/public/store_templates/public/home.liquid +18 -0
  58. data/public/store_templates/public/layout.liquid +28 -0
  59. data/public/store_templates/public/login/_footer.liquid +14 -0
  60. data/public/store_templates/public/login/_recover.liquid +14 -0
  61. data/public/store_templates/public/login/_sign_in.liquid +19 -0
  62. data/public/store_templates/public/login/_sign_up.liquid +30 -0
  63. data/public/store_templates/public/mailer/cancel_order.liquid +49 -0
  64. data/public/store_templates/public/mailer/confirm_order.liquid +55 -0
  65. data/public/store_templates/public/mailer/layout.liquid +831 -0
  66. data/public/store_templates/public/mailer/shipped_order.liquid +57 -0
  67. data/public/store_templates/public/order.liquid +26 -0
  68. data/public/store_templates/public/post.liquid +42 -0
  69. data/public/store_templates/public/product.liquid +106 -0
  70. data/public/store_templates/public/sidebar.liquid +2 -0
  71. data/public/store_templates/public/static_page.liquid +28 -0
  72. data/public/store_templates/public/utils/_fonts.liquid +9 -0
  73. data/public/store_templates/public/widgets/_breadcrumbs.liquid +32 -0
  74. data/public/store_templates/public/widgets/_carousel.liquid +37 -0
  75. data/public/store_templates/public/widgets/_cart.liquid +86 -0
  76. data/public/store_templates/public/widgets/_tiendapp_footer.liquid +10 -0
  77. data/tiendapp_validator-0.1.0.gem +0 -0
  78. data/tiendapp_validator-0.1.1.gem +0 -0
  79. data/tiendapp_validator-1.0.0.gem +0 -0
  80. data/tiendapp_validator.gemspec +34 -0
  81. metadata +185 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e0b30ee184af212d85efcad2243b15ca84225d87
4
+ data.tar.gz: 6256d3b469861af24a00af9b11c1573ea63f0821
5
+ SHA512:
6
+ metadata.gz: d826a2239f56722f13aa13ad6569dacf57735c2ac5105baa8fe5726e1fa146e4e457c403d113b9afb62626081996957a0958b16df9e368d513915397cc05ce58
7
+ data.tar.gz: 54f281e7ad71be5ca384892f8dbf407d21a2a0769cc3eb7f58b830ccabe84d751354d59f5163bac8b21ef68505d74fe9cd5d5a0a719a771d92fd92bb42499ce1
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in tiendapp_validator.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 nahif
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # TiendappValidator
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tiendapp_validator`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'tiendapp_validator'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install tiendapp_validator
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Test
28
+
29
+ Run tests:
30
+
31
+ $ bundle exec rake spec
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tiendapp_validator.
42
+
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tiendapp_validator"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,31 @@
1
+ require 'tiendapp_validator/version'
2
+ require 'tiendapp_validator/required_files'
3
+ require 'tiendapp_validator/auxiliar_methods'
4
+ require 'tiendapp_validator/liquid_validators'
5
+ require 'tiendapp_validator/schema_validators'
6
+ require 'find'
7
+
8
+ # TiendApp Validator
9
+ module TiendappValidator
10
+ VALIDATION_METHODS = [method(:validate_liquid_files),
11
+ method(:validate_partial_liquid_files),
12
+ method(:validate_folders_liquid_files),
13
+ method(:validate_include_liquid_files),
14
+ method(:validate_liquid_files_syntax),
15
+ method(:validate_customation_schema_file),
16
+ method(:validate_extensions)].freeze
17
+
18
+ def self.validate(path)
19
+ root_path(path)
20
+ VALIDATION_METHODS.each do |method|
21
+ res = method.call
22
+ next if res[:valid]
23
+ return res
24
+ end
25
+ response 'OK', 'All validation are OK', true
26
+ end
27
+
28
+ def self.print_response(res)
29
+ puts res[:status] + ' - ' + res[:message]
30
+ end
31
+ end
@@ -0,0 +1,75 @@
1
+ # TiendApp Validator - Auxiliar Methods
2
+ module TiendappValidator
3
+ def self.root_path(path = nil)
4
+ if path.nil?
5
+ @root_path ||= DEFAULT_PATH
6
+ else
7
+ @root_path = path
8
+ @liquid_files = nil
9
+ @customization_schemas = nil
10
+ end
11
+ end
12
+
13
+ def self.liquid_files
14
+ @liquid_files ||= get_files(root_path, 'liquid')
15
+ end
16
+
17
+ def self.customization_schemas
18
+ @customization_schemas ||= get_files(root_path + 'config/', 'json')
19
+ end
20
+
21
+ def self.get_files(path, extension)
22
+ file_paths = []
23
+ Find.find(path) do |p|
24
+ file_paths << p if p =~ /\.(?:#{extension})$/i
25
+ end
26
+ file_paths
27
+ end
28
+
29
+ def self.get_content(path)
30
+ file = File.open(path)
31
+ file.read
32
+ end
33
+
34
+ def self.get_includes(content)
35
+ expr = /\{\%\s+include\s+[",'](.*)[",']\s+\%\}/
36
+ content.scan(expr)
37
+ end
38
+
39
+ def self.get_format(file)
40
+ expr = /\.(\w*)$/
41
+ expr.match(file)[1]
42
+ end
43
+
44
+ def self.permit_extension?(file)
45
+ extension = get_format(file)
46
+ EXTENSIONS.include? extension
47
+ end
48
+
49
+ def self.validate_extensions
50
+ Find.find(root_path) do |p|
51
+ next unless p.include? '.'
52
+ next if permit_extension? p
53
+ puts p
54
+ puts get_format p
55
+ return response 'ERROR', 'not support extension: ' + p, false
56
+ end
57
+ response 'OK', 'all format support', true
58
+ end
59
+
60
+ def self.exist_liquid_file(str)
61
+ path = root_path
62
+ while str.include? '/'
63
+ substring = str.split('/')[0]
64
+ str = str.split('/')[1]
65
+ path = path + substring + '/'
66
+ end
67
+ path + '_' + str + '.liquid'
68
+ end
69
+
70
+ def self.response(status, message, valid)
71
+ { status: status,
72
+ message: message,
73
+ valid: valid }
74
+ end
75
+ end
@@ -0,0 +1,61 @@
1
+ require 'liquid'
2
+
3
+ # Liquid_validators - containe liquid validation methods
4
+ module TiendappValidator
5
+ # VL001 - Validar presencia de los archivos liquid
6
+ def self.validate_liquid_files
7
+ LIQUID_FILES.each do |liquid|
8
+ next if liquid_files.include? root_path + liquid
9
+ return response 'error', 'file not found: ' + liquid, false
10
+ end
11
+ response 'OK', 'found all liquid files.', true
12
+ end
13
+
14
+ # VL002 - Validar vistas parciales liquid
15
+ def self.validate_partial_liquid_files
16
+ file_paths = get_files root_path, 'liquid'
17
+ file_paths.each do |liquid|
18
+ liquid = liquid.split('/').last
19
+ next if LIQUID_FILES.include? liquid
20
+ next if liquid[0] == '_'
21
+ next if (LIQUID_FILES_CHECKOUT + LIQUID_FILES_MAILER).include? liquid
22
+ return response 'error', 'name invalid:' + liquid, false
23
+ end
24
+ response 'OK', 'partial liquid files are OK.', true
25
+ end
26
+
27
+ # VL003 - Validar si todas las llamadas a vistas parciales existen
28
+ def self.validate_folders_liquid_files
29
+ path = root_path
30
+ (LIQUID_FILES_CHECKOUT + LIQUID_FILES_MAILER).each do |liquid|
31
+ next if liquid_files.include? path + CHECKOUT_PATH + liquid
32
+ next if liquid_files.include? path + MAILER_PATH + liquid
33
+ return response 'error', 'file not found: ' + liquid, false
34
+ end
35
+ response 'OK', 'found checkout liquid files', true
36
+ end
37
+
38
+ # VL004 - Validar si todas las llamadas a vistas parciales existen
39
+ def self.validate_include_liquid_files
40
+ liquid_files.each do |liquid|
41
+ content = get_content(liquid)
42
+ includes = get_includes(content)
43
+ includes.each do |include|
44
+ unless exist_liquid_file(include[0])
45
+ return response 'error', include[0] + 'not found', false
46
+ end
47
+ end
48
+ end
49
+ response 'OK', 'all includes exists', true
50
+ end
51
+
52
+ # VL006 - Valida que los archivos tengan sintaxis correcta en Liquid
53
+ def self.validate_liquid_files_syntax
54
+ file_paths = get_files root_path, 'liquid'
55
+ file_paths.each do |liquid|
56
+ next if Liquid::Template.parse(get_content(liquid), error_mode: :strict)
57
+ return response 'error', 'syntax error: ' + liquid, false
58
+ end
59
+ response 'OK', 'liquid files have correct syntax', true
60
+ end
61
+ end
@@ -0,0 +1,30 @@
1
+ module TiendappValidator
2
+ # Nombre de los archivos necesarios de la aplicacion
3
+ LIQUID_FILES =
4
+ ['layout.liquid', 'home.liquid', 'product.liquid', 'blog.liquid',
5
+ 'static_page.liquid', 'post.liquid', 'order.liquid',
6
+ 'sidebar.liquid'].freeze
7
+
8
+ # Subcarpeta checkout
9
+ LIQUID_FILES_CHECKOUT =
10
+ ['address.liquid', 'cart.liquid', 'delivery.liquid', 'address.liquid',
11
+ 'payment.liquid'].freeze
12
+
13
+ # Subcarpeta mailer
14
+ LIQUID_FILES_MAILER =
15
+ ['cancel_order.liquid', 'confirm_order.liquid', 'layout.liquid',
16
+ 'shipped_order.liquid'].freeze
17
+
18
+ # Paths basicos de los archivos necesarios
19
+ DEFAULT_PATH = 'public/store_templates/public/'.freeze
20
+ CHECKOUT_PATH = 'checkout/'.freeze
21
+ MAILER_PATH = 'mailer/'.freeze
22
+
23
+ # Schema files
24
+ SCHEMA_FILES = ['customization_schema.json',
25
+ 'email_customization_schema.json'].freeze
26
+
27
+ # Format list
28
+ EXTENSIONS = ['liquid', 'css', 'json', 'js', 'map', 'eot', 'svg', 'ttf',
29
+ 'woff', 'woff2', 'jpg', 'png'].freeze
30
+ end
@@ -0,0 +1,11 @@
1
+ # TiendApp Validator - Methods to validate customization schema
2
+ module TiendappValidator
3
+ # VG001 - Validar syntaxis customization schema
4
+ def self.validate_customation_schema_file
5
+ SCHEMA_FILES.each do |schema|
6
+ next if customization_schemas.include? root_path + 'config/' + schema
7
+ response 'Error', 'Customization schema not found: ' + schema, false
8
+ end
9
+ response 'OK', 'found all customization schema files', true
10
+ end
11
+ end
@@ -0,0 +1,3 @@
1
+ module TiendappValidator
2
+ VERSION = '0.1.2'.freeze
3
+ end
@@ -0,0 +1,13 @@
1
+ <div id="blog-navigator">
2
+ <h4>
3
+ Publicaciones Recientes
4
+ </h4>
5
+ {% for post in recent_posts %}
6
+ <div class="recent-post">
7
+ <a href="/blog/{{post.id}}">
8
+ {{post.title_truncated}}
9
+ </a>
10
+ </div>
11
+ {% endfor %}
12
+ <hr>
13
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="btn btn-cart" ng-click="products.hasStock(product) && cart.addToCart(product.master.id, product.name, 1)" ng-disabled="!products.hasStock(product)" ng-cloak>
2
+ <span ng-class="{'glyphicon-shopping-cart': cart.isAddingElement(product.master.id) == false, 'glyphicon-refresh fa-spin':cart.isAddingElement(product.master.id) == true }" class="glyphicon"></span>
3
+ <span>{[product.price | currency : '$' : 0 | comma_to_dot]}</span>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="btn btn-cart" ng-click="products.hasStock(product) && cart.addToCart(product.master.id, product.name, 1)" ng-disabled="!products.hasStock(product)" ng-cloak>
2
+ <span ng-class="{'glyphicon-shopping-cart': cart.isAddingElement(product.master.id) == false, 'glyphicon-refresh fa-spin':cart.isAddingElement(product.master.id) == true }" class="glyphicon"></span>
3
+ <span>Agregar al Carro</span>
4
+ </div>
@@ -0,0 +1,157 @@
1
+ {% comment %}
2
+ Necessary for now to compile custom assets loaded from customize_schema.json.
3
+ {% endcomment %}
4
+ <style id="customization">
5
+ /*--------------*/
6
+ /*---General----*/
7
+ /*--------------*/
8
+ .btn.btn-cart, .btn.btn-success{
9
+ background-color: {{ "shopping_cart_add_color" | customizable : customization.shopping_cart_add_color, preview }};
10
+ color: {{ "shopping_cart_add_text_color" | customizable : customization.shopping_cart_add_text_color, preview }};
11
+ }
12
+ .btn.btn-cart:hover, .btn.btn-success:hover{
13
+ background-color: {{ "shopping_cart_add_color_hover" | customizable : customization.shopping_cart_add_color_hover, preview }};
14
+ color: {{ "shopping_cart_add_text_color_hover" | customizable : customization.shopping_cart_add_text_color_hover, preview }};
15
+ }
16
+ body {
17
+ background-color: {{ "background_color" | customizable : customization.background_color, preview }};
18
+ font-family: {{ "main_font" | customizable_font : customization.main_font, preview}};
19
+ }
20
+ body h1,
21
+ body h2,
22
+ body h3,
23
+ body h4,
24
+ body h5,
25
+ body h6 {
26
+ font-family: {{"header_font" | customizable : customization.header_font, preview}}, Helvetica, Arial, sans-serif;
27
+ }
28
+ p {
29
+ color: {{ "paragraph_color" | customizable : customization.paragraph_color, preview }};
30
+ }
31
+ .carousel-caption{
32
+ text-align: {{ "header_title_align" | customizable : customization.header_title_align, preview }};
33
+ }
34
+ .products-header h4{
35
+ color: {{"products_header_color" | customizable : customization.products_header_color, preview}};
36
+ font-size: {{"products_header_size" | customizable : customization.products_header_size, preview}}pt;
37
+ }
38
+ .products-header .divisor{
39
+ border-bottom: solid {{"products_divider_size" | customizable : customization.products_divider_size, preview}}px {{"products_divider_color" | customizable : customization.products_divider_color, preview }};
40
+ }
41
+ .pagination > .active > a {
42
+ background-color: {{"products_paginator_active_color" | customizable : customization.products_paginator_active_color, preview }};
43
+ }
44
+ .pagination > .active > a:focus, .pagination > .active > a:hover {
45
+ background-color: {{"products_paginator_active_color" | customizable : customization.products_paginator_active_color, preview }};
46
+ }
47
+ a{
48
+ color: {{"link_color" | customizable : customization.link_color, preview }};
49
+ }
50
+ a, .btn{
51
+ -moz-transition: {{"link_color_transition" | customizable : customization.link_color_transition, preview }} .2s ease-in, {{"link_background_color_transition" | customizable : customization.link_background_color_transition, preview }} .2s ease-in;
52
+ -o-transition: {{"link_color_transition" | customizable : customization.link_color_transition, preview }} .2s ease-in, {{"link_background_color_transition" | customizable : customization.link_background_color_transition, preview }} .2s ease-in;
53
+ -webkit-transition: {{"link_color_transition" | customizable : customization.link_color_transition, preview }} .2s ease-in, {{"link_background_color_transition" | customizable : customization.link_background_color_transition, preview }} .2s ease-in;
54
+ transition: {{"link_color_transition" | customizable : customization.link_color_transition, preview }} .2s ease-in, {{"link_background_color_transition" | customizable : customization.link_background_color_transition, preview }} .2s ease-in;
55
+ }
56
+ a:hover, a:focus{
57
+ color: {{"link_color_hover" | customizable : customization.link_color_hover, preview }};
58
+
59
+ }
60
+ .primary{
61
+ background-color: {{"primary_color" | customizable : customization.primary_color, preview }};
62
+ color: {{"primary_contrast_color" | customizable : customization.primary_contrast_color, preview }};
63
+ }
64
+ .primary:hover{
65
+ background-color: {{"primary_hover_color" | customizable : customization.primary_hover_color, preview }};
66
+ color: {{"primary_hover_contrast_color" | customizable : customization.primary_hover_contrast_color, preview }};
67
+ }
68
+
69
+ .btn.primary{
70
+ border:solid 1px {{"primary_color" | customizable : customization.primary_color, preview }};;
71
+ }
72
+ .btn.primary:hover{
73
+ border:solid 1px {{"primary_hover_color" | customizable : customization.primary_hover_color, preview }};;
74
+ }
75
+
76
+ .secondary{
77
+ background-color: {{"secondary_color" | customizable : customization.secondary_color, preview }};
78
+ color: {{"secondary_contrast_color" | customizable : customization.secondary_contrast_color, preview }};
79
+ }
80
+ .secondary:hover{
81
+ background-color: {{"secondary_hover_color" | customizable : customization.secondary_hover_color, preview }};
82
+ color: {{"secondary_hover_contrast_color" | customizable : customization.secondary_hover_contrast_color, preview }};
83
+ }
84
+
85
+ .btn.secondary{
86
+ border:solid 1px {{"secondary_color" | customizable : customization.secondary_color, preview }};;
87
+ }
88
+ .btn.secondary:hover{
89
+ border:solid 1px {{"secondary_hover_color" | customizable : customization.secondary_hover_color, preview }};;
90
+ }
91
+
92
+ /*--------------*/
93
+ /*---Checkout---*/
94
+ /*--------------*/
95
+
96
+ .progress-indicator>li.completed .bubble, .progress-indicator>li.completed .bubble, .progress-indicator>li.completed .bubble:after, .progress-indicator>li.completed .bubble:before{
97
+ background-color: {{"secondary_color" | customizable : customization.secondary_color, preview }} !important;
98
+
99
+ }
100
+
101
+ .progress-indicator>li.current .bubble, .progress-indicator>li.current .bubble, .progress-indicator>li.current .bubble:after, .progress-indicator>li.current .bubble:before{
102
+ background-color: {{"primary_color" | customizable : customization.primary_color, preview }} !important;
103
+ }
104
+ .progress-indicator>li.current{
105
+ color: {{"primary_color" | customizable : customization.primary_color, preview }} !important;
106
+ }
107
+
108
+ /*--------------*/
109
+ /*-----Blog-----*/
110
+ /*--------------*/
111
+ #blog p {
112
+ font-family: {{"blog_paragraph_font" | customizable : customization.blog_paragraph_font, preview}}, 'Times New Roman', serif;
113
+ font-size: 20px;
114
+ color: {{"blog_text_color" | customizable : customization.blog_text_color, preview}};
115
+ }
116
+ #blog h1,
117
+ #blog h2,
118
+ #blog h3,
119
+ #blog h4,
120
+ #blog h5,
121
+ #blog h6 {
122
+ font-family: {{"blog_header_font" | customizable : customization.blog_header_font, preview}}, Helvetica, Arial, sans-serif;
123
+ font-weight: 800;
124
+ }
125
+ #blog .intro-header .site-heading .subheading,
126
+ #blog .intro-header .page-heading .subheading,
127
+ #blog .intro-header .post-heading .subheading,
128
+ #blog .post-in-index .post-preview .post-subtitle{
129
+ font-family: {{"blog_subtitle_font" | customizable : customization.blog_subtitle_font, preview}}, Helvetica, Arial, sans-serif;
130
+ }
131
+
132
+ #blog .intro-header .post-heading .meta {
133
+ font-family: 'Lora', 'Times New Roman', serif;
134
+ }
135
+ #blog .post-in-index p.post-meta {
136
+ font-family: Lora,'Times New Roman',serif;
137
+ color: #808080;
138
+ }
139
+ #blog .pager li > a,
140
+ #blog .pager li > span {
141
+ background-color: {{"blog_button_background_color" | customizable : customization.blog_button_background_color, preview}};
142
+ color: {{"blog_button_color" | customizable : customization.blog_button_color, preview}};
143
+ }
144
+ #blog .pager li > a:hover,
145
+ #blog .pager li > a:focus {
146
+ color: {{"blog_button_hover_color" | customizable : customization.blog_button_hover_color, preview}};
147
+ background-color: {{"blog_button_hover_background_color" | customizable : customization.blog_button_hover_background_color, preview}};
148
+ border: 1px solid {{"blog_button_hover_background_color" | customizable : customization.blog_button_hover_background_color, preview}};
149
+ }
150
+ #blog .post-in-index a{
151
+ color: {{"blog_main_link_color" | customizable : customization.blog_main_link_color, preview}};
152
+ }
153
+ #blog .post-in-index a:hover,
154
+ #blog .post-in-index a:focus{
155
+ color: {{"blog_main_link_hover_button" | customizable : customization.blog_main_link_hover_button, preview}};
156
+ }
157
+ </style>