# Christmas Decoration Component 🎄

**URL:** https://meta.discourse.org/t/christmas-decoration-component/173949
**Category:** Theme component
**Created:** [December 21, 2020, 6:36pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949 "2020-12-21T18:36:06Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 21, 2020, 6:36pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/1 "2020-12-21T18:36:06Z")

</div>

Adding a bit of festive flair to your forum – I present a Christmas decoration component! 🎄

 ![Screenshot 2020-12-21 at 11.48.08 PM](https://global.discourse-cdn.com/meta/original/3X/9/5/95cc4b93a42f33195f1e4fe567f8102563877347.jpeg)

This component includes three flairs:

1. Christmas Lights
2. Christmas Hats
3. Christmas Decoration Image

Each flair can be individually enabled/disabled via theme settings. For `Christmas Decoration Image` there is also a setting to invert color for forum with Dark theme.

 ![Screenshot 2020-12-21 at 11.46.41 PM](https://global.discourse-cdn.com/meta/original/3X/e/b/eb64845e7f6b1e4836146e9d969cc70965792fdb.jpeg)

The Christmas lights were inspired from @Canapin’s [ideas here](https://meta.discourse.org/t/share-your-discourse-christmas-decorations/135188).

Merry Christmas! 🎅

| | | |
| --- | --- | --- |
| 🕶 | **Preview** | [Preview on theme creator](https://theme-creator.discourse.org/theme/meghna/christmas-decorations) |
| 🔗 | **Github Repo** | [discourse-christmas-decorations](https://github.com/meghnaAJ/discourse-christmas-decorations) |
| 🛠 | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [December 21, 2020, 6:43pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/2 "2020-12-21T18:43:22Z")

</div>

Very nice! One small thing - it doesn’t seem like the ‘enable decoration image’ is making any difference. I think it might need an `if` statement in the SCSS?

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 21, 2020, 6:47pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/3 "2020-12-21T18:47:11Z")

</div>

Thanks for bringing this in my notice! I’ve pushed a fix now. 🙂

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [December 22, 2020, 10:43am UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/4 "2020-12-22T10:43:45Z")

</div>

This is great, thanks. Much easier as a theme component than a theme.

The hats worked immediately but I had to fiddle around to get the lights to work - e.g. ticked the enable/disable boxes (though not sure that is what made it work) and restarted the iOS Hub app - but I guess that’s realistic for lights 🙂

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 22, 2020, 11:01am UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/5 "2020-12-22T11:01:44Z")

</div>

> [@Jonathan5](#):
>
> This is great, thanks. Much easier as a theme component than a theme.

Glad you liked it! 🙂

> [@Jonathan5](#):
>
> but I had to fiddle around to get the lights to work

That is weird. I just checked installing the component (again) on theme-creator and it worked on first try. Let me know if the issue persists.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [December 22, 2020, 11:07am UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/6 "2020-12-22T11:07:15Z")

</div>

It’s all working now. Maybe it was something to do with caching - the avatars being updated sooner than the menu bar. “Caching” is a good catch-all excuse as I don’t understand it.

---

<div class="post-metadata">

### Author: ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)
#### Post date: [December 24, 2020, 6:08pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/7 "2020-12-24T18:08:04Z")

</div>

Hmm, perhaps mods could enable this component here on meta to make sure it is working…

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [December 7, 2021, 2:59pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/12 "2021-12-07T14:59:43Z")

</div>

In my discourse, hat and light works fine, however the decoration image doesn’t shows. I have no idea why this will happen.

---

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [December 7, 2021, 3:01pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/13 "2021-12-07T15:01:57Z")

</div>

If it helps, the decoration only shows up on desktop, on the top left and top right.

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [December 7, 2021, 3:21pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/14 "2021-12-07T15:21:47Z")

</div>

Yes I know but there is nothing when I view in desktop.

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 7, 2021, 3:23pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/15 "2021-12-07T15:23:10Z")

</div>

The decoration image shows up when the minimum screen width is `1450px`. Are you viewing the site on a small monitor or a laptop?

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [December 7, 2021, 3:25pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/16 "2021-12-07T15:25:05Z")

</div>

oh. I try that on my 2k display monitor so that works. Now I’m using my Lenovo Yoga Duet(kind of like Microsoft Surface) so that disappear. However is that possible to display it on small monitor or a laptop?

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [December 7, 2021, 3:26pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/17 "2021-12-07T15:26:22Z")

</div>

It will be a shame that laptop user can’t see the bell…I love that. That stands for Christmas.

---

<div class="post-metadata">

### Author: ![meghna](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meghna/32/453356_2.png) [@meghna](https://meta.discourse.org/u/meghna)
#### Post date: [December 7, 2021, 3:28pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/18 "2021-12-07T15:28:52Z")

</div>

You can fork the theme and [tweak screen width settings](https://github.com/MeghnaAJ/discourse-christmas-decorations/blob/master/scss/image.scss#L2).

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [December 7, 2021, 3:29pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/19 "2021-12-07T15:29:17Z")

</div>

Cool! I will try that! Thanks for your help!

---

<div class="post-metadata">

### Author: ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)
#### Post date: [December 7, 2021, 4:56pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/20 "2021-12-07T16:56:20Z")

</div>

If anyone have other components that shows up _before_ the decorations, you could try to add this CSS to force lights to be first:

```plaintext

#main-container > * {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#main-container .lightrope {
  order: -1;
}

```

(this _might_ break other integrations, so test thoroughly )

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [November 20, 2022, 5:45pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/21 "2022-11-20T17:45:20Z")

</div>

Can I change the colors of the lights?

---

<div class="post-metadata">

### Author: ![kynic](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kynic](https://meta.discourse.org/u/kynic)
#### Post date: [November 29, 2022, 8:45pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/22 "2022-11-29T20:45:10Z")

</div>

Hat not showing in posts.

---

<div class="post-metadata">

### Author: ![Brandon007](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@Brandon007](https://meta.discourse.org/u/Brandon007)
#### Post date: [December 7, 2022, 5:10pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/23 "2022-12-07T17:10:51Z")

</div>

@meghna This is fantastic!

“Christmas Decoration Image” didn’t work for me.

Is there a way to change the light colors? I’m playing with the CSS, but not having any luck.

---

<div class="post-metadata">

### Author: ![th21](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/th21/32/211915_2.png) [@th21](https://meta.discourse.org/u/th21)
#### Post date: [December 7, 2022, 10:13pm UTC](https://meta.discourse.org/t/christmas-decoration-component/173949/24 "2022-12-07T22:13:10Z")

</div>

Looks like it will add a 2nd hat on the emoji (at top right user menu) when the user set a [user-status](https://meta.discourse.org/t/user-status/240335)

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/0/d/10de2e46c6fa37649a552ae6f90453151135d5cc.png)

[Next page](https://meta.discourse.org/t/christmas-decoration-component/173949.md?page=2)
