2021-06-20 17:09:18 -04:00
|
|
|
.embed {
|
|
|
|
margin: .2em 0;
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.image {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.website {
|
|
|
|
gap: 6px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
> div:nth-child(1) {
|
|
|
|
gap: 6px;
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
border-inline-start-width: 4px;
|
|
|
|
border-inline-start-style: solid;
|
|
|
|
|
|
|
|
padding: 12px;
|
|
|
|
width: fit-content;
|
|
|
|
border-radius: 4px;
|
|
|
|
background: var(--primary-header);
|
|
|
|
|
|
|
|
.siteinfo {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 6px;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
.favicon {
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site {
|
|
|
|
font-size: 11px;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
color: var(--secondary-foreground);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.author {
|
|
|
|
font-size: 1em;
|
|
|
|
color: var(--primary-text);
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: 1.1em;
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.description {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 12px;
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
// -webkit-line-clamp: 6;
|
|
|
|
// -webkit-box-orient: vertical;
|
|
|
|
}
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.image {
|
|
|
|
cursor: pointer;
|
|
|
|
object-fit: contain;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-06 03:56:04 -04:00
|
|
|
|
|
|
|
// TODO: unified actions css (see attachment.module.scss for other actions css)
|
|
|
|
.actions {
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"name open" auto
|
|
|
|
"size open" auto
|
|
|
|
/ minmax(20px, 1fr) min-content;
|
|
|
|
|
|
|
|
align-items: center;
|
2021-07-06 09:33:26 -04:00
|
|
|
column-gap: 12px;
|
2021-07-06 03:56:04 -04:00
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
padding: 8px;
|
|
|
|
overflow: none;
|
|
|
|
|
|
|
|
color: var(--foreground);
|
|
|
|
background: var(--secondary-background);
|
|
|
|
|
|
|
|
span {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filesize {
|
|
|
|
grid-area: size;
|
|
|
|
|
|
|
|
font-size: 10px;
|
|
|
|
color: var(--secondary-foreground);
|
|
|
|
}
|
|
|
|
|
|
|
|
.openIcon {
|
|
|
|
grid-area: open;
|
|
|
|
}
|
|
|
|
}
|