style.css 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. :root {
  2. line-height: 1.5;
  3. font-weight: 400;
  4. color-scheme: light dark;
  5. color: #333333;
  6. background-color: #ffffff;
  7. font-synthesis: none;
  8. text-rendering: optimizeLegibility;
  9. -webkit-font-smoothing: antialiased;
  10. -moz-osx-font-smoothing: grayscale;
  11. --app-rpx:calc(100vw / 375);
  12. }
  13. a {
  14. font-weight: 500;
  15. color: #646cff;
  16. text-decoration: inherit;
  17. }
  18. a:hover {
  19. color: #747bff;
  20. }
  21. body {
  22. margin: 0;
  23. display: flex;
  24. place-items: center;
  25. min-width: 320px;
  26. min-height: 100vh;
  27. }
  28. h1 {
  29. font-size: 3.2em;
  30. line-height: 1.1;
  31. }
  32. button {
  33. border-radius: 8px;
  34. border: 1px solid transparent;
  35. padding: 0.6em 1.2em;
  36. font-size: 1em;
  37. font-weight: 500;
  38. /* font-family: inherit; */
  39. background-color: #1a1a1a;
  40. cursor: pointer;
  41. transition: border-color 0.25s;
  42. }
  43. button:hover {
  44. border-color: #646cff;
  45. }
  46. button:focus,
  47. button:focus-visible {
  48. outline: 4px auto -webkit-focus-ring-color;
  49. }
  50. .card {
  51. padding: 2em;
  52. }
  53. #app {
  54. width: 100%;
  55. height: 100vh;
  56. }
  57. @media (prefers-color-scheme: light) {
  58. :root {
  59. color: #333333;
  60. background-color: #ffffff;
  61. }
  62. a:hover {
  63. color: #747bff;
  64. }
  65. button {
  66. background-color: #f9f9f9;
  67. }
  68. }