Componente de Decoração de Natal 🎄

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 curtidas

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 curtidas

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

7 curtidas

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 curtidas

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 curtidas

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 curtidas

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

1 curtida

Em meu discurso, chapéu e luz funcionam bem, no entanto, a imagem de decoração não aparece. Não tenho ideia do porquê isso acontece.

1 curtida

Se ajudar, a decoração só aparece no desktop, no canto superior esquerdo e no canto superior direito.

1 curtida

Sim, eu sei, mas não há nada quando visualizo no desktop.

1 curtida

A imagem de decoração aparece quando a largura mínima da tela é de 1450px. Você está visualizando o site em um monitor pequeno ou em um laptop?

1 curtida

Ah. Eu tentei isso no meu monitor de 2k, então funciona. Agora estou usando meu Lenovo Yoga Duet (tipo um Microsoft Surface), então isso desaparece. No entanto, é possível exibir isso em um monitor pequeno ou em um laptop?

1 curtida

Seria uma pena que os usuários de laptop não pudessem ver o sino… Eu adoro isso. Isso representa o Natal.

1 curtida

Você pode fazer um fork do tema e ajustar as configurações de largura da tela.

1 curtida

Legal! Vou tentar isso! Obrigado pela ajuda!

1 curtida

Se alguém tiver outros componentes que apareçam antes das decorações, você pode tentar adicionar este CSS para forçar as luzes a serem as primeiras:

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

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

(isso pode quebrar outras integrações, então teste completamente)

4 curtidas

Posso mudar as cores das luzes?

2 curtidas

Chapéu não aparece nas postagens.

2 curtidas

@meghna Isso é fantástico!

“Imagem de Decoração de Natal” não funcionou para mim.

Existe alguma maneira de alterar as cores das luzes? Estou mexendo no CSS, mas não estou tendo sorte.

1 curtida

Parece que adicionará um segundo chapéu ao emoji (no menu do usuário superior direito) quando o usuário definir um user-status

2 curtidas