@total_onion/onion-library 3.0.43 → 3.0.45

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.
package/createNewBlock.js CHANGED
@@ -28,7 +28,7 @@ if (projectJson) {
28
28
  }
29
29
  }
30
30
 
31
- const templateOptions = yargs.argv._;
31
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
32
32
  let swiper = false;
33
33
  let image = false;
34
34
  let content = false;
package/duplicateBlock.js CHANGED
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const path = require('path');
4
4
  const {globSync} = require('glob');
5
5
  const yargs = require('yargs');
6
- const templateOptions = yargs.argv._;
6
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
7
7
  const themePath =
8
8
  process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
9
  const srcPathJs = `${themePath}/assets/js/blocks`;
@@ -1,45 +1,53 @@
1
1
  require('dotenv').config();
2
2
  const fs = require('fs');
3
- const { globSync } = require('glob');
3
+ const {globSync} = require('glob');
4
4
  const yargs = require('yargs');
5
5
  const path = require('path');
6
6
  const compressing = require('compressing');
7
- const templateOptions = yargs.argv._;
8
- const themePath = process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
7
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
8
+ const themePath =
9
+ process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
10
  const srcPathJs = `${themePath}/assets/js/blocks/`;
10
11
  const srcPathScss = `${themePath}/assets/scss/blocks/`;
11
12
  const srcPathTwig = `${themePath}/views/blocks/`;
12
13
  const srcPathPhp = `${themePath}/inc/acf-blocks/`;
13
14
  const srcPathVue = `${themePath}/assets/vue/blocks/`;
14
15
  const destPath = path.join(__dirname, '../../../exported-blocks/');
15
- const component_list_file = path.join(__dirname, '../../../project-components-list.json');
16
+ const component_list_file = path.join(
17
+ __dirname,
18
+ '../../../project-components-list.json'
19
+ );
16
20
  const destinationProject = templateOptions[0];
17
21
  let blocks = [];
18
22
 
19
23
  try {
20
24
  blocks = JSON.parse(fs.readFileSync(component_list_file, 'utf8'));
21
25
  } catch (e) {
22
- console.error("Component list file error : " + e);
26
+ console.error('Component list file error : ' + e);
23
27
  return;
24
28
  }
25
29
 
26
- const dynamicEntryPointsJs = globSync(`${themePath}/assets/js/blocks/*.js`)
27
- .map((path) => {
30
+ const dynamicEntryPointsJs = globSync(`${themePath}/assets/js/blocks/*.js`).map(
31
+ (path) => {
28
32
  const assetKey = path
29
33
  .replace('assets/js/blocks/', '')
30
34
  .replace('.js', '');
31
35
  return assetKey;
32
- });
36
+ }
37
+ );
33
38
 
