merapihkan card
This commit is contained in:
parent
a0efd7d8b3
commit
f6ceabc9e6
@ -198,14 +198,50 @@ body {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.gameboard {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
padding: 25px 40px;
|
||||
box-sizing: border-box;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
perspective: 1000px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.play-again { background: #b700ff; color: white; }
|
||||
.leaderboard { background: gold; }
|
||||
.back-menu { background: #444; color: white; } /* ← DITAMBAHKAN */
|
||||
.back-menu { background: #444; color: white; }
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity:0; transform: scale(0.8); }
|
||||
to { opacity:1; transform: scale(1); }
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.gameboard {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
padding: 20px;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.gameboard {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
padding: 14px;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -200,10 +200,42 @@ body {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.gameboard {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
padding: 25px 40px;
|
||||
box-sizing: border-box;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 100%;
|
||||
aspect-ratio: 4 / 3;
|
||||
perspective: 1000px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.play-again { background: #b700ff; color: white; }
|
||||
.leaderboard { background: gold; }
|
||||
.back-menu { background: #444; color: white; }
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.gameboard {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
padding: 20px;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.gameboard {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
padding: 14px;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user