popup.css 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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. /* Truncated videos indicator */
  105. .truncated-videos {
  106. padding: 8px 0 12px 8px;
  107. margin-bottom: 12px;
  108. border-bottom: 1px solid #eee;
  109. cursor: pointer;
  110. color: #888;
  111. font-style: italic;
  112. font-size: 14px;
  113. transition: color 0.2s ease, background-color 0.2s ease;
  114. }
  115. .truncated-videos:hover {
  116. color: #4285f4;
  117. background-color: #f8f9fa;
  118. }
  119. /* More menu styles */
  120. .more-menu-container {
  121. position: relative;
  122. }
  123. .more-btn {
  124. background-color: #666;
  125. color: white;
  126. font-size: 14px;
  127. padding: 4px 8px;
  128. border-radius: 4px;
  129. font-weight: bold;
  130. }
  131. .more-menu {
  132. position: absolute;
  133. right: 0;
  134. top: 100%;
  135. background: white;
  136. border: 1px solid #ddd;
  137. border-radius: 4px;
  138. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  139. z-index: 1000;
  140. min-width: 100px;
  141. margin-top: 4px;
  142. }
  143. .menu-item {
  144. display: block;
  145. width: 100%;
  146. padding: 8px 12px;
  147. border: none;
  148. background: none;
  149. text-align: left;
  150. cursor: pointer;
  151. font-size: 12px;
  152. border-radius: 0;
  153. }
  154. .menu-item:hover {
  155. background-color: #f5f5f5;
  156. }
  157. .remove-item {
  158. color: #f44336;
  159. }
  160. .remove-item:hover {
  161. background-color: #ffeaea;
  162. }
  163. /* Back button styles */
  164. .back-btn {
  165. background-color: #4285f4;
  166. color: white;
  167. padding: 8px 12px;
  168. border-radius: 4px;
  169. font-size: 14px;
  170. margin-bottom: 8px;
  171. }
  172. .back-btn:hover {
  173. background-color: #3367d6;
  174. }
  175. /* Arrow back button styles */
  176. .back-btn-arrow {
  177. position: absolute;
  178. left: 0;
  179. background: none;
  180. border: none;
  181. font-size: 20px;
  182. color: #4285f4;
  183. cursor: pointer;
  184. padding: 8px 12px;
  185. border-radius: 50%;
  186. transition: background-color 0.2s ease, color 0.2s ease;
  187. display: flex;
  188. align-items: center;
  189. justify-content: center;
  190. width: 36px;
  191. height: 36px;
  192. }
  193. .back-btn-arrow:hover {
  194. background-color: #e8f0fe;
  195. color: #3367d6;
  196. }
  197. /* History view styles */
  198. .history-container {
  199. background: #fff;
  200. border-radius: 8px;
  201. padding: 12px;
  202. margin-bottom: 16px;
  203. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  204. min-height: 200px;
  205. }
  206. .history-list {
  207. display: flex;
  208. flex-direction: column;
  209. gap: 16px;
  210. }
  211. .history-item {
  212. border-bottom: 1px solid #eee;
  213. padding-bottom: 12px;
  214. }
  215. .history-item:last-child {
  216. border-bottom: none;
  217. padding-bottom: 0;
  218. }
  219. .history-video-info {
  220. margin-bottom: 8px;
  221. }
  222. .history-video-title {
  223. display: block;
  224. font-weight: bold;
  225. color: #333;
  226. text-decoration: none;
  227. margin-bottom: 4px;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. white-space: nowrap;
  231. }
  232. .history-video-title:hover {
  233. color: #4285f4;
  234. }
  235. .history-video-id {
  236. font-size: 12px;
  237. color: #666;
  238. font-family: monospace;
  239. }
  240. .history-events {
  241. display: flex;
  242. flex-direction: column;
  243. gap: 4px;
  244. margin-left: 12px;
  245. }
  246. .history-event {
  247. display: flex;
  248. align-items: center;
  249. gap: 8px;
  250. font-size: 12px;
  251. color: #555;
  252. }
  253. .event-action {
  254. font-weight: bold;
  255. min-width: 60px;
  256. }
  257. .event-position {
  258. color: #666;
  259. font-family: monospace;
  260. min-width: 70px;
  261. }
  262. .event-timestamp {
  263. color: #888;
  264. font-size: 11px;
  265. margin-left: auto;
  266. }
  267. .empty-history {
  268. text-align: center;
  269. padding: 40px 0;
  270. color: #888;
  271. font-style: italic;
  272. }
  273. /* History button styles */
  274. .history-btn {
  275. background-color: #34a853;
  276. color: white;
  277. padding: 8px 12px;
  278. border-radius: 4px;
  279. font-size: 14px;
  280. }
  281. .history-btn:hover {
  282. background-color: #2d7d3a;
  283. }
  284. /* Playlist view styles */
  285. .playlist-view-container {
  286. background: #fff;
  287. border-radius: 8px;
  288. padding: 12px;
  289. margin-bottom: 16px;
  290. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  291. min-height: 200px;
  292. }
  293. .playlist-full-view {
  294. display: flex;
  295. flex-direction: column;
  296. gap: 0;
  297. }
  298. .playlist-full-view .video-item {
  299. display: flex;
  300. justify-content: space-between;
  301. align-items: center;
  302. padding: 8px 0;
  303. border-bottom: 1px solid #eee;
  304. }
  305. .playlist-full-view .video-item:last-child {
  306. border-bottom: none;
  307. }