obsidian-sample-plugin/styles.css

98 lines
2.2 KiB
CSS

/*
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
If your plugin does not need CSS, delete this file.
*/
a:has(.openGraphPreview) {
display: block;
padding-right: 0;
text-decoration: none;
background-image: none;
}
a:has(.openGraphPreview):hover {
text-decoration: none;
}
.openGraphPreview {
height: 100%;
display: flex;
flex-direction: column;
gap: 8px;
border: var(--cards-border-width) solid var(--background-modifier-border);
background: none;
color: var(--text-normal);
text-decoration: none;
background: none;
}
.openGraphPreview:hover {
text-decoration: none;
color: var(--text-normal);
}
.openGraphPreview .se-oglink-thumbnail {
flex-shrink: 0;
width: 100%;
height: initial;
overflow: hidden;
}
.openGraphPreview .se-oglink-thumbnail-resource {
height: 100%;
object-fit: cover !important;
border-radius: 0 !important;
}
.openGraphPreview .se-oglink-info-container {
display: flex;
flex-direction: column;
justify-content: center;
gap: 8px;
overflow: auto;
padding: var(--size-4-4) var(--size-4-2);
}
.openGraphPreview .se-oglink-info {
display: block;
text-decoration: none;
color: var(--text-normal);
}
.openGraphPreview .se-oglink-summary {
font-size: 0.8rem;
overflow: hidden;
-webkit-line-clamp: 2;
display: box;
display: -webkit-box;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
white-space: normal;
text-decoration: none;
color: var(--text-normal);
}
.openGraphPreview .se-oglink-url {
font-size: 0.8rem;
margin-block: 0 !important;
color: var(--link-color);
text-decoration: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.table-cards table .openGraphPreview,
.cards table .openGraphPreview {
flex-direction: column;
border: none;
}
.table-cards table .openGraphPreview .se-oglink-thumbnail,
.cards table .openGraphPreview .se-oglink-thumbnail {
width: 100%;
}
@media (min-width: 500px) {
.openGraphPreview {
flex-direction: row;
}
.openGraphPreview .se-oglink-thumbnail {
width: 150px;
}
}