Add audio embed feature
This commit is contained in:
@ -219,6 +219,9 @@ code {
|
||||
background-color: var(--card-color);
|
||||
}
|
||||
}
|
||||
.links-nextprev > .postlist-item-container {
|
||||
grid-column: var(--span-grid);
|
||||
}
|
||||
header,
|
||||
footer,
|
||||
main {
|
||||
@ -448,6 +451,52 @@ table th {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
/* Audio Player */
|
||||
wc-mplayer {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
wc-mplayer::part(artist) {
|
||||
font-size: var(--meta-font-size);
|
||||
}
|
||||
|
||||
wc-mplayer::part(cover),
|
||||
wc-mplayer::part(coverContainer) {
|
||||
width: var(--space-3xl);
|
||||
height: var(--space-3xl);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
wc-mplayer::part(captionAndPlayer) {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
wc-mplayer::part(main) {
|
||||
border-radius: var(--border-radius);
|
||||
display: flex;
|
||||
gap: var(--space-s);
|
||||
margin: 0;
|
||||
padding: var(--space-m);
|
||||
}
|
||||
|
||||
wc-mplayer::part(player) {
|
||||
align-self: flex-end;
|
||||
border-radius: var(--border-radius);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
wc-mplayer::part(title) {
|
||||
font-size: var(--step-1);
|
||||
font-variation-settings:
|
||||
"opsz" 50,
|
||||
"wght" 350,
|
||||
"SOFT" 20,
|
||||
"WONK" 1;
|
||||
}
|
||||
|
||||
/* Comments */
|
||||
#comments {
|
||||
grid-column: var(--span-grid);
|
||||
|
@ -1,4 +1,5 @@
|
||||
import './webComponents/card.js';
|
||||
import './webComponents/profilePic.js';
|
||||
import './webComponents/comment.js';
|
||||
import './webComponents/toot.js';
|
||||
import "./webComponents/card.js";
|
||||
import "./webComponents/profilePic.js";
|
||||
import "./webComponents/comment.js";
|
||||
import "./webComponents/toot.js";
|
||||
import "./webComponents/musicPlayer.js";
|
||||
|
Reference in New Issue
Block a user