popup.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: Arial, sans-serif;
  8. background-color: #f5f5f5;
  9. color: #333;
  10. width: 400px;
  11. max-height: 600px;
  12. overflow-y: auto;
  13. }
  14. #app {
  15. padding: 16px;
  16. }
  17. header {
  18. margin-bottom: 16px;
  19. text-align: center;
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. position: relative;
  24. }
  25. h1 {
  26. font-size: 20px;
  27. color: #333;
  28. }
  29. h2 {
  30. font-size: 16px;
  31. margin-bottom: 8px;
  32. padding-bottom: 4px;
  33. border-bottom: 1px solid #ddd;
  34. }
  35. .playlist-name-clickable {
  36. cursor: pointer;
  37. color: #4285f4;
  38. transition: color 0.2s ease;
  39. }
  40. .playlist-name-clickable:hover {
  41. color: #3367d6;
  42. text-decoration: underline;
  43. }
  44. .playlist {
  45. background: #fff;
  46. border-radius: 8px;
  47. padding: 12px;
  48. margin-bottom: 16px;
  49. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  50. }
  51. .video-item {
  52. display: flex;
  53. justify-content: space-between;
  54. align-items: center;
  55. padding: 8px 0;
  56. border-bottom: 1px solid #eee;
  57. }
  58. .video-item:last-child {
  59. border-bottom: none;
  60. }
  61. .video-title {
  62. flex: 1;
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. white-space: nowrap;
  66. }
  67. a.video-title {
  68. text-decoration: none;
  69. color: #333;
  70. }
  71. .video-actions {
  72. display: flex;
  73. gap: 8px;
  74. }
  75. button {
  76. padding: 4px 8px;
  77. border: none;
  78. border-radius: 4px;
  79. cursor: pointer;
  80. font-size: 12px;
  81. }
  82. button:hover {
  83. opacity: 0.9;
  84. }
  85. .empty-playlist {
  86. padding: 8px 0;
  87. color: #888;
  88. font-style: italic;
  89. font-size: 14px;
  90. }
  91. .current-video {
  92. background-color: #e3f2fd;
  93. border-left: 3px solid #4285f4;
  94. padding-left: 8px;
  95. font-weight: bold;
  96. }
  97. .done-video {
  98. color: #999;
  99. opacity: 0.6;
  100. }
  101. .done-video .video-title {
  102. text-decoration: line-through;
  103. }
  104. /* Truncated videos indicator */
  105. .truncated-videos {
  106. padding: 8px 0 12px 8px;
  107. margin-bottom: 12px;
  108. border-bottom: 1px solid #eee;
  109. cursor: pointer;
  110. color: #888;
  111. font-style: italic;
  112. font-size: 14px;
  113. transition: color 0.2s ease, background-color 0.2s ease;
  114. }
  115. .truncated-videos:hover {
  116. color: #4285f4;
  117. background-color: #f8f9fa;
  118. }
  119. /* More menu styles */
  120. .more-menu-container {
  121. position: relative;
  122. }
  123. .more-btn {
  124. background-color: #666;
  125. color: white;
  126. font-size: 14px;
  127. padding: 4px 8px;
  128. border-radius: 4px;
  129. font-weight: bold;
  130. }
  131. .more-menu {
  132. position: absolute;
  133. right: 0;
  134. top: 100%;
  135. background: white;
  136. border: 1px solid #ddd;
  137. border-radius: 4px;
  138. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  139. z-index: 1000;
  140. min-width: 100px;
  141. margin-top: 4px;
  142. }
  143. .menu-item {
  144. display: block;
  145. width: 100%;
  146. padding: 8px 12px;
  147. border: none;
  148. background: none;
  149. text-align: left;
  150. cursor: pointer;
  151. font-size: 12px;
  152. border-radius: 0;
  153. }
  154. .menu-item:hover {
  155. background-color: #f5f5f5;
  156. }
  157. .remove-item {
  158. color: #f44336;
  159. }
  160. .remove-item:hover {
  161. background-color: #ffeaea;
  162. }
  163. /* Back button styles */
  164. .back-btn {
  165. background-color: #4285f4;
  166. color: white;
  167. padding: 8px 12px;
  168. border-radius: 4px;
  169. font-size: 14px;
  170. margin-bottom: 8px;
  171. }
  172. .back-btn:hover {
  173. background-color: #3367d6;
  174. }
  175. /* Arrow back button styles */
  176. .back-btn-arrow {
  177. position: absolute;
  178. left: 0;
  179. background: none;
  180. border: none;
  181. font-size: 20px;
  182. color: #4285f4;
  183. cursor: pointer;
  184. padding: 8px 12px;
  185. border-radius: 50%;
  186. transition: background-color 0.2s ease, color 0.2s ease;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. width: 36px;
  191. height: 36px;
  192. }
  193. .back-btn-arrow:hover {
  194. background-color: #e8f0fe;
  195. color: #3367d6;
  196. }
  197. /* History view styles */
  198. .history-container {
  199. background: #fff;
  200. border-radius: 8px;
  201. padding: 12px;
  202. margin-bottom: 16px;
  203. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  204. min-height: 200px;
  205. }
  206. .history-list {
  207. display: flex;
  208. flex-direction: column;
  209. gap: 16px;
  210. }
  211. .history-item {
  212. border-bottom: 1px solid #eee;
  213. padding-bottom: 12px;
  214. }
  215. .history-item:last-child {
  216. border-bottom: none;
  217. padding-bottom: 0;
  218. }
  219. .history-video-info {
  220. margin-bottom: 8px;
  221. }
  222. .history-video-title {
  223. display: block;
  224. font-weight: bold;
  225. color: #333;
  226. text-decoration: none;
  227. margin-bottom: 4px;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. white-space: nowrap;
  231. }
  232. .history-video-title:hover {
  233. color: #4285f4;
  234. }
  235. .history-video-id {
  236. font-size: 12px;
  237. color: #4285f4;
  238. font-family: monospace;
  239. text-decoration: none;
  240. cursor: pointer;
  241. transition: color 0.2s ease;
  242. }
  243. .history-video-id:hover {
  244. color: #3367d6;
  245. text-decoration: underline;
  246. }
  247. .history-tags {
  248. margin-top: 6px;
  249. display: flex;
  250. gap: 6px;
  251. flex-wrap: wrap;
  252. }
  253. .tag-chip {
  254. font-size: 10px;
  255. padding: 2px 8px;
  256. border: 1px solid #ddd;
  257. border-radius: 12px;
  258. background-color: #f8f9fa;
  259. color: #666;
  260. cursor: pointer;
  261. transition: all 0.2s ease;
  262. }
  263. .tag-chip:hover {
  264. background-color: #e8f0fe;
  265. border-color: #4285f4;
  266. color: #4285f4;
  267. }
  268. .tag-chip.active {
  269. background-color: #4285f4;
  270. border-color: #4285f4;
  271. color: white;
  272. }
  273. .tag-chip.active:hover {
  274. background-color: #3367d6;
  275. border-color: #3367d6;
  276. }
  277. .history-events {
  278. display: flex;
  279. flex-direction: column;
  280. gap: 4px;
  281. margin-left: 12px;
  282. }
  283. .history-event {
  284. display: flex;
  285. align-items: center;
  286. gap: 8px;
  287. font-size: 12px;
  288. color: #555;
  289. }
  290. .event-action {
  291. font-weight: bold;
  292. min-width: 60px;
  293. }
  294. .event-position {
  295. color: #666;
  296. font-family: monospace;
  297. min-width: 70px;
  298. }
  299. .event-timestamp {
  300. color: #888;
  301. font-size: 11px;
  302. margin-left: auto;
  303. }
  304. .empty-history {
  305. text-align: center;
  306. padding: 40px 0;
  307. color: #888;
  308. font-style: italic;
  309. }
  310. /* History button styles */
  311. .history-btn {
  312. background-color: #34a853;
  313. color: white;
  314. padding: 8px 12px;
  315. border-radius: 4px;
  316. font-size: 14px;
  317. }
  318. .history-btn:hover {
  319. background-color: #2d7d3a;
  320. }
  321. /* Playlist view styles */
  322. .playlist-view-container {
  323. background: #fff;
  324. border-radius: 8px;
  325. padding: 12px;
  326. margin-bottom: 16px;
  327. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  328. min-height: 200px;
  329. }
  330. .playlist-full-view {
  331. display: flex;
  332. flex-direction: column;
  333. gap: 0;
  334. }
  335. .playlist-full-view .video-item {
  336. display: flex;
  337. justify-content: space-between;
  338. align-items: center;
  339. padding: 8px 0;
  340. border-bottom: 1px solid #eee;
  341. }
  342. .playlist-full-view .video-item:last-child {
  343. border-bottom: none;
  344. }