gnoxnahte_obsidian-auto-embed/styles.css
GnoxNahte ca27fbf44d Add back reddit auto resize but with conditions
Only resize if there's only 1 reddit embed. Or the user can opt to resize automatically in the settings.
2024-03-06 15:35:40 +08:00

71 lines
No EOL
1.3 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.
*/
iframe.auto-embed {
max-width: 100%;
/* min-height: 500px; */
}
iframe.small.auto-embed {
min-height: 300px;
}
iframe.large.auto-embed {
min-height: 1000px;
}
iframe.largest.auto-embed {
min-height: calc(100vh - 100px);
}
.auto-embed.twitter-embed {
width: 600px;
height: 350px;
min-height: unset;
}
.auto-embed.youtube-shorts-embed {
height: 560px;
aspect-ratio: 9/16;
}
.auto-embed.youtube-embed {
/* Default size of YouTube videos when using Share > Embed option on YoutTube's website */
/* width: 560px;
height: 315px; */
width: 100%;
aspect-ratio: 16 / 9;
}
.auto-embed.error-embed {
color: var(--text-error);
}
.auto-embed.steam-embed {
/* Default size of Steam previews when using Embed option on Steam's website */
/* width: 646px;
height: 190px; */
width: 100%;
height: 190px;
/* Even if height is set to very big and width is small, it doesn't change the height,
and height stays at 190px. So set a fixed height.*/
}
.auto-embed.reddit-embed {
min-height: 240px;
width: 100%;
/* height: 500px; */
}
.auto-embed.codepen-embed {
width: 100%;
min-height: 300px;
}