Files
minesweeper/styles.css
2023-08-07 10:21:42 +02:00

139 lines
2.3 KiB
CSS

:root {
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
/* Verdana , Avenir, Helvetica, Arial, sans-serif */
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
.board{
text-align: center;
}
.container {
margin: 0;
padding: 10vh;
display: flex;
/* flex-direction: column; */
justify-content: center;
text-align: center;
vertical-align: middle;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}
.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
}
.row {
display: flex;
justify-content: center;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
button {
cursor: pointer;
}
.button-hidden {
vertical-align: middle;
text-align: center;
border-radius: 8px;
border: 1px solid transparent;
font-weight: 500;
color: #0f0f0f98;
background-color: #0f0f0f98;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
height: 50px;
width: 50px;
margin: 2px;
transition: background-color 0.5s;
-webkit-transition: background-color 0.5s;
}
.button-shown {
vertical-align: middle;
text-align: center;
border-radius: 8px;
border: 1px solid transparent;
font-size: 20px;
font-weight: 500;
/* color: #2f2f2f; */
background-color: #2f2f2f;
height: 50px;
width: 50px;
margin: 2px;
}
.button-hidden:hover {
background-color: #262626;
transition: background-color 0.5s;
-webkit-transition: background-color 0.5s;
}
.button-hidden:active {
background-color: #2f2f2f;
transition: background-color 0.5s;
-webkit-transition: background-color 0.5s;
}
.button-shown:active {
background-color: #2f2f2f;
transition: background-color 0.5s;
-webkit-transition: background-color 0.5s;
}
input,
button {
outline: none;
}
@media (prefers-color-scheme: dark) {
:root {
/* color: #f6f6f6; */
background-color: #2f2f2f;
}
a:hover {
color: #24c8db;
}
input,
button {
color: #ffffff;
background-color: #0f0f0f98;
}
button:active {
background-color: #0f0f0f69;
}
}