Skip to content

Commit a5408ee

Browse files
committed
feat: update modal component to be responsible
1 parent 237e49d commit a5408ee

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/library/pages/css/styles.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,24 @@ ul li a:hover {
397397
background-image: url('../images/close.png'); ;
398398
}
399399

400+
@media (max-width: 768px) {
401+
#modal {
402+
width: 90vw;
403+
max-width: 600px;
404+
max-height: 85vh;
405+
left: 50%;
406+
top: 50%;
407+
margin: 0;
408+
transform: translate(-50%, -50%);
409+
overflow-y: auto;
410+
}
411+
412+
#modal .modal-header,
413+
#modal .modal-body {
414+
padding: 12px;
415+
}
416+
}
417+
400418
/* Game image start */
401419
.game-images{
402420
background-image: url('../images/game-image-1.jpeg');

0 commit comments

Comments
 (0)