Files
awo-hamburg-intranet/module/intranet/playground/wordle.css
2026-02-17 14:56:23 +01:00

230 lines
4.1 KiB
CSS

img, picture, video, canvas, svg {
display: block;
max-width: 100%;
}
input, button, textarea, select {
font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}
#root, #__next {
isolation: isolate;
}
.home {
background-color: #121213;
width: 100vw;
height: 100vh;
}
.header {
height: 70px;
width: 100vw;
position: absolute;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgb(255, 255, 255, 0.3);
padding: 0 30px;
}
.wordle {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.icon {
height: 30px;
fill: #fff;
}
.game-area-container{
@media (max-height: 800px){
}
}
.game-area {
height: auto;
width: 330px;
position: absolute;
left: 50%;
top: 20%;
transform: translateX(-50%);
display: flex;
flex-wrap: wrap;
}
.wordle-box {
border: 2px solid var(--border);
position: relative;
height: 60px;
color: var(--fc-dark);
width: 60px;
margin: 3px;
display: flex;
text-align: center;
justify-content: center;
}
.wordle-box span {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 30px;
font-weight: bold;
}
.keyboard {
position: absolute;
width: 525px;
left: 50%;
bottom: 0;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
transform: translateX(-50%);
}
@media (max-height: 800px){
.keyboard{
bottom: 10px;
}
}
@media (max-height: 750px){
.keyboard{
left: 50px;
transform: translateX(0);
}
}
.keyboard button {
background-color: var(--clr-mandant);
margin: 1px;
padding: 18px;
border-radius: 5px;
cursor: pointer;
font-size: 15px;
}
a.wordle_info {
position: fixed;
right: 2rem;
bottom: 2rem;
}
.warning-div {
position: absolute;
top: 100px;
left: 50%;
text-align: center;
transform: translateX(-50%);
background-color: var(--bg-white);
padding: 15px;
color: var(--fc-dark);
width: 200px;
border-radius: 5px;
font-weight: bold;
backface-visibility: hidden;
opacity: 0;
}
.green {
background-color: #538d4e;
border: 0;
transition: ease-in .2s;
}
div.keyboard button.green-letter{
background-color: #538d4e;
transition: ease-in .5s;
}
.yellow {
background-color: #b59f3b;
border: 0;
transition: ease-in .2s;
}
.keyboard button.yellow-letter{
background-color: #b59f3b;
transition: ease-in .5s;
}
.keyboard button.gray{
background-color: rgb(59, 59, 59);
transition: ease-out .5s;
}
.appear {
animation: appearDisappear 3s ease-in-out;
}
.addLetter {
animation: addLetter 0.1s ease-in-out;
border: 2px solid rgb(255, 255, 255, 0.3);
}
.makeGuess {
animation: makeGuess .5s ease-out;
}
.shake {
animation: shake 0.4s ease-in-out;
}
@keyframes addLetter {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
@keyframes makeGuess {
0% {
transform: scale(1);
}
50% {
transform: scale(1, 0);
}
100% {
transform: scale(1);
}
}
@keyframes shake {
0% {
transform: translateX(-6px);
}
20% {
transform: translateX(+5px);
}
40% {
transform: translateX(-4px);
}
60% {
transform: translateX(+3px);
}
80% {
transform: translateX(-2px);
}
100% {
transform: translateX(0);
}
}
@keyframes appearDisappear {
0% {
opacity: 0;
}
20% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
opacity: 0;
}
}
div#keyboard {
bottom: -600px;
}