Skip to content

armgit / my-yt

Public Imported from GitHub
0

A clean and minimal youtube frontend, without all the ads and whistles

JavaScript

style details

Christian Feif111831b2a65
diff --git a/index.html b/index.html
index 68bc1b0..182e9fc 100644
--- a/index.html
+++ b/index.html
@@ -150,6 +150,28 @@
padding: 1em 0.5em;
margin-bottom: 3rem;
}
+
+ details {
+ padding: 10px;
+ border: 5px solid #f7f7f7;
+ border-radius: 3px;
+ }
+
+ details {
+ transition: 0.2s background linear;
+ }
+
+ details:hover {
+ /* background: #eaeaea; */
+ }
+
+ details > summary {
+ transition: color 1s;
+ }
+
+ details[open] > summary {
+ color: #171717;
+ }
</style>
</head>
<body>
@@ -264,7 +286,7 @@
$channelSection.open = store.get(store.foldedChannelsKey)
$channelSection.dataset['channel'] = name
$channelSection.classList.add('channel-details')
- $channelSection.innerHTML = `<summary>${name}</summary><h2>${name}</h2>`
+ $channelSection.innerHTML = `<summary>${name}</summary>`
$channelSection.appendChild(channelVideosContents(videos))
$channelsContainer.appendChild($channelSection)
}