안녕하세요,
테마에 설정을 더 추가하기 시작하면서 Discourse가 해당 설정들을 무시하고 있다는 점이 드러나기 시작했습니다.
코드:
#main-outlet-wrapper .sidebar-wrapper {
@if $Full_Width == true {
left: 10px;
}
}
@if $Full_Width == true {
:root {
--d-max-width: 95%;
}
#main-outlet {
max-width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: 5px;
margin-bottom: 50px;
}
}
이 코드는 설정 값이 무엇이든 아무런 효과가 없습니다.
그러나 == true를 제거하면 항상 활성화됩니다.
이것이 다른 boolean 타입 설정에서도 발생하는 문제인 것 같습니다. Sass 문서를 읽어 보았는데 제 코드는 문서와 일치하는데도 여전히 작동하지 않습니다.
div#main-outlet.wrap.not-found-container,
#main-outlet-wrapper {
#main-outlet,
.sidebar-wrapper {
@if $Is_Background_Blurred {
backdrop-filter: blur(3rem) !important;
background-color: #0a0a0aa6 !important;
input[type],
.select-kit.combo-box .select-kit-header,
.d-editor-textarea-wrapper,
div.ac-wrap {
background: transparent;
}
}
@else {
backdrop-filter: none !important;
background-color: var(--secondary) !important;
input[type],
.select-kit.combo-box .select-kit-header,
.d-editor-textarea-wrapper,
div.ac-wrap {
background: transparent;
}
}
}
}
도움 주시면 감사하겠습니다.
