クリスマス装飾コンポーネント 🎄

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

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.

The Christmas lights were inspired from @Canapin’s ideas here.

Merry Christmas! :santa:

「いいね!」 47

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?

「いいね!」 9

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

「いいね!」 7

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 :slight_smile:

「いいね!」 3

Glad you liked it! :slight_smile:

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.

「いいね!」 2

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.

「いいね!」 2

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

「いいね!」 1

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

「いいね!」 1

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

「いいね!」 1

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

「いいね!」 1

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

「いいね!」 1

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?

「いいね!」 1

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

「いいね!」 1

You can fork the theme and tweak screen width settings.

「いいね!」 1

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

「いいね!」 1

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


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

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

(this might break other integrations, so test thoroughly )

「いいね!」 4

Can I change the colors of the lights?

「いいね!」 2

Hat not showing in posts.

「いいね!」 2

@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.

「いいね!」 1

Looks like it will add a 2nd hat on the emoji (at top right user menu) when the user set a user-status

image

「いいね!」 2