popup.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. }
  21. h1 {
  22. font-size: 20px;
  23. color: #333;
  24. }
  25. h2 {
  26. font-size: 16px;
  27. margin-bottom: 8px;
  28. padding-bottom: 4px;
  29. border-bottom: 1px solid #ddd;
  30. }
  31. .playlist {
  32. background: #fff;
  33. border-radius: 8px;
  34. padding: 12px;
  35. margin-bottom: 16px;
  36. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  37. }
  38. .video-item {
  39. display: flex;
  40. justify-content: space-between;
  41. align-items: center;
  42. padding: 8px 0;
  43. border-bottom: 1px solid #eee;
  44. }
  45. .video-item:last-child {
  46. border-bottom: none;
  47. }
  48. .video-title {
  49. flex: 1;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. white-space: nowrap;
  53. }
  54. a.video-title {
  55. text-decoration: none;
  56. color: #333;
  57. }
  58. .video-actions {
  59. display: flex;
  60. gap: 8px;
  61. }
  62. button {
  63. padding: 4px 8px;
  64. border: none;
  65. border-radius: 4px;
  66. cursor: pointer;
  67. font-size: 12px;
  68. }
  69. button:hover {
  70. opacity: 0.9;
  71. }
  72. .empty-playlist {
  73. padding: 8px 0;
  74. color: #888;
  75. font-style: italic;
  76. font-size: 14px;
  77. }
  78. .current-video {
  79. background-color: #e3f2fd;
  80. border-left: 3px solid #4285f4;
  81. padding-left: 8px;
  82. font-weight: bold;
  83. }
  84. .done-video {
  85. color: #999;
  86. opacity: 0.6;
  87. }
  88. .done-video .video-title {
  89. text-decoration: line-through;
  90. }
  91. /* More menu styles */
  92. .more-menu-container {
  93. position: relative;
  94. }
  95. .more-btn {
  96. background-color: #666;
  97. color: white;
  98. font-size: 14px;
  99. padding: 4px 8px;
  100. border-radius: 4px;
  101. font-weight: bold;
  102. }
  103. .more-menu {
  104. position: absolute;
  105. right: 0;
  106. top: 100%;
  107. background: white;
  108. border: 1px solid #ddd;
  109. border-radius: 4px;
  110. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  111. z-index: 1000;
  112. min-width: 100px;
  113. margin-top: 4px;
  114. }
  115. .menu-item {
  116. display: block;
  117. width: 100%;
  118. padding: 8px 12px;
  119. border: none;
  120. background: none;
  121. text-align: left;
  122. cursor: pointer;
  123. font-size: 12px;
  124. border-radius: 0;
  125. }
  126. .menu-item:hover {
  127. background-color: #f5f5f5;
  128. }
  129. .remove-item {
  130. color: #f44336;
  131. }
  132. .remove-item:hover {
  133. background-color: #ffeaea;
  134. }