mirror of
https://github.com/revoltchat/revite.git
synced 2025-01-16 01:11:32 -05:00
98 lines
2 KiB
SCSS
98 lines
2 KiB
SCSS
|
.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;
|
||
|
}
|
||
|
}
|
||
|
}
|