counter.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. :root {
  2. font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  3. line-height: 1.5;
  4. font-weight: 400;
  5. color-scheme: light dark;
  6. color: rgba(255, 255, 255, 0.87);
  7. background-color: #242424;
  8. font-synthesis: none;
  9. text-rendering: optimizeLegibility;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. }
  13. .counter {
  14. }
  15. input {
  16. font-size: 1.7rem;
  17. }
  18. a {
  19. font-weight: 500;
  20. color: #646cff;
  21. text-decoration: inherit;
  22. }
  23. a:hover {
  24. color: #535bf2;
  25. }
  26. .hidden {
  27. display: none;
  28. }
  29. .count-down {
  30. display: flex;
  31. justify-content: center;
  32. }
  33. .timer {
  34. padding: 1rem 1.5rem;
  35. }
  36. body {
  37. margin: 0;
  38. display: flex;
  39. place-items: center;
  40. min-width: 320px;
  41. min-height: 100vh;
  42. }
  43. h1 {
  44. font-size: 3.2em;
  45. line-height: 1.1;
  46. }
  47. #app {
  48. max-width: 1280px;
  49. margin: 0 auto;
  50. padding: 2rem;
  51. text-align: center;
  52. }
  53. .logo {
  54. height: 6em;
  55. padding: 1.5em;
  56. will-change: filter;
  57. transition: filter 300ms;
  58. }
  59. .logo:hover {
  60. filter: drop-shadow(0 0 2em #646cffaa);
  61. }
  62. .logo.vanilla:hover {
  63. filter: drop-shadow(0 0 2em #f7df1eaa);
  64. }
  65. .card {
  66. padding: 2em;
  67. }
  68. .read-the-docs {
  69. color: #888;
  70. }
  71. button {
  72. border-radius: 8px;
  73. border: 1px solid transparent;
  74. padding: 0.6em 1.2em;
  75. font-size: 1em;
  76. font-weight: 500;
  77. font-family: inherit;
  78. background-color: #1a1a1a;
  79. cursor: pointer;
  80. transition: border-color 0.25s;
  81. }
  82. button:hover {
  83. border-color: #646cff;
  84. }
  85. button:focus,
  86. button:focus-visible {
  87. outline: 4px auto -webkit-focus-ring-color;
  88. }
  89. @media (prefers-color-scheme: light) {
  90. :root {
  91. color: #213547;
  92. background-color: #ffffff;
  93. }
  94. a:hover {
  95. color: #747bff;
  96. }
  97. button {
  98. background-color: #f9f9f9;
  99. }
  100. }