Files
5chan/src/components/catalog-row/catalog-row.module.css
T

114 lines
2.1 KiB
CSS
Raw Normal View History

2024-04-12 14:28:06 +02:00
.row {
display: flex;
flex-direction: row;
2024-04-12 17:47:30 +02:00
justify-content: center;
text-align: center;
padding-top: 20px;
2024-04-12 14:28:06 +02:00
}
.post {
width: 180px;
2024-04-12 17:47:30 +02:00
position: relative;
max-height: 320px;
padding: 10px 0 3px 0;
vertical-align: top;
display: inline-block;
2024-04-12 14:28:06 +02:00
overflow: hidden;
}
2024-04-12 17:47:30 +02:00
.mediaPaddingWrapper {
padding-bottom: 5px;
display: inline-flex;
2024-04-12 20:48:46 +02:00
position: relative;
}
.threadIcons {
position: absolute;
top: 2px;
right: 2px;
2024-04-12 20:48:46 +02:00
}
.threadIcons span {
width: 16px;
height: 16px;
display: inline-block;
border: none;
background-repeat: no-repeat;
background-position: center;
image-rendering: pixelated;
}
.threadIcons .stickyIcon {
background-image: url("/public/assets/icons/sticky.gif");
}
.threadIcons .closedIcon {
background-image: url("/public/assets/icons/closed.gif");
2024-04-12 14:28:06 +02:00
}
.mediaWrapper {
2024-04-12 17:47:30 +02:00
background-color: var(--media-thumbnail-background-color);
width: var(--width);
height: var(--height);
display: inline-flex;
justify-content: center;
align-items: center;
2024-04-12 14:28:06 +02:00
}
2024-04-12 17:47:30 +02:00
.post img, .post video, .post audio {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
max-width: 150px;
max-height: 150px;
2024-04-12 14:28:06 +02:00
}
2024-04-12 17:47:30 +02:00
.meta {
font-size: 11px;
line-height: 8px;
padding: 2px 0 1px 0;
}
.teaser {
display: block;
padding: 0 15px;
overflow: hidden;
word-wrap: break-word;
}
.post a {
color: unset;
text-decoration: none;
}
2024-04-13 13:39:15 +02:00
.postMenuBtnPadding {
left: 5px;
top: 5px;
position: relative;
}
.postMenuBtn {
position: absolute;
2024-04-13 13:39:15 +02:00
bottom: 5px;
line-height: 1em;
color: var(--catalog-post-menu-btn-color);
opacity: 0;
transition: transform 0.1s;
}
2024-04-13 13:39:15 +02:00
.post:hover .postMenuBtn {
opacity: var(--catalog-post-menu-btn-opacity);
}
.post:hover .postMenuBtn:hover {
cursor: pointer;
color: var(--catalog-post-menu-btn-hover-color);
opacity: var(--catalog-post-menu-btn-hover-opacity);
}
.postMenuBtn {
/* preserve unicode triangle for button, some browsers will use an emoji */
font-variant: normal;
font-feature-settings: "tnum";
-webkit-font-feature-settings: "tnum"; /* Chrome, Opera, and Safari */
-moz-font-feature-settings: "tnum"; /* Firefox */
font-variant-numeric: tabular-nums;
2024-04-12 17:47:30 +02:00
}