크리스마스 장식과 마찬가지로, 여기는 할로윈 장식을 공유하기 위한 주제입니다.
으스스한 유령
기본적으로 작성을 시작할 때 유령이 나타날 확률은 10분의 1입니다.
- 테마/컴포넌트에 다음 이미지를 업로드하고 변수 이름을 ghost로 설정하세요:
출처
-
테마 또는 컴포넌트의
</head>탭에 다음 자바스크립트를 추가하세요:
rarity 변수의 값을 늘리거나 줄여서 유령이 나타나는 빈도를 조절할 수 있습니다.<script type="text/discourse-plugin" version="1.4.0"> const appEvents = api.container.lookup("service:app-events"); appEvents.on('composer:opened', () => { let rarity = 10 // the ghost has 1 out of [rarity value] chance to appear when opening the composer if (Math.floor(Math.random() * rarity) == 0) { let halloweenGhost = document.createElement("img"); halloweenGhost.id = "halloween-ghost"; halloweenGhost.src = settings.theme_uploads.ghost; document.getElementsByTagName("body")[0].appendChild(halloweenGhost); setTimeout(function () { halloweenGhost.classList.add("ghost-show"); }, 0); setTimeout(function(){ halloweenGhost.remove(); }, 1000); } }); </script> -
CSS 탭에 다음 코드를 추가하세요:
#halloween-ghost { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.5); z-index: 10000; opacity: 1; pointer-events: none; transition: opacity .75s ease-in, top .75s ease, transform .75s cubic-bezier(0.175, 0.885, 0.32, 1.275); &.ghost-show { transform: translate(-50%, -60%) scale(.6); opacity: 0; } } @media all and (min-width: 1024px) { #halloween-ghost { transform: translate(-50%, -50%) scale(.75); &.ghost-show { transform: translate(-50%, -60%) scale(.9); } } }
모바일에서 가상 키보드가 나타날 때 유령이 "점프"하는 현상이 발생합니다.
거미줄
작은 화면에서는 거미줄이 숨겨집니다.
포럼에 추가하는 방법:
-
새로운 테마 컴포넌트를 만들거나 기존 테마를 편집하여 이 이미지를 업로드하고, 변수 이름을 spiderweb으로 설정하세요:
출처 -
다음 CSS를 테마 또는 컴포넌트에 추가하세요:
@media all and (min-width: 1300px) { #main { &:before, &:after { content: ""; display: block; top: 4em; width: 300px; height: 300px; position: absolute; background: transparent url($spiderweb) top left no-repeat; background-size: contain; z-index: -1; } &:after { right: 0; transform: scaleX(-1); } } }
이모지 선택기의 해골 아이콘
메시지 작성기의 웃는 얼굴 아이콘을 해골
로 대체하는 은은한 효과입니다.
![]()
-
svg icon subset 설정에
skull을 추가하세요:
-
테마/테마 컴포넌트의
</head> 탭에서 아이콘을 교체하세요:<script type="text/discourse-plugin" version="0.8.23"> api.replaceIcon('far-smile', 'skull'); </script>
관리자 패널과 같은 다른 곳의 웃는 얼굴 아이콘도 함께 교체됩니다. 하지만 할로윈이니까 괜찮죠?

잭-o’-lantern(호박 등)
사이트 오른쪽 하단에 놓이는 단순한 정적 조각 호박입니다:
-
새로운 테마 컴포넌트를 만들거나 기존 테마를 편집하여 이 이미지를 업로드하고, 변수 이름을 pumpkin으로 설정하세요:
출처 -
다음 CSS를 테마 또는 컴포넌트에 추가하세요:
body { background: transparent url($pumpkin) bottom right no-repeat; background-size: 10%; } @media all and (min-width: 1024px) { body { background-size: 7%; } }
이미 <body>에 배경 이미지를 사용 중인 포럼과는 호환되지 않습니다.
기괴한 로고
로고가 순수한 텍스트이거나 단순한 텍스트 이미지인 경우, 더 할로윈 분위기가 나는 폰트로 교체할 수 있습니다.
→ 
사용한 폰트: Creepster
- 로고가 이미지를 사용하는 경우, 이미지를 편집하여 폰트를 변경하세요.
- 로고가 실제 텍스트인 경우, 로고에 사용되는 폰트를 변경하는 방법에 대한 이 튜토리얼을 따르세요: Include assets (e.g. images, fonts) in themes and components
- CSS에서 선택자
#site-text-logo를 사용하세요.
- CSS에서 선택자





