MastermindReact/src/index.css

111 lines
1.6 KiB
CSS

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
font-size: 1rem;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--color-lightgreen: lightgreen;
--color-lightred: #FF7F7F;
padding: 0;
margin: 0;
}
:before, :after {
padding: 0;
margin: 0;
}
body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
place-items: center;
overflow-y: hidden;
overflow-x: hidden;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
cursor: pointer;
transition: border-color 0.25s;
overflow: hidden;
}
button:hover:enabled {
outline: 4px auto -webkit-focus-ring-color;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #213547;
}
button {
background-color: #f9f9f9;
}
}
@media (prefers-color-scheme: dark) {
:root {
color: white;
background-color: #7E99A3;
}
a:hover {
color: #747bff;
}
button {
background-color: #1a1a1a;;
}
a {
color: white;
}
a:hover {
color: white;
}
}
@media (max-width: 720px) {
:root {
font-size: clamp(0.75rem, -0.61rem + 0.86vw , 1rem);
}
}
@media (max-width: 256px) {
:root {
font-size: 0.75rem;
}
}