add basic spoiler support

This commit is contained in:
Sorunome 2019-05-22 20:41:27 +02:00
parent 8844706e5f
commit d8f4512439
No known key found for this signature in database
GPG key ID: 63E31F7B5993A9C4
4 changed files with 90 additions and 1 deletions

View file

@ -280,6 +280,33 @@ limitations under the License.
overflow-y: hidden;
}
/* Spoiler stuff */
.mx_EventTile_spoiler {
cursor: pointer;
}
.mx_EventTile_spoiler_reason {
color: $event-timestamp-color;
font-size: 11px;
}
.mx_EventTile_spoiler_content {
background-color: black;
}
.mx_EventTile_spoiler_content > span {
visibility: hidden;
}
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content {
background-color: initial;
}
.mx_EventTile_spoiler.visible > .mx_EventTile_spoiler_content > span {
visibility: visible;
}
/* End to end encryption stuff */
.mx_EventTile:hover .mx_EventTile_e2eIcon {
opacity: 1;