popup.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. }
  135. /* Back button styles */
  136. .back-btn {
  137. background-color: #4285f4;
  138. color: white;
  139. padding: 8px 12px;
  140. border-radius: 4px;
  141. font-size: 14px;
  142. margin-bottom: 8px;
  143. }
  144. .back-btn:hover {
  145. background-color: #3367d6;
  146. }
  147. /* History view styles */
  148. .history-container {
  149. background: #fff;
  150. border-radius: 8px;
  151. padding: 12px;
  152. margin-bottom: 16px;
  153. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  154. min-height: 200px;
  155. }
  156. .history-list {
  157. display: flex;
  158. flex-direction: column;
  159. gap: 16px;
  160. }
  161. .history-item {
  162. border-bottom: 1px solid #eee;
  163. padding-bottom: 12px;
  164. }
  165. .history-item:last-child {
  166. border-bottom: none;
  167. padding-bottom: 0;
  168. }
  169. .history-video-info {
  170. margin-bottom: 8px;
  171. }
  172. .history-video-title {
  173. display: block;
  174. font-weight: bold;
  175. color: #333;
  176. text-decoration: none;
  177. margin-bottom: 4px;
  178. overflow: hidden;
  179. text-overflow: ellipsis;
  180. white-space: nowrap;
  181. }
  182. .history-video-title:hover {
  183. color: #4285f4;
  184. }
  185. .history-video-id {
  186. font-size: 12px;
  187. color: #666;
  188. font-family: monospace;
  189. }
  190. .history-events {
  191. display: flex;
  192. flex-direction: column;
  193. gap: 4px;
  194. margin-left: 12px;
  195. }
  196. .history-event {
  197. display: flex;
  198. align-items: center;
  199. gap: 8px;
  200. font-size: 12px;
  201. color: #555;
  202. }
  203. .event-action {
  204. font-weight: bold;
  205. min-width: 60px;
  206. }
  207. .event-position {
  208. color: #666;
  209. font-family: monospace;
  210. min-width: 70px;
  211. }
  212. .event-timestamp {
  213. color: #888;
  214. font-size: 11px;
  215. margin-left: auto;
  216. }
  217. .empty-history {
  218. text-align: center;
  219. padding: 40px 0;
  220. color: #888;
  221. font-style: italic;
  222. }
  223. /* History button styles */
  224. .history-btn {
  225. background-color: #34a853;
  226. color: white;
  227. padding: 8px 12px;
  228. border-radius: 4px;
  229. font-size: 14px;
  230. }
  231. .history-btn:hover {
  232. background-color: #2d7d3a;
  233. }