add media component

This commit is contained in:
plebeius.eth
2024-03-29 13:54:11 +01:00
parent 4abd08df7b
commit de1547d261
7 changed files with 263 additions and 14 deletions
+31
View File
@@ -0,0 +1,31 @@
.thumbnail {
float: left;
padding: 3px 20px 5px 0;
width: var(--width, 250px);
height: var(--height, 250px);
}
.thumbnailHidden {
display: none;
}
.thumbnailVisible {
display: block;
}
.thumbnailWrapper {
background-color: var(--background-thumbnail);
height: 250px;
width: 250px;
display: inline-block;
}
.transparentThumbnailWrapper {
background-color: transparent;
opacity: 1;
}
.thumbnail img, .thumbnail video {
width: 100%;
height: 100%;
}