mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* example of function memory game * refactor: remove unnecessary manual PartialEq implementation * refactor: remove unnecessary license note * refactor: update implementation and doc with suggestions * refactor: fix format and lint issues
49 lines
713 B
SCSS
49 lines
713 B
SCSS
.game-progress {
|
|
width: 120px;
|
|
height: 100px;
|
|
padding: 10px;
|
|
background-color: #bbada0;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: #eae0d1;
|
|
|
|
span {
|
|
font-size: 19px;
|
|
font-weight: bold;
|
|
display: block;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
h2 {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 450px) {
|
|
.game-progress {
|
|
width: 105px;
|
|
span {
|
|
font-size: 17px;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 380px) {
|
|
.game-progress {
|
|
width: 95px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 360px) {
|
|
.game-progress {
|
|
width: 90px;
|
|
span {
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
}
|