guess-the-year-web-component 3.2.0 → 3.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guess-the-year-web-component",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Guess the year",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -427,10 +427,14 @@ export class GuessTheYear extends LitElement {
427
427
  `;
428
428
  }
429
429
 
430
- // Preserve html structure to prevent the webcomponent to collapse.
431
- return html`<div class="incident--image">
430
+ if (!this.suppressImages) {
431
+ // Preserve html structure to prevent the webcomponent to collapse.
432
+ return html`<div class="incident--image">
432
433
  <img/>
433
434
  </div>`;
435
+ }
436
+
437
+ return html``;
434
438
  }
435
439
 
436
440
  // renders a list of possible answers
package/src/index.html CHANGED
@@ -36,14 +36,16 @@
36
36
  --guess-the-year-title-background-color: orange;
37
37
  --guess-the-year-title-color: white;
38
38
  /* --guess-the-year-text-position: static; */
39
- /* --guess-the-year-text-color: white;
40
- --guess-the-year-text-background-color: rgb(3, 78, 3); */
39
+ /* --guess-the-year-text-color: white; */
40
+ --guess-the-year-intro-background-color: white;
41
+ --guess-the-year-text-background-color: rgba(255, 255, 255, 0.861);
41
42
  --guess-the-year-text-max-height: 200px;
42
43
  --guess-the-year-tile-min-height: 500px;
43
44
  --guess-the-year-tile-max-height: 90vh;
44
45
  --guess-the-year-attribution-font-color: rgb(168, 170, 171);
45
46
  --guess-the-year-attribution-font-size: 8px;
46
47
  --guess-the-year-font-family: "Comfortaa", cursive;
48
+ --guess-the-year-button-background-color: rgb(124, 1, 78);
47
49
 
48
50
  min-height: 80vh;
49
51
  }
@@ -1,29 +1,28 @@
1
-
2
1
  $background_color: var(--guess-the-year-background-color, white);
3
2
  $text_color: var(--guess-the-year-text-color, black);
4
3
  $text_font_size: var(--guess-the-year-text-font-size, 14px);
5
4
 
6
5
  $title_background_color: var(--guess-the-year-title-background-color,
7
- rgba(255, 255, 255, 0.7));
6
+ rgba(255, 255, 255, 0.7));
8
7
  $title_color: var(--guess-the-year-title-color, rgba(0, 0, 0, 1));
9
8
  $title_font_size: var(--guess-the-year-title-font-size, 16px);
10
9
 
11
10
  $splash_background_color: var(--guess-the-year-splash-screen-background-color,
12
- rgba(255, 255, 255, 0.7));
13
- $splash_text_color: var(--guess-the-year-splash-screen-color, rgba(0, 0, 0, 1));
11
+ rgba(255, 255, 255, 0.7));
12
+ $splash_text_color: var(--guess-the-year-splash-screen-color, rgba(0, 0, 0, 1));
14
13
  $splash_font_size: var(--guess-the-year-splash-screen-font-size, 16px);
15
14
 
16
15
 
17
- $intro_background_color: var(--guess-the-year-title-background-color,
18
- rgba(255, 255, 255, 0.7));
16
+ $intro_background_color: var(--guess-the-year-intro-background-color,
17
+ rgba(255, 255, 255, 0.7));
19
18
  $intro_text_color: var(--guess-the-year-title-color, rgba(0, 0, 0, 1));
20
19
 
21
20
  $button_background_color: var(--guess-the-year-button-background-color,
22
- rgba(0, 0, 0, 1));
23
- $button_color: var(--guess-the-year-button-color, rgba(255, 255, 255, 1));
21
+ rgba(0, 0, 0, 1));
22
+ $button_color: var(--guess-the-year-button-color, rgba(255, 255, 255, 1));
24
23
 
25
24
 
26
25
  $footer_background_color: var(--guess-the-year-footer-background-color,
27
- rgba(255, 255, 255, 0.7));
26
+ rgba(255, 255, 255, 0.7));
28
27
  $footer_color: var(--guess-the-year-footer-color, rgba(0, 0, 0, 1));
29
28
  $footer_font_size: var(--guess-the-year-footer-font-size, 12px);