index.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. * Design by fromScratch Studio - 2022, 2023 (fromscratch.io)
  3. * Implementation in HTML/CSS/JS by Timendus - 2024 (https://github.com/Timendus)
  4. *
  5. * See https://github.com/librespeed/speedtest/issues/585
  6. */
  7. @import url("colors.css");
  8. @import url("fonts.css");
  9. @import url("main.css");
  10. @import url("server-selector.css");
  11. @import url("button.css");
  12. @import url("results.css");
  13. @import url("dialog.css");
  14. /* Setting up the basic structure */
  15. * {
  16. box-sizing: border-box;
  17. padding: 0;
  18. margin: 0;
  19. }
  20. html,
  21. body {
  22. min-height: 100vh;
  23. width: 100vw;
  24. }
  25. html {
  26. background-color: var(--background-backup-color);
  27. background-image: url("../images/background.jpeg");
  28. background-repeat: no-repeat;
  29. background-position: center;
  30. background-size: cover;
  31. font-size: 10px;
  32. @media screen and (max-width: 800px) {
  33. font-size: 8px;
  34. }
  35. }
  36. body {
  37. font-family: "Inter", sans-serif;
  38. background-color: var(--background-overlay-color);
  39. color: var(--primary-text-color);
  40. display: flex;
  41. flex-direction: column;
  42. }
  43. /* Position the logo */
  44. header {
  45. padding: 4rem 7rem;
  46. @media screen and (max-width: 800px) {
  47. padding: 7rem 2rem;
  48. text-align: center;
  49. }
  50. }
  51. /* Position the source code link */
  52. footer {
  53. margin: auto auto 0 auto;
  54. padding: 5rem;
  55. & > p.source a {
  56. font-size: 1.6rem;
  57. font-weight: 700;
  58. letter-spacing: -0.1rem;
  59. color: var(--theme-green);
  60. text-underline-offset: 0.3rem;
  61. transition: text-underline-offset 0.2s;
  62. &:hover {
  63. color: var(--theme-pink);
  64. text-underline-offset: 0.5rem;
  65. }
  66. }
  67. @media screen and (max-width: 800px) {
  68. padding: 4rem;
  69. }
  70. }