popup.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  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. display: flex;
  355. flex-wrap: wrap;
  356. row-gap: 6px;
  357. column-gap: 4px;
  358. margin-bottom: 12px;
  359. }
  360. .add-current-page-btn {
  361. width: fit-content;
  362. background-color: #4285f4;
  363. color: white;
  364. padding: 8px 12px;
  365. border-radius: 4px;
  366. font-size: 14px;
  367. font-weight: 500;
  368. }
  369. .add-current-page-btn:hover:not(:disabled) {
  370. background-color: #3367d6;
  371. }
  372. .add-current-page-btn:disabled,
  373. .add-current-page-btn.disabled {
  374. background-color: #ccc;
  375. color: #888;
  376. cursor: not-allowed;
  377. }
  378. .add-current-page-btn:disabled:hover,
  379. .add-current-page-btn.disabled:hover {
  380. background-color: #ccc;
  381. }
  382. /* Save Channel view styles */
  383. .save-channel-container {
  384. background: #fff;
  385. border-radius: 8px;
  386. padding: 16px;
  387. margin-bottom: 16px;
  388. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  389. min-height: 300px;
  390. }
  391. .save-channel-content {
  392. display: flex;
  393. flex-direction: column;
  394. gap: 20px;
  395. }
  396. .curl-command-section {
  397. display: flex;
  398. flex-direction: column;
  399. gap: 12px;
  400. }
  401. .curl-field-container {
  402. display: flex;
  403. flex-direction: column;
  404. gap: 8px;
  405. }
  406. .curl-command-field {
  407. width: 100%;
  408. min-height: 120px;
  409. padding: 12px;
  410. border: 1px solid #ddd;
  411. border-radius: 6px;
  412. font-family: monospace;
  413. font-size: 12px;
  414. background-color: #f8f9fa;
  415. resize: vertical;
  416. line-height: 1.4;
  417. }
  418. .copy-curl-btn {
  419. align-self: flex-start;
  420. background-color: #4285f4;
  421. color: white;
  422. padding: 8px 16px;
  423. border-radius: 4px;
  424. font-size: 14px;
  425. font-weight: 500;
  426. transition: all 0.2s ease;
  427. }
  428. .copy-curl-btn:hover {
  429. background-color: #3367d6;
  430. transform: translateY(-1px);
  431. box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
  432. }
  433. .copy-curl-btn:active {
  434. background-color: #2d5aa0;
  435. transform: translateY(0);
  436. box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
  437. transition: all 0.1s ease;
  438. }
  439. .copy-curl-btn:disabled {
  440. background-color: #ccc;
  441. color: #888;
  442. cursor: not-allowed;
  443. transform: none;
  444. box-shadow: none;
  445. }
  446. .copy-curl-btn:disabled:hover {
  447. background-color: #ccc;
  448. transform: none;
  449. box-shadow: none;
  450. }
  451. .interval-section {
  452. display: flex;
  453. flex-direction: column;
  454. gap: 8px;
  455. }
  456. .interval-label {
  457. font-size: 14px;
  458. font-weight: 500;
  459. color: #333;
  460. }
  461. .interval-input {
  462. width: 100px;
  463. padding: 8px 12px;
  464. border: 1px solid #ddd;
  465. border-radius: 6px;
  466. font-size: 14px;
  467. font-family: inherit;
  468. background-color: #fff;
  469. transition: border-color 0.2s ease, box-shadow 0.2s ease;
  470. }
  471. .interval-input:focus {
  472. outline: none;
  473. border-color: #4285f4;
  474. box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
  475. }
  476. .interval-input:invalid {
  477. border-color: #f44336;
  478. }
  479. .category-section h3 {
  480. margin-bottom: 12px;
  481. color: #333;
  482. font-size: 16px;
  483. font-weight: 500;
  484. }
  485. .category-buttons {
  486. display: flex;
  487. gap: 8px;
  488. flex-wrap: wrap;
  489. }
  490. .category-btn {
  491. padding: 8px 16px;
  492. border: 2px solid #ddd;
  493. border-radius: 6px;
  494. background-color: #f8f9fa;
  495. color: #666;
  496. font-size: 14px;
  497. font-weight: 500;
  498. cursor: pointer;
  499. transition: all 0.2s ease;
  500. }
  501. .category-btn:hover {
  502. border-color: #4285f4;
  503. background-color: #e8f0fe;
  504. color: #4285f4;
  505. }
  506. .category-btn.active {
  507. border-color: #4285f4;
  508. background-color: #4285f4;
  509. color: white;
  510. }
  511. .category-btn.active:hover {
  512. border-color: #3367d6;
  513. background-color: #3367d6;
  514. }
  515. .save-channel-notice {
  516. background-color: #fff3cd;
  517. border: 1px solid #ffeaa7;
  518. border-radius: 6px;
  519. padding: 12px;
  520. color: #856404;
  521. font-size: 14px;
  522. }
  523. .save-channel-notice p {
  524. margin: 0;
  525. }
  526. /* Save Channel button styles */
  527. .save-channel-btn {
  528. background-color: #ff6d01;
  529. color: white;
  530. padding: 8px 12px;
  531. border-radius: 4px;
  532. font-size: 14px;
  533. font-weight: 500;
  534. }
  535. .save-channel-btn:hover {
  536. background-color: #e55a00;
  537. }
  538. /* Wiki/Insp view styles */
  539. .wiki-insp-container {
  540. background: #fff;
  541. border-radius: 8px;
  542. padding: 16px;
  543. margin-bottom: 16px;
  544. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  545. min-height: 300px;
  546. }
  547. .wiki-insp-content {
  548. display: flex;
  549. flex-direction: column;
  550. gap: 20px;
  551. }
  552. .wikitext-command-section {
  553. display: flex;
  554. flex-direction: column;
  555. gap: 12px;
  556. }
  557. .wikitext-command-field {
  558. width: 100%;
  559. min-height: 120px;
  560. padding: 12px;
  561. border: 1px solid #ddd;
  562. border-radius: 6px;
  563. font-family: monospace;
  564. font-size: 12px;
  565. background-color: #f8f9fa;
  566. resize: vertical;
  567. line-height: 1.4;
  568. }
  569. .timestamp-controls {
  570. display: flex;
  571. align-items: center;
  572. justify-content: space-between;
  573. gap: 12px;
  574. padding: 8px 0;
  575. }
  576. .timestamp-checkbox-container {
  577. display: flex;
  578. align-items: center;
  579. }
  580. .timestamp-checkbox-label {
  581. display: flex;
  582. align-items: center;
  583. gap: 8px;
  584. font-size: 14px;
  585. color: #333;
  586. cursor: pointer;
  587. user-select: none;
  588. }
  589. .timestamp-checkbox {
  590. width: 16px;
  591. height: 16px;
  592. cursor: pointer;
  593. accent-color: #4285f4;
  594. }
  595. .refresh-timestamp-btn {
  596. background-color: #34a853;
  597. color: white;
  598. padding: 6px 12px;
  599. border-radius: 4px;
  600. font-size: 12px;
  601. font-weight: 500;
  602. transition: all 0.2s ease;
  603. white-space: nowrap;
  604. }
  605. .refresh-timestamp-btn:hover:not(:disabled) {
  606. background-color: #2d7d3a;
  607. transform: translateY(-1px);
  608. box-shadow: 0 2px 6px rgba(52, 168, 83, 0.3);
  609. }
  610. .refresh-timestamp-btn:active {
  611. background-color: #1e5f2a;
  612. transform: translateY(0);
  613. box-shadow: 0 1px 3px rgba(52, 168, 83, 0.4);
  614. transition: all 0.1s ease;
  615. }
  616. .refresh-timestamp-btn:disabled {
  617. background-color: #ccc;
  618. color: #888;
  619. cursor: not-allowed;
  620. transform: none;
  621. box-shadow: none;
  622. }
  623. .refresh-timestamp-btn:disabled:hover {
  624. background-color: #ccc;
  625. transform: none;
  626. box-shadow: none;
  627. }
  628. .copy-wikitext-btn {
  629. width: 100%;
  630. background-color: #4285f4;
  631. color: white;
  632. padding: 10px 16px;
  633. border-radius: 6px;
  634. font-size: 14px;
  635. font-weight: 500;
  636. transition: all 0.2s ease;
  637. }
  638. .copy-wikitext-btn:hover:not(:disabled) {
  639. background-color: #3367d6;
  640. transform: translateY(-1px);
  641. box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  642. }
  643. .copy-wikitext-btn:active {
  644. background-color: #2d5aa0;
  645. transform: translateY(0);
  646. box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
  647. transition: all 0.1s ease;
  648. }
  649. .copy-wikitext-btn:disabled {
  650. background-color: #ccc;
  651. color: #888;
  652. cursor: not-allowed;
  653. transform: none;
  654. box-shadow: none;
  655. }
  656. .copy-wikitext-btn:disabled:hover {
  657. background-color: #ccc;
  658. transform: none;
  659. box-shadow: none;
  660. }
  661. .wiki-insp-notice {
  662. background-color: #fff3cd;
  663. border: 1px solid #ffeaa7;
  664. border-radius: 6px;
  665. padding: 12px;
  666. color: #856404;
  667. font-size: 14px;
  668. }
  669. .wiki-insp-notice p {
  670. margin: 0;
  671. }
  672. /* Wiki/Insp button styles */
  673. .wiki-insp-btn {
  674. background-color: #9c27b0;
  675. color: white;
  676. padding: 8px 12px;
  677. border-radius: 4px;
  678. font-size: 14px;
  679. font-weight: 500;
  680. }
  681. .wiki-insp-btn:hover {
  682. background-color: #7b1fa2;
  683. }
  684. /* Import view styles */
  685. .import-container {
  686. background: #fff;
  687. border-radius: 8px;
  688. padding: 16px;
  689. margin-bottom: 16px;
  690. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  691. min-height: 300px;
  692. }
  693. .import-content {
  694. display: flex;
  695. flex-direction: column;
  696. gap: 20px;
  697. }
  698. .import-section {
  699. display: flex;
  700. flex-direction: column;
  701. gap: 12px;
  702. }
  703. .import-textarea {
  704. width: 100%;
  705. min-height: 450px;
  706. max-height: 500px;
  707. padding: 12px;
  708. border: 1px solid #ddd;
  709. border-radius: 6px;
  710. font-family: monospace;
  711. font-size: 12px;
  712. background-color: #f8f9fa;
  713. resize: vertical;
  714. line-height: 1.4;
  715. }
  716. .import-textarea:focus {
  717. outline: none;
  718. border-color: #4285f4;
  719. box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
  720. }
  721. .import-submit-btn {
  722. width: 100%;
  723. background-color: #34a853;
  724. color: white;
  725. padding: 10px 16px;
  726. border-radius: 6px;
  727. font-size: 14px;
  728. font-weight: 500;
  729. transition: all 0.2s ease;
  730. }
  731. .import-submit-btn:hover {
  732. background-color: #2d7d3a;
  733. transform: translateY(-1px);
  734. box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
  735. }
  736. .import-submit-btn:active {
  737. background-color: #1e5f2a;
  738. transform: translateY(0);
  739. box-shadow: 0 1px 3px rgba(52, 168, 83, 0.4);
  740. transition: all 0.1s ease;
  741. }
  742. /* Import button styles */
  743. .import-btn {
  744. background-color: #34a853;
  745. color: white;
  746. padding: 8px 12px;
  747. border-radius: 4px;
  748. font-size: 14px;
  749. font-weight: 500;
  750. }
  751. .import-btn:hover {
  752. background-color: #2d7d3a;
  753. }
  754. /* Export button styles */
  755. .export-btn {
  756. background-color: #4285f4;
  757. color: white;
  758. padding: 8px 12px;
  759. border-radius: 4px;
  760. font-size: 14px;
  761. font-weight: 500;
  762. }
  763. .export-btn:hover {
  764. background-color: #3367d6;
  765. }
  766. .export-container {
  767. display: flex;
  768. flex-wrap: wrap;
  769. row-gap: 6px;
  770. column-gap: 4px;
  771. margin-bottom: 12px;
  772. }
  773. .move-to-playlist-item {
  774. color: #555;
  775. }
  776. .move-to-submenu {
  777. border-top: 1px solid #eee;
  778. }
  779. .move-to-playlist-option {
  780. padding-left: 20px;
  781. color: #4285f4;
  782. }
  783. .move-to-playlist-option:hover {
  784. background-color: #e8f0fe;
  785. }