Skapade stöd för att kunna stil upp pluginet med en egen stilmalla
This commit is contained in:
15
blocks/block.json
Normal file
15
blocks/block.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "spotify-recent-oauth/recent-track",
|
||||
"title": "Spotify Recent Track",
|
||||
"category": "widgets",
|
||||
"icon": "format-audio",
|
||||
"description": "Visar din senast spelade låt från Spotify.",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"editorScript": "sro-block-js",
|
||||
"style": "sro-style",
|
||||
"editorStyle": "sro-editor-style",
|
||||
"render": "sro_render_recent_track"
|
||||
}
|
||||
4
blocks/editor.css
Normal file
4
blocks/editor.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.sro-container {
|
||||
border: 1px dashed #888;
|
||||
padding: 10px;
|
||||
}
|
||||
23
blocks/style.css
Normal file
23
blocks/style.css
Normal file
@@ -0,0 +1,23 @@
|
||||
.sro-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 10px;
|
||||
background: #111;
|
||||
color: #fff;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.sro-album img {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.sro-info {
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.sro-track {
|
||||
font-weight: bold;
|
||||
}
|
||||
Reference in New Issue
Block a user