| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920 |
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- body {
- font-family: Arial, sans-serif;
- background-color: #f5f5f5;
- color: #333;
- width: 400px;
- max-height: 600px;
- overflow-y: auto;
- }
- #app {
- padding: 16px;
- }
- header {
- margin-bottom: 16px;
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- }
- h1 {
- font-size: 20px;
- color: #333;
- }
- h2 {
- font-size: 16px;
- margin-bottom: 8px;
- padding-bottom: 4px;
- border-bottom: 1px solid #ddd;
- }
- .playlist-name-clickable {
- cursor: pointer;
- color: #4285f4;
- transition: color 0.2s ease;
- }
- .playlist-name-clickable:hover {
- color: #3367d6;
- text-decoration: underline;
- }
- .playlist {
- background: #fff;
- border-radius: 8px;
- padding: 12px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- .video-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 0;
- border-bottom: 1px solid #eee;
- }
- .video-item:last-child {
- border-bottom: none;
- }
- .video-title {
- flex: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- a.video-title {
- text-decoration: none;
- color: #333;
- }
- .video-actions {
- display: flex;
- gap: 8px;
- }
- button {
- padding: 4px 8px;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- font-size: 12px;
- }
- button:hover {
- opacity: 0.9;
- }
- .empty-playlist {
- padding: 8px 0;
- color: #888;
- font-style: italic;
- font-size: 14px;
- }
- .current-video {
- background-color: #e3f2fd;
- border-left: 3px solid #4285f4;
- padding-left: 8px;
- font-weight: bold;
- }
- .done-video {
- color: #999;
- opacity: 0.6;
- }
- .done-video .video-title {
- text-decoration: line-through;
- }
- .non-contiguous-done-video {
- opacity: 0.7;
- background-color: rgba(128, 128, 128, 0.05);
- }
- .non-contiguous-done-video .video-title {
- color: #666;
- }
- /* Truncated videos indicator */
- .truncated-videos {
- padding: 8px 0 12px 8px;
- margin-bottom: 12px;
- border-bottom: 1px solid #eee;
- cursor: pointer;
- color: #888;
- font-style: italic;
- font-size: 14px;
- transition: color 0.2s ease, background-color 0.2s ease;
- }
- .truncated-videos:hover {
- color: #4285f4;
- background-color: #f8f9fa;
- }
- /* More menu styles */
- .more-menu-container {
- position: relative;
- }
- .more-btn {
- background-color: #666;
- color: white;
- font-size: 14px;
- padding: 4px 8px;
- border-radius: 4px;
- font-weight: bold;
- }
- .more-menu {
- position: absolute;
- right: 0;
- top: 100%;
- background: white;
- border: 1px solid #ddd;
- border-radius: 4px;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- z-index: 1000;
- min-width: 100px;
- margin-top: 4px;
- }
- .menu-item {
- display: block;
- width: 100%;
- padding: 8px 12px;
- border: none;
- background: none;
- text-align: left;
- cursor: pointer;
- font-size: 12px;
- border-radius: 0;
- }
- .menu-item:hover {
- background-color: #f5f5f5;
- }
- .remove-item {
- color: #f44336;
- }
- .remove-item:hover {
- background-color: #ffeaea;
- }
- /* Back button styles */
- .back-btn {
- background-color: #4285f4;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- margin-bottom: 8px;
- }
- .back-btn:hover {
- background-color: #3367d6;
- }
- /* Arrow back button styles */
- .back-btn-arrow {
- position: absolute;
- left: 0;
- background: none;
- border: none;
- font-size: 20px;
- color: #4285f4;
- cursor: pointer;
- padding: 8px 12px;
- border-radius: 50%;
- transition: background-color 0.2s ease, color 0.2s ease;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 36px;
- height: 36px;
- }
- .back-btn-arrow:hover {
- background-color: #e8f0fe;
- color: #3367d6;
- }
- /* History view styles */
- .history-container {
- background: #fff;
- border-radius: 8px;
- padding: 12px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- min-height: 200px;
- }
- .history-list {
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .history-item {
- border-bottom: 1px solid #eee;
- padding-bottom: 12px;
- }
- .history-item:last-child {
- border-bottom: none;
- padding-bottom: 0;
- }
- .history-video-info {
- margin-bottom: 8px;
- }
- .history-video-title {
- display: block;
- font-weight: bold;
- color: #333;
- text-decoration: none;
- margin-bottom: 4px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .history-video-title:hover {
- color: #4285f4;
- }
- .history-video-id {
- font-size: 12px;
- color: #4285f4;
- font-family: monospace;
- text-decoration: none;
- cursor: pointer;
- transition: color 0.2s ease;
- }
- .history-video-id:hover {
- color: #3367d6;
- text-decoration: underline;
- }
- .history-tags {
- margin-top: 6px;
- display: flex;
- gap: 6px;
- flex-wrap: wrap;
- }
- .tag-chip {
- font-size: 10px;
- padding: 2px 8px;
- border: 1px solid #ddd;
- border-radius: 12px;
- background-color: #f8f9fa;
- color: #666;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .tag-chip:hover {
- background-color: #e8f0fe;
- border-color: #4285f4;
- color: #4285f4;
- }
- .tag-chip.active {
- background-color: #4285f4;
- border-color: #4285f4;
- color: white;
- }
- .tag-chip.active:hover {
- background-color: #3367d6;
- border-color: #3367d6;
- }
- .history-events {
- display: flex;
- flex-direction: column;
- gap: 4px;
- margin-left: 12px;
- }
- .history-event {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 12px;
- color: #555;
- }
- .event-action {
- font-weight: bold;
- min-width: 60px;
- }
- .event-position {
- color: #666;
- font-family: monospace;
- min-width: 70px;
- }
- .event-timestamp {
- color: #888;
- font-size: 11px;
- margin-left: auto;
- }
- .empty-history {
- text-align: center;
- padding: 40px 0;
- color: #888;
- font-style: italic;
- }
- /* History button styles */
- .history-btn {
- background-color: #34a853;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- }
- .history-btn:hover {
- background-color: #2d7d3a;
- }
- /* Playlist view styles */
- .playlist-view-container {
- background: #fff;
- border-radius: 8px;
- padding: 12px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- min-height: 200px;
- }
- .playlist-full-view {
- display: flex;
- flex-direction: column;
- gap: 0;
- }
- .playlist-full-view .video-item {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 8px 0;
- border-bottom: 1px solid #eee;
- }
- .playlist-full-view .video-item:last-child {
- border-bottom: none;
- }
- /* Add current page button styles */
- .add-current-page-container {
- margin-top: 16px;
- padding-top: 12px;
- border-top: 1px solid #eee;
- }
- .add-current-page-btn {
- width: 100%;
- background-color: #4285f4;
- color: white;
- padding: 10px 16px;
- border-radius: 6px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- }
- .add-current-page-btn:hover:not(:disabled) {
- background-color: #3367d6;
- transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
- }
- .add-current-page-btn:disabled,
- .add-current-page-btn.disabled {
- background-color: #ccc;
- color: #888;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
- .add-current-page-btn:disabled:hover,
- .add-current-page-btn.disabled:hover {
- background-color: #ccc;
- transform: none;
- box-shadow: none;
- }
- /* Save Channel view styles */
- .save-channel-container {
- background: #fff;
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- min-height: 300px;
- }
- .save-channel-content {
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
- .curl-command-section {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .curl-field-container {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .curl-command-field {
- width: 100%;
- min-height: 120px;
- padding: 12px;
- border: 1px solid #ddd;
- border-radius: 6px;
- font-family: monospace;
- font-size: 12px;
- background-color: #f8f9fa;
- resize: vertical;
- line-height: 1.4;
- }
- .copy-curl-btn {
- align-self: flex-start;
- background-color: #4285f4;
- color: white;
- padding: 8px 16px;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- }
- .copy-curl-btn:hover {
- background-color: #3367d6;
- transform: translateY(-1px);
- box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
- }
- .copy-curl-btn:active {
- background-color: #2d5aa0;
- transform: translateY(0);
- box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
- transition: all 0.1s ease;
- }
- .copy-curl-btn:disabled {
- background-color: #ccc;
- color: #888;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
- .copy-curl-btn:disabled:hover {
- background-color: #ccc;
- transform: none;
- box-shadow: none;
- }
- .interval-section {
- display: flex;
- flex-direction: column;
- gap: 8px;
- }
- .interval-label {
- font-size: 14px;
- font-weight: 500;
- color: #333;
- }
- .interval-input {
- width: 100px;
- padding: 8px 12px;
- border: 1px solid #ddd;
- border-radius: 6px;
- font-size: 14px;
- font-family: inherit;
- background-color: #fff;
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
- }
- .interval-input:focus {
- outline: none;
- border-color: #4285f4;
- box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
- }
- .interval-input:invalid {
- border-color: #f44336;
- }
- .category-section h3 {
- margin-bottom: 12px;
- color: #333;
- font-size: 16px;
- font-weight: 500;
- }
- .category-buttons {
- display: flex;
- gap: 8px;
- flex-wrap: wrap;
- }
- .category-btn {
- padding: 8px 16px;
- border: 2px solid #ddd;
- border-radius: 6px;
- background-color: #f8f9fa;
- color: #666;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .category-btn:hover {
- border-color: #4285f4;
- background-color: #e8f0fe;
- color: #4285f4;
- }
- .category-btn.active {
- border-color: #4285f4;
- background-color: #4285f4;
- color: white;
- }
- .category-btn.active:hover {
- border-color: #3367d6;
- background-color: #3367d6;
- }
- .save-channel-notice {
- background-color: #fff3cd;
- border: 1px solid #ffeaa7;
- border-radius: 6px;
- padding: 12px;
- color: #856404;
- font-size: 14px;
- }
- .save-channel-notice p {
- margin: 0;
- }
- /* Save Channel button styles */
- .save-channel-btn {
- background-color: #ff6d01;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 500;
- }
- .save-channel-btn:hover {
- background-color: #e55a00;
- }
- /* Wiki/Insp view styles */
- .wiki-insp-container {
- background: #fff;
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- min-height: 300px;
- }
- .wiki-insp-content {
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
- .wikitext-command-section {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .wikitext-command-field {
- width: 100%;
- min-height: 120px;
- padding: 12px;
- border: 1px solid #ddd;
- border-radius: 6px;
- font-family: monospace;
- font-size: 12px;
- background-color: #f8f9fa;
- resize: vertical;
- line-height: 1.4;
- }
- .timestamp-controls {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- padding: 8px 0;
- }
- .timestamp-checkbox-container {
- display: flex;
- align-items: center;
- }
- .timestamp-checkbox-label {
- display: flex;
- align-items: center;
- gap: 8px;
- font-size: 14px;
- color: #333;
- cursor: pointer;
- user-select: none;
- }
- .timestamp-checkbox {
- width: 16px;
- height: 16px;
- cursor: pointer;
- accent-color: #4285f4;
- }
- .refresh-timestamp-btn {
- background-color: #34a853;
- color: white;
- padding: 6px 12px;
- border-radius: 4px;
- font-size: 12px;
- font-weight: 500;
- transition: all 0.2s ease;
- white-space: nowrap;
- }
- .refresh-timestamp-btn:hover:not(:disabled) {
- background-color: #2d7d3a;
- transform: translateY(-1px);
- box-shadow: 0 2px 6px rgba(52, 168, 83, 0.3);
- }
- .refresh-timestamp-btn:active {
- background-color: #1e5f2a;
- transform: translateY(0);
- box-shadow: 0 1px 3px rgba(52, 168, 83, 0.4);
- transition: all 0.1s ease;
- }
- .refresh-timestamp-btn:disabled {
- background-color: #ccc;
- color: #888;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
- .refresh-timestamp-btn:disabled:hover {
- background-color: #ccc;
- transform: none;
- box-shadow: none;
- }
- .copy-wikitext-btn {
- width: 100%;
- background-color: #4285f4;
- color: white;
- padding: 10px 16px;
- border-radius: 6px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- }
- .copy-wikitext-btn:hover:not(:disabled) {
- background-color: #3367d6;
- transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
- }
- .copy-wikitext-btn:active {
- background-color: #2d5aa0;
- transform: translateY(0);
- box-shadow: 0 1px 3px rgba(66, 133, 244, 0.4);
- transition: all 0.1s ease;
- }
- .copy-wikitext-btn:disabled {
- background-color: #ccc;
- color: #888;
- cursor: not-allowed;
- transform: none;
- box-shadow: none;
- }
- .copy-wikitext-btn:disabled:hover {
- background-color: #ccc;
- transform: none;
- box-shadow: none;
- }
- .wiki-insp-notice {
- background-color: #fff3cd;
- border: 1px solid #ffeaa7;
- border-radius: 6px;
- padding: 12px;
- color: #856404;
- font-size: 14px;
- }
- .wiki-insp-notice p {
- margin: 0;
- }
- /* Wiki/Insp button styles */
- .wiki-insp-btn {
- background-color: #9c27b0;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 500;
- }
- .wiki-insp-btn:hover {
- background-color: #7b1fa2;
- }
- /* Import view styles */
- .import-container {
- background: #fff;
- border-radius: 8px;
- padding: 16px;
- margin-bottom: 16px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- min-height: 300px;
- }
- .import-content {
- display: flex;
- flex-direction: column;
- gap: 20px;
- }
- .import-section {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .import-textarea {
- width: 100%;
- min-height: 450px;
- max-height: 500px;
- padding: 12px;
- border: 1px solid #ddd;
- border-radius: 6px;
- font-family: monospace;
- font-size: 12px;
- background-color: #f8f9fa;
- resize: vertical;
- line-height: 1.4;
- }
- .import-textarea:focus {
- outline: none;
- border-color: #4285f4;
- box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
- }
- .import-submit-btn {
- width: 100%;
- background-color: #34a853;
- color: white;
- padding: 10px 16px;
- border-radius: 6px;
- font-size: 14px;
- font-weight: 500;
- transition: all 0.2s ease;
- }
- .import-submit-btn:hover {
- background-color: #2d7d3a;
- transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
- }
- .import-submit-btn:active {
- background-color: #1e5f2a;
- transform: translateY(0);
- box-shadow: 0 1px 3px rgba(52, 168, 83, 0.4);
- transition: all 0.1s ease;
- }
- /* Import button styles */
- .import-btn {
- background-color: #34a853;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 500;
- }
- .import-btn:hover {
- background-color: #2d7d3a;
- }
- /* Export button styles */
- .export-btn {
- background-color: #4285f4;
- color: white;
- padding: 8px 12px;
- border-radius: 4px;
- font-size: 14px;
- font-weight: 500;
- }
- .export-btn:hover {
- background-color: #3367d6;
- }
- .export-container {
- display: flex;
- flex-wrap: wrap;
- row-gap: 6px;
- column-gap: 4px;
- margin-bottom: 12px;
- }
- .move-to-playlist-item {
- color: #555;
- }
- .move-to-submenu {
- border-top: 1px solid #eee;
- }
- .move-to-playlist-option {
- padding-left: 20px;
- color: #4285f4;
- }
- .move-to-playlist-option:hover {
- background-color: #e8f0fe;
- }
|