popup.css 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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. .non-contiguous-done-video {
  105. opacity: 0.7;
  106. background-color: rgba(128, 128, 128, 0.05);
  107. }
  108. .non-contiguous-done-video .video-title {
  109. color: #666;
  110. }
  111. /* Truncated videos indicator */
  112. .truncated-videos {
  113. padding: 8px 0 12px 8px;
  114. margin-bottom: 12px;
  115. border-bottom: 1px solid #eee;
  116. cursor: pointer;
  117. color: #888;
  118. font-style: italic;
  119. font-size: 14px;
  120. transition: color 0.2s ease, background-color 0.2s ease;
  121. }
  122. .truncated-videos:hover {
  123. color: #4285f4;
  124. background-color: #f8f9fa;
  125. }
  126. /* More menu styles */
  127. .more-menu-container {
  128. position: relative;
  129. }
  130. .more-btn {
  131. background-color: #666;
  132. color: white;
  133. font-size: 14px;
  134. padding: 4px 8px;
  135. border-radius: 4px;
  136. font-weight: bold;
  137. }
  138. .more-menu {
  139. position: absolute;
  140. right: 0;
  141. top: 100%;
  142. background: white;
  143. border: 1px solid #ddd;
  144. border-radius: 4px;
  145. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  146. z-index: 1000;
  147. min-width: 100px;
  148. margin-top: 4px;
  149. }
  150. .menu-item {
  151. display: block;
  152. width: 100%;
  153. padding: 8px 12px;
  154. border: none;
  155. background: none;
  156. text-align: left;
  157. cursor: pointer;
  158. font-size: 12px;
  159. border-radius: 0;
  160. }
  161. .menu-item:hover {
  162. background-color: #f5f5f5;
  163. }
  164. .remove-item {
  165. color: #f44336;
  166. }
  167. .remove-item:hover {
  168. background-color: #ffeaea;
  169. }
  170. /* Back button styles */
  171. .back-btn {
  172. background-color: #4285f4;
  173. color: white;
  174. padding: 8px 12px;
  175. border-radius: 4px;
  176. font-size: 14px;
  177. margin-bottom: 8px;
  178. }
  179. .back-btn:hover {
  180. background-color: #3367d6;
  181. }
  182. /* Arrow back button styles */
  183. .back-btn-arrow {
  184. position: absolute;
  185. left: 0;
  186. background: none;
  187. border: none;
  188. font-size: 20px;
  189. color: #4285f4;
  190. cursor: pointer;
  191. padding: 8px 12px;
  192. border-radius: 50%;
  193. transition: background-color 0.2s ease, color 0.2s ease;
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. width: 36px;
  198. height: 36px;
  199. }
  200. .back-btn-arrow:hover {
  201. background-color: #e8f0fe;
  202. color: #3367d6;
  203. }
  204. /* History view styles */
  205. .history-container {
  206. background: #fff;
  207. border-radius: 8px;
  208. padding: 12px;
  209. margin-bottom: 16px;
  210. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  211. min-height: 200px;
  212. }
  213. .history-list {
  214. display: flex;
  215. flex-direction: column;
  216. gap: 16px;
  217. }
  218. .history-item {
  219. border-bottom: 1px solid #eee;
  220. padding-bottom: 12px;
  221. }
  222. .history-item:last-child {
  223. border-bottom: none;
  224. padding-bottom: 0;
  225. }
  226. .history-video-info {
  227. margin-bottom: 8px;
  228. }
  229. .history-video-title {
  230. display: block;
  231. font-weight: bold;
  232. color: #333;
  233. text-decoration: none;
  234. margin-bottom: 4px;
  235. overflow: hidden;
  236. text-overflow: ellipsis;
  237. white-space: nowrap;
  238. }
  239. .history-video-title:hover {
  240. color: #4285f4;
  241. }
  242. .history-video-id {
  243. font-size: 12px;
  244. color: #4285f4;
  245. font-family: monospace;
  246. text-decoration: none;
  247. cursor: pointer;
  248. transition: color 0.2s ease;
  249. }
  250. .history-video-id:hover {
  251. color: #3367d6;
  252. text-decoration: underline;
  253. }
  254. .history-tags {
  255. margin-top: 6px;
  256. display: flex;
  257. gap: 6px;
  258. flex-wrap: wrap;
  259. }
  260. .tag-chip {
  261. font-size: 10px;
  262. padding: 2px 8px;
  263. border: 1px solid #ddd;
  264. border-radius: 12px;
  265. background-color: #f8f9fa;
  266. color: #666;
  267. cursor: pointer;
  268. transition: all 0.2s ease;
  269. }
  270. .tag-chip:hover {
  271. background-color: #e8f0fe;
  272. border-color: #4285f4;
  273. color: #4285f4;
  274. }
  275. .tag-chip.active {
  276. background-color: #4285f4;
  277. border-color: #4285f4;
  278. color: white;
  279. }
  280. .tag-chip.active:hover {
  281. background-color: #3367d6;
  282. border-color: #3367d6;
  283. }
  284. .history-events {
  285. display: flex;
  286. flex-direction: column;
  287. gap: 4px;
  288. margin-left: 12px;
  289. }
  290. .history-event {
  291. display: flex;
  292. align-items: center;
  293. gap: 8px;
  294. font-size: 12px;
  295. color: #555;
  296. }
  297. .event-action {
  298. font-weight: bold;
  299. min-width: 60px;
  300. }
  301. .event-position {
  302. color: #666;
  303. font-family: monospace;
  304. min-width: 70px;
  305. }
  306. .event-timestamp {
  307. color: #888;
  308. font-size: 11px;
  309. margin-left: auto;
  310. }
  311. .empty-history {
  312. text-align: center;
  313. padding: 40px 0;
  314. color: #888;
  315. font-style: italic;
  316. }
  317. /* History button styles */
  318. .history-btn {
  319. background-color: #34a853;
  320. color: white;
  321. padding: 8px 12px;
  322. border-radius: 4px;
  323. font-size: 14px;
  324. }
  325. .history-btn:hover {
  326. background-color: #2d7d3a;
  327. }
  328. /* Playlist view styles */
  329. .playlist-view-container {
  330. background: #fff;
  331. border-radius: 8px;
  332. padding: 12px;
  333. margin-bottom: 16px;
  334. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  335. min-height: 200px;
  336. }
  337. .playlist-full-view {
  338. display: flex;
  339. flex-direction: column;
  340. gap: 0;
  341. }
  342. .playlist-full-view .video-item {
  343. display: flex;
  344. justify-content: space-between;
  345. align-items: center;
  346. padding: 8px 0;
  347. border-bottom: 1px solid #eee;
  348. }
  349. .playlist-full-view .video-item:last-child {
  350. border-bottom: none;
  351. }
  352. /* Add current page button styles */
  353. .add-current-page-container {
  354. margin-top: 16px;
  355. padding-top: 12px;
  356. border-top: 1px solid #eee;
  357. }
  358. .add-current-page-btn {
  359. width: 100%;
  360. background-color: #4285f4;
  361. color: white;
  362. padding: 10px 16px;
  363. border-radius: 6px;
  364. font-size: 14px;
  365. font-weight: 500;
  366. transition: all 0.2s ease;
  367. }
  368. .add-current-page-btn:hover:not(:disabled) {
  369. background-color: #3367d6;
  370. transform: translateY(-1px);
  371. box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  372. }
  373. .add-current-page-btn:disabled,
  374. .add-current-page-btn.disabled {
  375. background-color: #ccc;
  376. color: #888;
  377. cursor: not-allowed;
  378. transform: none;
  379. box-shadow: none;
  380. }
  381. .add-current-page-btn:disabled:hover,
  382. .add-current-page-btn.disabled:hover {
  383. background-color: #ccc;
  384. transform: none;
  385. box-shadow: none;
  386. }