popup.css 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  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. }
  387. /* Save Channel view styles */
  388. .save-channel-container {
  389. background: #fff;
  390. border-radius: 8px;
  391. padding: 16px;
  392. margin-bottom: 16px;
  393. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  394. min-height: 300px;
  395. }
  396. .save-channel-content {
  397. display: flex;
  398. flex-direction: column;
  399. gap: 20px;
  400. }
  401. .curl-command-section {
  402. display: flex;
  403. flex-direction: column;
  404. gap: 12px;
  405. }
  406. .curl-field-container {
  407. display: flex;
  408. flex-direction: column;
  409. gap: 8px;
  410. }
  411. .curl-command-field {
  412. width: 100%;
  413. min-height: 120px;
  414. padding: 12px;
  415. border: 1px solid #ddd;
  416. border-radius: 6px;
  417. font-family: monospace;
  418. font-size: 12px;
  419. background-color: #f8f9fa;
  420. resize: vertical;
  421. line-height: 1.4;
  422. }
  423. .copy-curl-btn {
  424. align-self: flex-start;
  425. background-color: #4285f4;
  426. color: white;
  427. padding: 8px 16px;
  428. border-radius: 4px;
  429. font-size: 14px;
  430. font-weight: 500;
  431. transition: all 0.2s ease;
  432. }
  433. .copy-curl-btn:hover {
  434. background-color: #3367d6;
  435. transform: translateY(-1px);
  436. box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
  437. }
  438. .copy-curl-btn:active {
  439. background-color: #2d5aa0;
  440. transform: translateY(0);
  441. box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
  442. transition: all 0.1s ease;
  443. }
  444. .copy-curl-btn:disabled {
  445. background-color: #ccc;
  446. color: #888;
  447. cursor: not-allowed;
  448. transform: none;
  449. box-shadow: none;
  450. }
  451. .copy-curl-btn:disabled:hover {
  452. background-color: #ccc;
  453. transform: none;
  454. box-shadow: none;
  455. }
  456. .interval-section {
  457. display: flex;
  458. flex-direction: column;
  459. gap: 8px;
  460. }
  461. .interval-label {
  462. font-size: 14px;
  463. font-weight: 500;
  464. color: #333;
  465. }
  466. .interval-input {
  467. width: 100px;
  468. padding: 8px 12px;
  469. border: 1px solid #ddd;
  470. border-radius: 6px;
  471. font-size: 14px;
  472. font-family: inherit;
  473. background-color: #fff;
  474. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  475. }
  476. .interval-input:focus {
  477. outline: none;
  478. border-color: #4285f4;
  479. box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
  480. }
  481. .interval-input:invalid {
  482. border-color: #f44336;
  483. }
  484. .category-section h3 {
  485. margin-bottom: 12px;
  486. color: #333;
  487. font-size: 16px;
  488. font-weight: 500;
  489. }
  490. .category-buttons {
  491. display: flex;
  492. gap: 8px;
  493. flex-wrap: wrap;
  494. }
  495. .category-btn {
  496. padding: 8px 16px;
  497. border: 2px solid #ddd;
  498. border-radius: 6px;
  499. background-color: #f8f9fa;
  500. color: #666;
  501. font-size: 14px;
  502. font-weight: 500;
  503. cursor: pointer;
  504. transition: all 0.2s ease;
  505. }
  506. .category-btn:hover {
  507. border-color: #4285f4;
  508. background-color: #e8f0fe;
  509. color: #4285f4;
  510. }
  511. .category-btn.active {
  512. border-color: #4285f4;
  513. background-color: #4285f4;
  514. color: white;
  515. }
  516. .category-btn.active:hover {
  517. border-color: #3367d6;
  518. background-color: #3367d6;
  519. }
  520. .save-channel-notice {
  521. background-color: #fff3cd;
  522. border: 1px solid #ffeaa7;
  523. border-radius: 6px;
  524. padding: 12px;
  525. color: #856404;
  526. font-size: 14px;
  527. }
  528. .save-channel-notice p {
  529. margin: 0;
  530. }
  531. /* Save Channel button styles */
  532. .save-channel-btn {
  533. background-color: #ff6d01;
  534. color: white;
  535. padding: 8px 12px;
  536. border-radius: 4px;
  537. font-size: 14px;
  538. font-weight: 500;
  539. }
  540. .save-channel-btn:hover {
  541. background-color: #e55a00;
  542. }
  543. /* Wiki/Insp view styles */
  544. .wiki-insp-container {
  545. background: #fff;
  546. border-radius: 8px;
  547. padding: 16px;
  548. margin-bottom: 16px;
  549. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  550. min-height: 300px;
  551. }
  552. .wiki-insp-content {
  553. display: flex;
  554. flex-direction: column;
  555. gap: 20px;
  556. }
  557. .wikitext-command-section {
  558. display: flex;
  559. flex-direction: column;
  560. gap: 12px;
  561. }
  562. .wikitext-command-field {
  563. width: 100%;
  564. min-height: 120px;
  565. padding: 12px;
  566. border: 1px solid #ddd;
  567. border-radius: 6px;
  568. font-family: monospace;
  569. font-size: 12px;
  570. background-color: #f8f9fa;
  571. resize: vertical;
  572. line-height: 1.4;
  573. }
  574. .timestamp-controls {
  575. display: flex;
  576. align-items: center;
  577. justify-content: space-between;
  578. gap: 12px;
  579. padding: 8px 0;
  580. }
  581. .timestamp-checkbox-container {
  582. display: flex;
  583. align-items: center;
  584. }
  585. .timestamp-checkbox-label {
  586. display: flex;
  587. align-items: center;
  588. gap: 8px;
  589. font-size: 14px;
  590. color: #333;
  591. cursor: pointer;
  592. user-select: none;
  593. }
  594. .timestamp-checkbox {
  595. width: 16px;
  596. height: 16px;
  597. cursor: pointer;
  598. accent-color: #4285f4;
  599. }
  600. .refresh-timestamp-btn {
  601. background-color: #34a853;
  602. color: white;
  603. padding: 6px 12px;
  604. border-radius: 4px;
  605. font-size: 12px;
  606. font-weight: 500;
  607. transition: all 0.2s ease;
  608. white-space: nowrap;
  609. }
  610. .refresh-timestamp-btn:hover:not(:disabled) {
  611. background-color: #2d7d3a;
  612. transform: translateY(-1px);
  613. box-shadow: 0 2px 6px rgba(52, 168, 83, 0.3);
  614. }
  615. .refresh-timestamp-btn:active {
  616. background-color: #1e5f2a;
  617. transform: translateY(0);
  618. box-shadow: 0 1px 3px rgba(52, 168, 83, 0.4);
  619. transition: all 0.1s ease;
  620. }
  621. .refresh-timestamp-btn:disabled {
  622. background-color: #ccc;
  623. color: #888;
  624. cursor: not-allowed;
  625. transform: none;
  626. box-shadow: none;
  627. }
  628. .refresh-timestamp-btn:disabled:hover {
  629. background-color: #ccc;
  630. transform: none;
  631. box-shadow: none;
  632. }
  633. .copy-wikitext-btn {
  634. width: 100%;
  635. background-color: #4285f4;
  636. color: white;
  637. padding: 10px 16px;
  638. border-radius: 6px;
  639. font-size: 14px;
  640. font-weight: 500;
  641. transition: all 0.2s ease;
  642. }
  643. .copy-wikitext-btn:hover:not(:disabled) {
  644. background-color: #3367d6;
  645. transform: translateY(-1px);
  646. box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  647. }
  648. .copy-wikitext-btn:active {
  649. background-color: #2d5aa0;
  650. transform: translateY(0);
  651. box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
  652. transition: all 0.1s ease;
  653. }
  654. .copy-wikitext-btn:disabled {
  655. background-color: #ccc;
  656. color: #888;
  657. cursor: not-allowed;
  658. transform: none;
  659. box-shadow: none;
  660. }
  661. .copy-wikitext-btn:disabled:hover {
  662. background-color: #ccc;
  663. transform: none;
  664. box-shadow: none;
  665. }
  666. .wiki-insp-notice {
  667. background-color: #fff3cd;
  668. border: 1px solid #ffeaa7;
  669. border-radius: 6px;
  670. padding: 12px;
  671. color: #856404;
  672. font-size: 14px;
  673. }
  674. .wiki-insp-notice p {
  675. margin: 0;
  676. }
  677. /* Wiki/Insp button styles */
  678. .wiki-insp-btn {
  679. background-color: #9c27b0;
  680. color: white;
  681. padding: 8px 12px;
  682. border-radius: 4px;
  683. font-size: 14px;
  684. font-weight: 500;
  685. }
  686. .wiki-insp-btn:hover {
  687. background-color: #7b1fa2;
  688. }