feat: ✨ switch button label between view modes
This commit is contained in:
parent
26977635bd
commit
167f86922f
1 changed files with 14 additions and 3 deletions
|
@ -23,7 +23,8 @@
|
|||
</div>
|
||||
|
||||
<ref-button class="nsfw-toggle" command="show-modal" commandfor="nsfw-warning">
|
||||
Reveal/Hide
|
||||
<span>Show NSFW</span>
|
||||
<span class="nsfw-label">Hide NSFW</span>
|
||||
</ref-button>
|
||||
|
||||
<div class="nsfw-content">
|
||||
|
@ -35,12 +36,22 @@
|
|||
|
||||
<style webc:scoped="nsfw-barrier">
|
||||
:host {
|
||||
.nsfw & .nsfw-content {
|
||||
.nsfw & :where(.nsfw-content) {
|
||||
display: block;
|
||||
}
|
||||
.nsfw & .nsfw-toggle .nsfw-label {
|
||||
display: block;
|
||||
}
|
||||
.nsfw & .nsfw-toggle :not(.nsfw-label) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
:host .nsfw-content {
|
||||
:host .nsfw-toggle {
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
:host :where(.nsfw-content, .nsfw-label) {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue