hello-wordl/src/App.css

243 lines
3.4 KiB
CSS
Raw Normal View History

2021-12-31 03:43:09 +02:00
* {
box-sizing: border-box;
}
2021-12-31 03:43:09 +02:00
body {
text-align: center;
background-color: #eeeeee;
}
2022-01-01 04:04:48 +02:00
.Row {
2021-12-31 03:43:09 +02:00
display: flex;
2022-01-18 15:02:08 +02:00
align-items: center;
2021-12-31 03:43:09 +02:00
justify-content: center;
}
2022-01-01 04:04:48 +02:00
.Row-letter {
2021-12-31 03:43:09 +02:00
margin: 2px;
2022-01-18 00:25:44 +02:00
border: 2px solid rgba(128, 128, 128, 0.8);
2022-01-15 21:12:56 +02:00
flex: 1;
max-width: 40px;
2021-12-31 03:43:09 +02:00
height: 40px;
font-size: 28px;
display: flex;
justify-content: center;
2021-12-31 03:43:09 +02:00
align-items: center;
text-transform: uppercase;
font-weight: bold;
}
2022-01-18 15:02:08 +02:00
.Row-annotation {
margin-inline-start: 16px;
width: 5em;
text-align: start;
}
2022-01-03 17:17:36 +02:00
.App-container {
position: relative;
max-width: 500px;
2022-01-01 20:14:50 +02:00
display: flex;
flex-direction: column;
margin: 0 auto;
justify-content: center;
}
2022-01-03 17:17:36 +02:00
.App-container h1 {
margin-top: 0;
}
2022-01-18 00:25:44 +02:00
.Game,
h1 {
user-select: none;
}
2022-01-01 20:14:50 +02:00
.Game {
display: flex;
flex-direction: column;
}
2022-01-14 01:16:27 +02:00
table.Game-rows {
margin: auto;
2022-01-15 21:12:56 +02:00
display: flex;
flex-direction: column;
}
table.Game-rows:focus {
outline: none;
}
table.Game-rows > tbody {
display: flex;
flex-direction: column;
2022-01-14 01:16:27 +02:00
}
2022-01-01 04:04:48 +02:00
.Game-keyboard {
display: flex;
flex-direction: column;
}
.Game-keyboard-row {
display: flex;
flex-direction: row;
2022-01-01 20:14:50 +02:00
justify-content: stretch;
2022-01-01 04:04:48 +02:00
}
.Game-keyboard-button {
margin: 2px;
background-color: #cdcdcd;
2022-01-01 20:14:50 +02:00
padding: 2px;
2022-01-01 04:04:48 +02:00
text-transform: capitalize;
border-radius: 4px;
2022-01-01 20:14:50 +02:00
min-height: 40px;
display: flex;
flex: 1;
align-items: center;
justify-content: center;
font-size: 20px;
2022-01-01 04:04:48 +02:00
color: inherit;
text-decoration: inherit;
2022-01-01 20:35:03 +02:00
border: 2px solid transparent;
2022-01-01 04:04:48 +02:00
cursor: pointer;
}
2022-01-01 20:14:50 +02:00
.Game-keyboard-button-wide {
flex: 2;
}
2022-01-01 04:04:48 +02:00
.Game-keyboard-button:focus {
outline: none;
}
.letter-correct {
2022-01-01 20:35:03 +02:00
border: 2px solid rgba(0, 0, 0, 0.3);
2022-01-18 00:25:44 +02:00
background-color: rgb(87, 172, 120);
color: white !important;
}
2022-01-01 04:04:48 +02:00
.letter-elsewhere {
2022-01-01 20:35:03 +02:00
border: 2px dotted rgba(0, 0, 0, 0.3);
2021-12-31 03:43:09 +02:00
background-color: #e9c601;
2022-01-18 00:25:44 +02:00
color: white !important;
}
2022-01-01 04:04:48 +02:00
.letter-absent {
2022-01-01 20:35:03 +02:00
border: 2px solid transparent;
2021-12-31 03:43:09 +02:00
background-color: rgb(162, 162, 162);
2022-01-18 00:25:44 +02:00
color: white !important;
}
2022-01-02 02:52:58 +02:00
2022-01-18 00:25:44 +02:00
body.dark {
background-color: #404040;
color: #e0e0e0;
}
2022-01-02 22:27:53 +02:00
2022-01-18 00:25:44 +02:00
body.dark .Game-keyboard-button {
color: #404040;
2022-01-02 02:52:58 +02:00
}
2022-01-02 22:27:53 +02:00
a,
a:visited {
2022-01-02 02:52:58 +02:00
color: #8080ff;
}
a:active {
color: #cc77ff;
}
2022-01-03 01:08:23 +02:00
.Game-options {
2022-01-02 22:27:53 +02:00
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}
2022-01-03 01:08:23 +02:00
.Game-options > * + * {
margin-inline-start: 0.5rem;
}
.Game-options button {
min-width: 4rem;
2022-01-02 22:27:53 +02:00
}
2022-01-02 02:52:58 +02:00
.App-footer {
2022-01-02 22:27:53 +02:00
margin: -1rem 0 2rem 0;
2022-01-02 02:52:58 +02:00
font-size: 80%;
2022-01-03 17:17:36 +02:00
line-height: 1.5;
2022-01-02 02:52:58 +02:00
}
2022-01-03 17:17:36 +02:00
.App-about {
margin-top: -1rem;
line-height: 1.4;
2022-01-08 01:01:19 +02:00
}
2022-01-18 15:02:08 +02:00
.App-about b {
background-color: #888;
color: white;
padding: 1px 3px;
border-radius: 2px;
}
.App-about b.green-bg {
background-color: rgb(87, 172, 120);
}
.App-about b.yellow-bg {
background-color: #e9c601;
}
2022-01-08 01:01:19 +02:00
.Game-seed-info {
opacity: 0.5;
margin-top: 1em;
font-variant-numeric: tabular-nums;
}
2022-01-12 18:40:23 +02:00
2022-01-14 01:16:27 +02:00
.Game-sr-feedback,
.sr-only {
2022-01-12 18:40:23 +02:00
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
2022-01-18 00:25:44 +02:00
.Settings {
text-align: left;
font-size: 18px;
}
.Settings-setting {
margin: 8px;
display: flex;
2022-01-22 18:46:14 +02:00
align-items: top;
2022-01-18 00:25:44 +02:00
}
.Settings-setting input {
width: 18px;
height: 18px;
}
2022-01-22 18:46:14 +02:00
.Settings-setting input[type=range] {
width: 50px;
height: 18px;
}
2022-01-18 00:25:44 +02:00
.Settings-setting label {
margin-inline-start: 8px;
}
.top-right {
position: absolute;
top: 5px;
right: 5px;
}
.emoji-link {
font-size: 150%;
text-decoration: none;
}
.top-right a + a {
margin-inline-start: 8px;
}