Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions xExtension-ColorfulList/extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ final class ColorfulListExtension extends Minz_Extension
{
#[\Override]
public function init(): void {
Minz_View::appendStyle($this->getFileUrl('style.css'));
Minz_View::appendScript($this->getFileUrl('script.js'));
}
}
2 changes: 1 addition & 1 deletion xExtension-ColorfulList/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Colorful List",
"author": "Claud Xiao",
"description": "Colorful Entry Title based on RSS source",
"version": "0.3.2",
"version": "0.3.3",
"entrypoint": "ColorfulList",
"type": "user"
}
2 changes: 1 addition & 1 deletion xExtension-ColorfulList/static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function colorize(mList) {
const entry = document.querySelectorAll('.flux_header');
entry.forEach((e, i) => {
const cl = stringToColour(e.querySelector('.website').textContent) + '12';
e.style.background = cl;
e.style.setProperty('--colorful-list-background', cl);
});
}

Expand Down
7 changes: 7 additions & 0 deletions xExtension-ColorfulList/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.flux_header {
background-color: var(--colorful-list-background) !important;
}

.flux:hover .flux_header .title {
background-color: var(--colorful-list-background) !important;
}