34
39
  const compressDone = (name) => {
35
40
  if (!destinationProject) {
36
41
  return;
37
42
  }
38
- fs.rmSync(`../../../exported-blocks/${name}`, { recursive: true });
43
+ fs.rmSync(`../../../exported-blocks/${name}`, {recursive: true});
39
44
  if (fs.existsSync(`../${destinationProject}/exported-blocks/`)) {
40
45
  fs.copyFileSync(
41
46
  path.join(__dirname, `../../../exported-blocks/${name}.zip`),
42
- path.join(__dirname, `.../../.././${destinationProject}/exported-blocks/${name}.zip`)
47
+ path.join(
48
+ __dirname,
49
+ `.../../.././${destinationProject}/exported-blocks/${name}.zip`
50
+ )
43
51
  );
44
52
  } else {
45
53
  console.log('the destination does not exist!');
@@ -47,12 +55,12 @@ const compressDone = (name) => {
47
55
  };
48
56
 
49
57
  function copyBlockJson(name) {
50
- const existingAcfFiles = globSync(`${themePath}/acf-json/*.json`)
51
- .map((path) => {
52
- const assetKey = path
53
- .replace('assets/js/blocks/', '');
58
+ const existingAcfFiles = globSync(`${themePath}/acf-json/*.json`).map(
59
+ (path) => {
60
+ const assetKey = path.replace('assets/js/blocks/', '');
54
61
  return assetKey;
55
- });
62
+ }
63
+ );
56
64
 
57
65
  existingAcfFiles.forEach((file, index) => {
58
66
  let rawdata = fs.readFileSync(file);
@@ -69,7 +77,10 @@ function copyBlockJson(name) {
69
77
  );
70
78
  fs.copyFileSync(
71
79
  existingAcfFiles[index],
72
- path.join(__dirname, `../../../exported-blocks/${name}/${fileName}`)
80
+ path.join(
81
+ __dirname,
82
+ `../../../exported-blocks/${name}/${fileName}`
83
+ )
73
84
  );
74
85
  return;
75
86
  }
@@ -81,11 +92,17 @@ const handleError = (err) => console.error(err);
81
92
 
82
93
  blocks.block.forEach((blockName) => {
83
94
  if (dynamicEntryPointsJs.includes(blockName)) {
84
- const dir = path.join(__dirname, `../../../exported-blocks/${blockName}/`);
95
+ const dir = path.join(
96
+ __dirname,
97
+ `../../../exported-blocks/${blockName}/`
98
+ );
85
99
 
86
100
  if (!fs.existsSync(dir)) {
87
- fs.mkdirSync(dir, { recursive: true });
88
- fs.copyFileSync(`${srcPathJs}${blockName}.js`, `${dir}${blockName}.js`);
101
+ fs.mkdirSync(dir, {recursive: true});
102
+ fs.copyFileSync(
103
+ `${srcPathJs}${blockName}.js`,
104
+ `${dir}${blockName}.js`
105
+ );
89
106
  fs.copyFileSync(
90
107
  `${srcPathScss}${blockName}.scss`,
91
108
  `${dir}${blockName}.scss`
@@ -107,8 +124,14 @@ blocks.block.forEach((blockName) => {
107
124
  copyBlockJson(blockName);
108
125
  compressing.zip
109
126
  .compressDir(
110
- path.join(__dirname, `../../../exported-blocks/${blockName}`),
111
- path.join(__dirname, `../../../exported-blocks/${blockName}.zip`)
127
+ path.join(
128
+ __dirname,
129
+ `../../../exported-blocks/${blockName}`
130
+ ),
131
+ path.join(
132
+ __dirname,
133
+ `../../../exported-blocks/${blockName}.zip`
134
+ )
112
135
  )
113
136
  .then(compressDone(blockName))
114
137
  .catch(handleError);
@@ -118,4 +141,4 @@ blocks.block.forEach((blockName) => {
118
141
  );
119
142
  }
120
143
  }
121
- });
144
+ });
package/exportBlock.js CHANGED
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const {globSync} = require('glob');
4
4
  const yargs = require('yargs');
5
5
  const compressing = require('compressing');
6
- const templateOptions = yargs.argv._;
6
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
7
7
  const themePath =
8
8
  process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
9
  console.log('🚀 ~ themePath:', themePath);
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const {globSync} = require('glob');
4
4
  const yargs = require('yargs');
5
5
  const compressing = require('compressing');
6
- const templateOptions = yargs.argv._;
6
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
7
7
  const themePath =
8
8
  process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
9
  // const srcPathJs = `${themePath}/assets/js/blocks/`;
@@ -2,13 +2,17 @@ require('dotenv').config();
2
2
  const fs = require('fs');
3
3
  const yargs = require('yargs');
4
4
  const path = require('path');
5
- // entry points
6
- const args = yargs.argv;
5
+ // entry points
6
+ const args = yargs(process.argv.slice(2)).argv;
7
7
  const componentOptions = args._;
8
8
  const entryPointName = componentOptions[0];
9
- const themePath = process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
+ const themePath =
10
+ process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
10
11
  const srcPathEntryPoint = `${themePath}/views/entry-points`;
11
- const destPathEntryPoints = path.join(__dirname, `../../../../../../../../onion-library/components/entrypoint-${entryPointName}`);
12
+ const destPathEntryPoints = path.join(
13
+ __dirname,
14
+ `../../../../../../../../onion-library/components/entrypoint-${entryPointName}`
15
+ );
12
16
 
13
17
  const bColors = {
14
18
  HEADER: '\033[95m',
@@ -34,29 +38,39 @@ const icons = {
34
38
  };
35
39
 
36
40
  if (componentOptions.length === 0) {
37
- console.error(`${icons.CROSS_MARK} No entry point specified.`);
38
- process.exit(1);
41
+ console.error(`${icons.CROSS_MARK} No entry point specified.`);
42
+ process.exit(1);
39
43
  }
40
44
 
41
-
42
-
43
45
  copySpecifiedEntryPoint(entryPointName);
44
46
 
45
47
  function copySpecifiedEntryPoint(entryPointName) {
46
- const entryPointSrcFile = path.join(srcPathEntryPoint, `${entryPointName}.twig`);
47
- const entryPointDestFile = path.join(destPathEntryPoints, `${entryPointName}.twig`);
48
+ const entryPointSrcFile = path.join(
49
+ srcPathEntryPoint,
50
+ `${entryPointName}.twig`
51
+ );
52
+ const entryPointDestFile = path.join(
53
+ destPathEntryPoints,
54
+ `${entryPointName}.twig`
55
+ );
48
56
 
49
- if (fs.existsSync(entryPointSrcFile)) {
50
- try {
51
- if (!fs.existsSync(destPathEntryPoints)) {
52
- fs.mkdirSync(destPathEntryPoints, { recursive: true });
53
- }
54
- fs.copyFileSync(entryPointSrcFile, entryPointDestFile);
55
- console.log(`${icons.SMILE} Successfully copied entry point file: ${entryPointName}.twig`);
56
- } catch (error) {
57
- console.error(`${icons.CROSS_MARK} Error copying entry point file: ${error.message}`);
58
- }
59
- } else {
60
- console.error(`${icons.CROSS_MARK} Entry point file does not exist: ${entryPointSrcFile}`);
57
+ if (fs.existsSync(entryPointSrcFile)) {
58
+ try {
59
+ if (!fs.existsSync(destPathEntryPoints)) {
60
+ fs.mkdirSync(destPathEntryPoints, {recursive: true});
61
+ }
62
+ fs.copyFileSync(entryPointSrcFile, entryPointDestFile);
63
+ console.log(
64
+ `${icons.SMILE} Successfully copied entry point file: ${entryPointName}.twig`
65
+ );
66
+ } catch (error) {
67
+ console.error(
68
+ `${icons.CROSS_MARK} Error copying entry point file: ${error.message}`
69
+ );
70
+ }
71
+ } else {
72
+ console.error(
73
+ `${icons.CROSS_MARK} Entry point file does not exist: ${entryPointSrcFile}`
74
+ );
61
75
  }
62
- }
76
+ }
@@ -4,7 +4,7 @@ const fse = require('fs-extra');
4
4
  const {globSync} = require('glob');
5
5
  const yargs = require('yargs');
6
6
  const path = require('path');
7
- const templateOptions = yargs.argv._;
7
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
8
8
  const themePath =
9
9
  process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
10
10
 
package/importBlock.js CHANGED
@@ -1,20 +1,22 @@
1
1
  require('dotenv').config();
2
2
  const fs = require('fs');
3
- const { globSync } = require('glob');
3
+ const {globSync} = require('glob');
4
4
  const yargs = require('yargs');
5
5
  const compressing = require('compressing');
6
- const templateOptions = yargs.argv._;
6
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
7
7
  const blockName = templateOptions[0];
8
8
  const exportedFolder = '../../../../exported-blocks';
9
- const themePath = process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
9
+ const themePath =
10
+ process.env.THEME_PATH || 'web/wp-content/themes/global-theme';
10
11
 
11
- const existingBlocks = globSync(`${themePath}/assets/js/blocks/*.js`)
12
- .map((path) => {
12
+ const existingBlocks = globSync(`${themePath}/assets/js/blocks/*.js`).map(
13
+ (path) => {
13
14
  const assetKey = path
14
15
  .replace('assets/js/blocks/', '')
15
16
  .replace('.js', '');
16
17
  return assetKey;
17
- });
18
+ }
19
+ );
18
20
 
19
21
  const handleError = (err) => console.error(err);
20
22
 
@@ -3,7 +3,7 @@ const fs = require('fs');
3
3
  const {globSync} = require('glob');
4
4
  const yargs = require('yargs');
5
5
  const compressing = require('compressing');
6
- const templateOptions = yargs.argv._;
6
+ const templateOptions = yargs(process.argv.slice(2)).argv._;
7
7
  const blockName = templateOptions[0];
8
8
  const exportedFolder = '../../../../exported-blocks';
9
9
  const themePath =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "3.0.43",
3
+ "version": "3.0.45",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,93 +1,95 @@
1
- .betterreviews-display-v3.loaded .better-reviews__criteria-stars {
2
- animation: slide-reveal-right 1s 2s ease-out forwards;
3
- }
4
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars {
5
- --star-count: 5;
6
- --star-size: 16px;
7
- --better-reviews-star-width: calc( var(--star-count) * var(--star-size) + (var(--star-count) - 1) * 0px );
8
- opacity: 0;
9
- position: relative;
10
- width: calc(5 * 16px + (5 - 1) * 0px);
11
- width: var(--better-reviews-star-width);
12
- height: 16px;
13
- height: var(--star-size);
14
- -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
15
- mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
16
- -webkit-mask-repeat: repeat-x;
17
- mask-repeat: repeat-x;
18
- -webkit-mask-size: 16px auto;
19
- mask-size: 16px auto;
20
- -webkit-mask-size: var(--star-size) auto;
21
- mask-size: var(--star-size) auto;
22
- -webkit-mask-position: left 33%;
23
- mask-position: left 33%;
24
- background: transparent;
25
- }
26
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars::before {
27
- content: "";
28
- position: absolute;
29
- inset: 0;
30
- background:
31
- linear-gradient(
32
- 90deg,
33
- #44271c 0%,
34
- #dabb9c 32%,
35
- #e5c29d 38%,
36
- #ebc79f 45%,
37
- #7a4a36 74%,
38
- #89563e 81%,
39
- #9d6749 92%,
40
- #a56d4e 100%);
41
- background-clip: content-box;
42
- -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
43
- mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
44
- -webkit-mask-repeat: repeat-x;
45
- mask-repeat: repeat-x;
46
- -webkit-mask-size: var(--star-size) auto;
47
- mask-size: var(--star-size) auto;
48
- -webkit-mask-position: left 33%;
49
- mask-position: left 33%;
50
- }
51
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_05::before {
52
- padding-right: calc(var(--better-reviews-star-width) * 0.911);
53
- }
54
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_10::before {
55
- padding-right: calc(var(--better-reviews-star-width) * 0.8);
56
- }
57
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_15::before {
58
- padding-right: calc(var(--better-reviews-star-width) * 0.702);
59
- }
60
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_20::before {
61
- padding-right: calc(var(--better-reviews-star-width) * 0.6);
62
- }
63
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_25::before {
64
- padding-right: calc(var(--better-reviews-star-width) * 0.5);
65
- }
66
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_30::before {
67
- padding-right: calc(var(--better-reviews-star-width) * 0.4);
68
- }
69
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_35::before {
70
- padding-right: calc(var(--better-reviews-star-width) * 0.298);
71
- }
72
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_40::before {
73
- padding-right: calc(var(--better-reviews-star-width) * 0.2);
74
- }
75
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_45::before {
76
- padding-right: calc(var(--better-reviews-star-width) * 0.1);
77
- }
78
- .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_50::before {
79
- padding-right: 0;
80
- }
81
- @keyframes slide-reveal-right {
82
- from {
83
- clip-path: inset(0 100% 0 0);
1
+ @layer base-styles {
2
+ .betterreviews-display-v3.loaded .better-reviews__criteria-stars {
3
+ animation: slide-reveal-right 1s 2s ease-out forwards;
4
+ }
5
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars {
6
+ --star-count: 5;
7
+ --star-size: 16px;
8
+ --better-reviews-star-width: calc( var(--star-count) * var(--star-size) + (var(--star-count) - 1) * 0px );
84
9
  opacity: 0;
10
+ position: relative;
11
+ width: calc(5 * 16px + (5 - 1) * 0px);
12
+ width: var(--better-reviews-star-width);
13
+ height: 16px;
14
+ height: var(--star-size);
15
+ -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
16
+ mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
17
+ -webkit-mask-repeat: repeat-x;
18
+ mask-repeat: repeat-x;
19
+ -webkit-mask-size: 16px auto;
20
+ mask-size: 16px auto;
21
+ -webkit-mask-size: var(--star-size) auto;
22
+ mask-size: var(--star-size) auto;
23
+ -webkit-mask-position: left 33%;
24
+ mask-position: left 33%;
25
+ background: transparent;
26
+ }
27
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars::before {
28
+ content: "";
29
+ position: absolute;
30
+ inset: 0;
31
+ background:
32
+ linear-gradient(
33
+ 90deg,
34
+ #44271c 0%,
35
+ #dabb9c 32%,
36
+ #e5c29d 38%,
37
+ #ebc79f 45%,
38
+ #7a4a36 74%,
39
+ #89563e 81%,
40
+ #9d6749 92%,
41
+ #a56d4e 100%);
42
+ background-clip: content-box;
43
+ -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
44
+ mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.86 26'><path d='M27.86,10.12l-7.24,6.46,1.99,9.42-8.68-4.71-8.68,4.54,1.99-9.43L0,9.95l9.77-1.22L13.93,0l4.16,8.73,9.77,1.4Z'/></svg>");
45
+ -webkit-mask-repeat: repeat-x;
46
+ mask-repeat: repeat-x;
47
+ -webkit-mask-size: var(--star-size) auto;
48
+ mask-size: var(--star-size) auto;
49
+ -webkit-mask-position: left 33%;
50
+ mask-position: left 33%;
51
+ }
52
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_05::before {
53
+ padding-right: calc(var(--better-reviews-star-width) * 0.911);
54
+ }
55
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_10::before {
56
+ padding-right: calc(var(--better-reviews-star-width) * 0.8);
57
+ }
58
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_15::before {
59
+ padding-right: calc(var(--better-reviews-star-width) * 0.702);
60
+ }
61
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_20::before {
62
+ padding-right: calc(var(--better-reviews-star-width) * 0.6);
63
+ }
64
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_25::before {
65
+ padding-right: calc(var(--better-reviews-star-width) * 0.5);
66
+ }
67
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_30::before {
68
+ padding-right: calc(var(--better-reviews-star-width) * 0.4);
69
+ }
70
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_35::before {
71
+ padding-right: calc(var(--better-reviews-star-width) * 0.298);
72
+ }
73
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_40::before {
74
+ padding-right: calc(var(--better-reviews-star-width) * 0.2);
75
+ }
76
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_45::before {
77
+ padding-right: calc(var(--better-reviews-star-width) * 0.1);
85
78
  }
86
- 25% {
87
- opacity: 1;
79
+ .betterreviews-display-v3 .better-reviews__average .better-reviews__criteria-stars.better-reviews__star_50::before {
80
+ padding-right: 0;
88
81
  }
89
- 100% {
90
- clip-path: inset(0 0 0 0);
91
- opacity: 1;
82
+ @keyframes slide-reveal-right {
83
+ from {
84
+ clip-path: inset(0 100% 0 0);
85
+ opacity: 0;
86
+ }
87
+ 25% {
88
+ opacity: 1;
89
+ }
90
+ 100% {
91
+ clip-path: inset(0 0 0 0);
92
+ opacity: 1;
93
+ }
92
94
  }
93
95
  }