Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add popup.css for styling the media detection popup interface

Tonho474a9817618a
diff --git a/browser-extension/chrome/popup/popup.css b/browser-extension/chrome/popup/popup.css
new file mode 100644
index 00000000..5ffbe758
--- /dev/null
+++ b/browser-extension/chrome/popup/popup.css
@@ -0,0 +1,181 @@
+* { margin: 0; padding: 0; box-sizing: border-box; }
+
+body {
+ width: 360px;
+ max-height: 500px;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ font-size: 13px;
+ color: #e0e0e0;
+ background: #1a1a1a;
+}
+
+.popup {
+ display: flex;
+ flex-direction: column;
+}
+
+.header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 10px 12px;
+ border-bottom: 1px solid #2a2a2a;
+}
+
+.header-left {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.logo { width: 16px; height: 16px; }
+.title { font-weight: 600; font-size: 14px; }
+
+.toggle {
+ position: relative;
+ display: inline-block;
+ width: 36px;
+ height: 20px;
+ cursor: pointer;
+}
+
+.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
+
+.toggle-slider {
+ position: absolute;
+ inset: 0;
+ background: #444;
+ border-radius: 10px;
+ transition: background 0.2s;
+}
+
+.toggle-slider::before {
+ content: "";
+ position: absolute;
+ width: 16px;
+ height: 16px;
+ left: 2px;
+ top: 2px;
+ background: #fff;
+ border-radius: 50%;
+ transition: transform 0.2s;
+}
+
+.toggle input:checked + .toggle-slider { background: #F04E23; }
+.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
+
+.page-action {
+ padding: 8px 12px;
+ border-bottom: 1px solid #2a2a2a;
+}
+
+.send-page-btn {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 8px 12px;
+ background: #F04E23;
+ color: white;
+ border: none;
+ border-radius: 6px;
+ font-size: 13px;
+ font-weight: 500;
+ cursor: pointer;
+}
+
+.send-page-btn:hover { background: #d4421e; }
+
+.platform-name { text-transform: capitalize; }
+
+.media-list {
+ max-height: 350px;
+ overflow-y: auto;
+ padding: 4px 0;
+}
+
+.media-item {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 8px 12px;
+ border-bottom: 1px solid #222;
+}
+
+.media-item:hover { background: #222; }
+
+.media-info {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ min-width: 0;
+ flex: 1;
+}
+
+.media-icon { font-size: 16px; flex-shrink: 0; }
+
+.media-details {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+}
+
+.media-name {
+ font-size: 12px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.media-meta {
+ font-size: 11px;
+ color: #888;
+}
+
+.download-btn {
+ width: 28px;
+ height: 28px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #333;
+ color: #e0e0e0;
+ border: none;
+ border-radius: 6px;
+ font-size: 14px;
+ cursor: pointer;
+ flex-shrink: 0;
+}
+
+.download-btn:hover { background: #F04E23; color: white; }
+
+.empty-state {
+ padding: 24px 12px;
+ text-align: center;
+ color: #666;
+}
+
+.empty-state .hint {
+ font-size: 11px;
+ margin-top: 4px;
+ color: #555;
+}
+
+.footer {
+ padding: 6px 12px;
+ border-top: 1px solid #2a2a2a;
+ min-height: 26px;
+}
+
+.status {
+ font-size: 11px;
+ color: #888;
+}
+
+.hidden { display: none; }
+
+::-webkit-scrollbar { width: 6px; }
+::-webkit-scrollbar-track { background: transparent; }
+::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
+::-webkit-scrollbar-thumb:hover { background: #444; }