mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-08 16:20:28 +03:00
Make spoiler click to toggle (#176)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
1ed1dfc78a
commit
c22c407ee5
2 changed files with 19 additions and 13 deletions
|
|
@ -210,6 +210,7 @@
|
|||
border-radius: 4px;
|
||||
background-color: rgba(124, 124, 124, 0.5);
|
||||
color:transparent;
|
||||
cursor: pointer;
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
|
|
@ -219,15 +220,14 @@
|
|||
& > * {
|
||||
opacity: 0;
|
||||
}
|
||||
&:focus, &:hover {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
user-select: initial;
|
||||
& > * {
|
||||
opacity: inherit;
|
||||
}
|
||||
}
|
||||
.data-mx-spoiler--visible {
|
||||
background-color: var(--bg-surface-active) !important;
|
||||
color: inherit !important;
|
||||
user-select: initial !important;
|
||||
& > * {
|
||||
opacity: inherit !important;
|
||||
}
|
||||
|
||||
}
|
||||
&-edited {
|
||||
color: var(--tc-surface-low);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue