default.css 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. /* from Invidious, AGPL-3.0 */
  2. html,
  3. body {
  4. font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen,
  5. Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica,
  6. Arial, sans-serif;
  7. }
  8. #contents {
  9. display: flex;
  10. flex-direction: column;
  11. min-height: 100vh;
  12. }
  13. .deleted {
  14. background-color: rgb(255, 0, 0, 0.5);
  15. }
  16. .underlined {
  17. border-bottom: 1px solid;
  18. margin-bottom: 20px;
  19. }
  20. .channel-profile > * {
  21. font-size: 1.17em;
  22. font-weight: bold;
  23. vertical-align: middle;
  24. border-radius: 50%;
  25. }
  26. .channel-profile > img {
  27. width: 48px;
  28. height: auto;
  29. }
  30. body a.channel-owner {
  31. background-color: #008bec;
  32. color: #fff;
  33. border-radius: 9px;
  34. padding: 1px 6px;
  35. }
  36. .creator-heart-container {
  37. display: inline-block;
  38. padding: 0px 7px 6px 0px;
  39. margin: 0px -7px -4px 0px;
  40. }
  41. .creator-heart {
  42. position: relative;
  43. width: 16px;
  44. height: 16px;
  45. border: 2px none;
  46. }
  47. .creator-heart-background-hearted {
  48. width: 16px;
  49. height: 16px;
  50. padding: 0px;
  51. position: relative;
  52. }
  53. .creator-heart-small-hearted {
  54. position: absolute;
  55. right: -7px;
  56. bottom: -4px;
  57. }
  58. .creator-heart-small-container {
  59. position: relative;
  60. width: 13px;
  61. height: 13px;
  62. color: rgb(255, 0, 0);
  63. }
  64. .feed-menu {
  65. display: flex;
  66. justify-content: center;
  67. flex-wrap: wrap;
  68. }
  69. .feed-menu-item {
  70. text-align: center;
  71. }
  72. @media screen and (max-width: 640px) {
  73. .feed-menu-item {
  74. flex: 0 0 40%;
  75. }
  76. }
  77. .h-box {
  78. padding-left: 1em;
  79. padding-right: 1em;
  80. }
  81. .v-box {
  82. padding-top: 1em;
  83. padding-bottom: 1em;
  84. }
  85. div {
  86. overflow-wrap: break-word;
  87. word-wrap: break-word;
  88. }
  89. .loading {
  90. display: inline-block;
  91. animation: spin 2s linear infinite;
  92. }
  93. .playlist-restricted {
  94. height: 20em;
  95. padding-right: 10px;
  96. }
  97. body a.pure-button {
  98. color: rgba(0,0,0,.8);
  99. }
  100. button.pure-button-primary,
  101. body a.pure-button-primary,
  102. .channel-owner:hover {
  103. background-color: #a0a0a0;
  104. color: rgba(35, 35, 35, 1);
  105. }
  106. button.pure-button-primary:hover,
  107. body a.pure-button-primary:hover {
  108. background-color: rgba(0, 182, 240, 1);
  109. color: #fff;
  110. }
  111. div.thumbnail {
  112. padding: 28.125%;
  113. position: relative;
  114. box-sizing: border-box;
  115. }
  116. img.thumbnail {
  117. position: absolute;
  118. width: 100%;
  119. height: 100%;
  120. left: 0;
  121. top: 0;
  122. object-fit: cover;
  123. }
  124. div.watched-overlay {
  125. position: absolute;
  126. top: 0;
  127. left: 0;
  128. right: 0;
  129. bottom: 0;
  130. background-color: rgba(255,255,255,.4);
  131. }
  132. div.watched-indicator {
  133. position: absolute;
  134. left: 0;
  135. bottom: 0;
  136. height: 4px;
  137. width: 100%;
  138. background-color: red;
  139. }
  140. .length {
  141. z-index: 100;
  142. position: absolute;
  143. background-color: rgba(35, 35, 35, 0.75);
  144. color: #fff;
  145. border-radius: 2px;
  146. padding: 2px;
  147. font-size: 16px;
  148. right: 0.25em;
  149. bottom: -0.75em;
  150. }
  151. .watched {
  152. z-index: 100;
  153. position: absolute;
  154. background-color: rgba(35, 35, 35, 0.75);
  155. color: #fff;
  156. border-radius: 2px;
  157. padding: 4px 8px 4px 8px;
  158. font-size: 16px;
  159. left: 0.2em;
  160. top: -0.7em;
  161. }
  162. /*
  163. * Navbar
  164. */
  165. .navbar {
  166. margin: 1em 0;
  167. display: flex; /* this is also defined in framework, but in case of future changes */
  168. align-items: center;
  169. justify-content: space-between;
  170. }
  171. .navbar > div {
  172. flex: 1;
  173. }
  174. .searchbar {
  175. flex-grow: 2; /* take double the space of the other items */
  176. }
  177. .navbar a {
  178. padding: 0; /* this way it will stay aligned with content under */
  179. }
  180. .navbar .index-link {
  181. font-weight: bold;
  182. display: inline;
  183. }
  184. .searchbar .pure-form fieldset { padding: 0; }
  185. .searchbar input[type="search"] {
  186. width: 100%;
  187. margin: 1px;
  188. border: 1px solid;
  189. border-color: rgba(0,0,0,0);
  190. border-bottom-color: #CCC;
  191. border-radius: 0;
  192. box-shadow: none;
  193. -webkit-appearance: none;
  194. }
  195. .searchbar input[type="search"]:focus {
  196. margin: 0;
  197. border: 2px solid;
  198. border-color: rgba(0,0,0,0);
  199. border-bottom-color: #FED;
  200. }
  201. /* https://stackoverflow.com/a/55170420 */
  202. input[type="search"]::-webkit-search-cancel-button {
  203. -webkit-appearance: none;
  204. height: 14px;
  205. width: 14px;
  206. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
  207. background-size: 14px;
  208. }
  209. .user-field {
  210. display: flex;
  211. flex-direction: row;
  212. justify-content: flex-end;
  213. align-items: center;
  214. }
  215. .user-field div {
  216. width: auto;
  217. }
  218. .user-field div:not(:last-child) {
  219. margin-right: 1em;
  220. }
  221. @media only screen and (max-aspect-ratio: 16/9) {
  222. .player-dimensions.vjs-fluid {
  223. padding-top: 46.86% !important;
  224. }
  225. }
  226. @media screen and (max-width: 767px) {
  227. .navbar {
  228. flex-direction: column;
  229. }
  230. .navbar > div {
  231. display: flex;
  232. justify-content: center;
  233. }
  234. .navbar > div:not(:last-child) {
  235. margin-bottom: 1em;
  236. }
  237. .navbar > .searchbar > form {
  238. width: 60%;
  239. }
  240. h1 {
  241. font-size: 1.25em;
  242. margin: 0.42em 0;
  243. }
  244. }
  245. @media screen and (max-width: 320px) {
  246. .navbar > .searchbar > form {
  247. width: 100%;
  248. margin: 0 1em;
  249. }
  250. }
  251. /*
  252. * Video "cards" (results/playlist/channel videos)
  253. */
  254. .video-card-row { margin: 15px 0; }
  255. .flexible { display: flex; }
  256. .flex-left { flex: 1 1 100%; flex-wrap: wrap; }
  257. .flex-right { flex: 1 0 auto; flex-wrap: nowrap; }
  258. p.channel-name { margin: 0; }
  259. p.video-data { margin: 0; font-weight: bold; font-size: 80%; }
  260. /*
  261. * Footer
  262. */
  263. footer {
  264. color: #919191;
  265. margin-top: auto;
  266. padding: 1.5em 0;
  267. text-align: center;
  268. max-height: 30vh;
  269. }
  270. footer a {
  271. color: #919191 !important;
  272. text-decoration: underline;
  273. }
  274. footer span {
  275. margin: 4px 0;
  276. display: block;
  277. }
  278. /* keyframes */
  279. @keyframes spin {
  280. 0% {
  281. transform: rotate(0deg);
  282. }
  283. 100% {
  284. transform: rotate(360deg);
  285. }
  286. }
  287. fieldset > select,
  288. span > select {
  289. color: rgba(49, 49, 51, 1);
  290. }
  291. .pure-control-group label {
  292. word-wrap: normal;
  293. }
  294. /*
  295. * Light theme
  296. */
  297. .light-theme a:hover,
  298. .light-theme a:active,
  299. .light-theme summary:hover {
  300. color: #075A9E !important;
  301. }
  302. .light-theme a.pure-button-primary:hover {
  303. color: #fff !important;
  304. }
  305. .light-theme a {
  306. color: #335d7a;
  307. text-decoration: none;
  308. }
  309. /* All links that do not fit with the default color goes here */
  310. .light-theme a:not([data-id]) > .icon,
  311. .light-theme .pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
  312. .light-theme .playlist-restricted > ol > li > a {
  313. color: #303030;
  314. }
  315. .light-theme .pure-menu-heading {
  316. color: #565d64;
  317. }
  318. @media (prefers-color-scheme: light) {
  319. .no-theme a:hover,
  320. .no-theme a:active,
  321. .no-theme summary:hover {
  322. color: #075A9E !important;
  323. }
  324. .no-theme a.pure-button-primary:hover {
  325. color: #fff !important;
  326. }
  327. .no-theme a {
  328. color: #335d7a;
  329. text-decoration: none;
  330. }
  331. /* All links that do not fit with the default color goes here */
  332. .no-theme a:not([data-id]) > .icon,
  333. .no-theme .pure-u-lg-1-5 > .h-box > a[href^="/watch?"],
  334. .no-theme .playlist-restricted > ol > li > a {
  335. color: #303030;
  336. }
  337. .light-theme .pure-menu-heading {
  338. color: #565d64;
  339. }
  340. }
  341. /*
  342. * Dark theme
  343. */
  344. .dark-theme a:hover,
  345. .dark-theme a:active,
  346. .dark-theme summary:hover {
  347. color: rgb(0, 182, 240);
  348. }
  349. .dark-theme a {
  350. color: #a0a0a0;
  351. text-decoration: none;
  352. }
  353. body.dark-theme {
  354. background-color: rgba(35, 35, 35, 1);
  355. color: #f0f0f0;
  356. }
  357. .dark-theme .pure-form legend {
  358. color: #f0f0f0;
  359. }
  360. .dark-theme .pure-menu-heading {
  361. color: #f0f0f0;
  362. }
  363. .dark-theme input,
  364. .dark-theme select,
  365. .dark-theme textarea {
  366. color: rgba(35, 35, 35, 1);
  367. }
  368. .dark-theme .pure-form input[type="file"] {
  369. color: #f0f0f0;
  370. }
  371. .dark-theme .searchbar input {
  372. background-color: inherit;
  373. color: inherit;
  374. }
  375. @media (prefers-color-scheme: dark) {
  376. .no-theme a:hover,
  377. .no-theme a:active {
  378. color: rgb(0, 182, 240);
  379. }
  380. .no-theme a {
  381. color: #a0a0a0;
  382. text-decoration: none;
  383. }
  384. body.no-theme {
  385. background-color: rgba(35, 35, 35, 1);
  386. color: #f0f0f0;
  387. }
  388. .no-theme .pure-form legend {
  389. color: #f0f0f0;
  390. }
  391. .no-theme .pure-menu-heading {
  392. color: #f0f0f0;
  393. }
  394. .no-theme input,
  395. .no-theme select,
  396. .no-theme textarea {
  397. color: rgba(35, 35, 35, 1);
  398. }
  399. .no-theme .pure-form input[type="file"] {
  400. color: #f0f0f0;
  401. }
  402. .no-theme .searchbar input {
  403. background-color: inherit;
  404. color: inherit;
  405. }
  406. }
  407. /*With commit d9528f5 all contents of the page is now within a flexbox. However,
  408. the hr element is rendered improperly within one.
  409. See https://stackoverflow.com/a/34372979 for more info */
  410. hr {
  411. margin: 10px 0 10px 0;
  412. }
  413. /* Description Expansion Styling*/
  414. #descexpansionbutton,
  415. #music-desc-expansion {
  416. display: none;
  417. }
  418. #descexpansionbutton ~ div {
  419. overflow: hidden;
  420. max-height: 8.3em;
  421. }
  422. #descexpansionbutton:checked ~ div {
  423. overflow: unset;
  424. height: 100%;
  425. }
  426. #descexpansionbutton ~ label {
  427. order: 1;
  428. margin-top: 20px;
  429. }
  430. label[for="descexpansionbutton"]:hover,
  431. label[for="music-desc-expansion"]:hover {
  432. cursor: pointer;
  433. }
  434. /* Bidi (bidirectional text) support */
  435. h1,
  436. h2,
  437. h3,
  438. h4,
  439. h5,
  440. p,
  441. #descriptionWrapper,
  442. #description-box,
  443. #music-description-box {
  444. unicode-bidi: plaintext;
  445. text-align: start;
  446. }
  447. #descriptionWrapper {
  448. max-width: 600px;
  449. white-space: pre-wrap;
  450. }
  451. #music-description-box {
  452. display: none;
  453. }
  454. #music-desc-expansion:checked ~ #music-description-box {
  455. display: block;
  456. }
  457. #music-desc-expansion ~ label > h3 > .ion-ios-arrow-up,
  458. #music-desc-expansion:checked ~ label > h3 > .ion-ios-arrow-down {
  459. display: none;
  460. }
  461. #music-desc-expansion:checked ~ label > h3 > .ion-ios-arrow-up,
  462. #music-desc-expansion ~ label > h3 > .ion-ios-arrow-down {
  463. display: inline;
  464. }
  465. /* Select all the music items except the first one */
  466. .music-item + .music-item {
  467. border-top: 1px solid #ffffff;
  468. }
  469. /* Center the "invidious" logo on the search page */
  470. #logo > h1 { text-align: center; }
  471. /* IE11 fixes */
  472. :-ms-input-placeholder { color: #888; }
  473. /* Wider settings name to less word wrap */
  474. .pure-form-aligned .pure-control-group label { width: 19em; }
  475. .channel-emoji {
  476. margin: 0 2px;
  477. }