style.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. :root {
  2. font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
  3. "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
  4. sans-serif;
  5. font-size: 16px;
  6. line-height: 24px;
  7. font-weight: 400;
  8. color-scheme: light dark;
  9. color: rgba(255, 255, 255, 0.87);
  10. background-color: rgba(27, 38, 54, 1);
  11. font-synthesis: none;
  12. text-rendering: optimizeLegibility;
  13. -webkit-font-smoothing: antialiased;
  14. -moz-osx-font-smoothing: grayscale;
  15. -webkit-text-size-adjust: 100%;
  16. }
  17. * {
  18. user-select: none;
  19. -webkit-user-select: none;
  20. -moz-user-select: none;
  21. -ms-user-select: none;
  22. }
  23. @font-face {
  24. font-family: "Inter";
  25. font-style: normal;
  26. font-weight: 400;
  27. src: local(""),
  28. url("./Inter-Medium.ttf") format("truetype");
  29. }
  30. h3 {
  31. font-size: 3em;
  32. line-height: 1.1;
  33. }
  34. a {
  35. font-weight: 500;
  36. color: #646cff;
  37. text-decoration: inherit;
  38. }
  39. a:hover {
  40. color: #535bf2;
  41. }
  42. button {
  43. width: 60px;
  44. height: 30px;
  45. line-height: 30px;
  46. border-radius: 3px;
  47. border: none;
  48. margin: 0 0 0 20px;
  49. padding: 0 8px;
  50. cursor: pointer;
  51. }
  52. .result {
  53. height: 20px;
  54. line-height: 20px;
  55. }
  56. body {
  57. margin: 0;
  58. display: flex;
  59. place-items: center;
  60. place-content: center;
  61. min-width: 320px;
  62. min-height: 100vh;
  63. }
  64. .container {
  65. display: flex;
  66. flex-direction: column;
  67. align-items: center;
  68. justify-content: center;
  69. }
  70. h1 {
  71. font-size: 3.2em;
  72. line-height: 1.1;
  73. }
  74. #app {
  75. max-width: 1280px;
  76. margin: 0 auto;
  77. text-align: center;
  78. }
  79. .result {
  80. height: 20px;
  81. line-height: 20px;
  82. margin: 1.5rem auto;
  83. text-align: center;
  84. }
  85. .footer {
  86. margin-top: 1rem;
  87. align-content: center;
  88. text-align: center;
  89. }
  90. @media (prefers-color-scheme: light) {
  91. :root {
  92. color: #213547;
  93. background-color: #ffffff;
  94. }
  95. a:hover {
  96. color: #747bff;
  97. }
  98. button {
  99. background-color: #f9f9f9;
  100. }
  101. }
  102. .input-box .btn:hover {
  103. background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
  104. color: #333333;
  105. }
  106. .input-box .input {
  107. border: none;
  108. border-radius: 3px;
  109. outline: none;
  110. height: 30px;
  111. line-height: 30px;
  112. padding: 0 10px;
  113. color: black;
  114. background-color: rgba(240, 240, 240, 1);
  115. -webkit-font-smoothing: antialiased;
  116. }
  117. .input-box .input:hover {
  118. border: none;
  119. background-color: rgba(255, 255, 255, 1);
  120. }
  121. .input-box .input:focus {
  122. border: none;
  123. background-color: rgba(255, 255, 255, 1);
  124. }