counter.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. input {
  14. font-size: 1.7rem;
  15. }
  16. .hidden {
  17. display: none;
  18. }
  19. .count-down {
  20. display: flex;
  21. justify-content: center;
  22. }
  23. .timer {
  24. padding: 1rem 1.5rem;
  25. }
  26. body {
  27. margin: 0;
  28. display: flex;
  29. place-items: center;
  30. min-width: 320px;
  31. min-height: 100vh;
  32. }
  33. h1 {
  34. font-size: 3.2em;
  35. line-height: 1.1;
  36. }
  37. #app {
  38. max-width: 1280px;
  39. margin: 0 auto;
  40. padding: 2rem;
  41. text-align: center;
  42. }
  43. .logo {
  44. height: 6em;
  45. padding: 1.5em;
  46. will-change: filter;
  47. transition: filter 300ms;
  48. }
  49. .logo:hover {
  50. filter: drop-shadow(0 0 2em #646cffaa);
  51. }
  52. .logo.vanilla:hover {
  53. filter: drop-shadow(0 0 2em #f7df1eaa);
  54. }
  55. .card {
  56. padding: 2em;
  57. }
  58. input {
  59. height: 1.5rem;
  60. padding: 0.5rem 1rem;
  61. margin: 0.5rem 1rem;
  62. }
  63. .read-the-docs {
  64. color: #888;
  65. }
  66. a {
  67. font-weight: 500;
  68. }
  69. a:hover {
  70. color: #535bf2;
  71. }
  72. .btn {
  73. color: #9ba0f8;
  74. text-decoration: none;
  75. display: inline-block;
  76. border-radius: 8px;
  77. border: 1px solid transparent;
  78. padding: 0.6em 1.2em;
  79. font-size: 1em;
  80. font-weight: 500;
  81. font-family: inherit;
  82. background-color: #1a1a1a;
  83. cursor: pointer;
  84. transition: border-color 0.25s;
  85. margin: 0.3rem 0.2rem;;
  86. }
  87. .btn-del {
  88. background-color: #e41c1c !important;
  89. color: white;
  90. }
  91. .btn-del:hover {
  92. border-color: #ffffff !important;
  93. background-color: #d10000 !important;
  94. }
  95. .btn:hover {
  96. border-color: #646cff;
  97. }
  98. .btn:focus,
  99. .btn:focus-visible {
  100. outline: 4px auto -webkit-focus-ring-color;
  101. }
  102. @media (prefers-color-scheme: light) {
  103. :root {
  104. color: #213547;
  105. background-color: #ffffff;
  106. }
  107. a:hover {
  108. color: #747bff;
  109. }
  110. .btn {
  111. background-color: #f9f9f9;
  112. }
  113. }