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

114 lines
2.1 KiB
CSS

.row {
display: flex;
flex-direction: row;
justify-content: center;
text-align: center;
padding-top: 20px;
}
.post {
width: 180px;
position: relative;
max-height: 320px;
padding: 10px 0 3px 0;
vertical-align: top;
display: inline-block;
overflow: hidden;
}
.mediaPaddingWrapper {
padding-bottom: 5px;
display: inline-flex;
position: relative;
}
.threadIcons {
position: absolute;
top: 2px;
right: 2px;
}
.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");
}
.mediaWrapper {
background-color: var(--media-thumbnail-background-color);
width: var(--width);
height: var(--height);
display: inline-flex;
justify-content: center;
align-items: center;
}
.post img, .post video, .post audio {
box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
max-width: 150px;
max-height: 150px;
}
.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;
}
.postMenuBtnPadding {
left: 5px;
top: 5px;
position: relative;
}
.postMenuBtn {
position: absolute;
bottom: 5px;
line-height: 1em;
color: var(--catalog-post-menu-btn-color);
opacity: 0;
transition: transform 0.1s;
}
.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;
}