cleanup css + game template
This commit is contained in:
parent
41b046232f
commit
d792837e74
43
game.css
43
game.css
|
@ -1,43 +0,0 @@
|
||||||
.games {
|
|
||||||
margin: 0 auto;
|
|
||||||
display: grid;
|
|
||||||
gap: 1rem;
|
|
||||||
grid-template-columns: repeat(1, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
|
||||||
.games { grid-template-columns: repeat(2, 1fr); }
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 900px) {
|
|
||||||
.games { grid-template-columns: repeat(3, 1fr); }
|
|
||||||
}
|
|
||||||
|
|
||||||
.game {
|
|
||||||
color: white;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.game p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.game img {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
.game-video{
|
|
||||||
opacity: 0;
|
|
||||||
transition: 0.5s ease;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.game:hover .game-video {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
|
@ -4,7 +4,6 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Bloub Bloub Studio</title>
|
<title>Bloub Bloub Studio</title>
|
||||||
<link rel="stylesheet" href="/style.css">
|
<link rel="stylesheet" href="/style.css">
|
||||||
<link rel="stylesheet" href="/game.css">
|
|
||||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -62,7 +61,7 @@
|
||||||
<source src="/assets/trailer/trailer.mp4" type="video/mp4">
|
<source src="/assets/trailer/trailer.mp4" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
</a>
|
</a>
|
||||||
<a href="/game1.html" class="game">
|
<a href="/game-template.html" class="game">
|
||||||
<img src="/assets/miniature/miniature.png" alt="GAME 1" />
|
<img src="/assets/miniature/miniature.png" alt="GAME 1" />
|
||||||
<video class="game-video" autoplay loop muted poster="/assets/miniature/miniature.png">
|
<video class="game-video" autoplay loop muted poster="/assets/miniature/miniature.png">
|
||||||
<source src="/assets/trailer/trailer.mp4" type="video/mp4">
|
<source src="/assets/trailer/trailer.mp4" type="video/mp4">
|
||||||
|
|
44
style.css
44
style.css
|
@ -101,3 +101,47 @@ nav > img {
|
||||||
width: 45px;
|
width: 45px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.games {
|
||||||
|
margin: 0 auto;
|
||||||
|
display: grid;
|
||||||
|
gap: 1rem;
|
||||||
|
grid-template-columns: repeat(1, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 600px) {
|
||||||
|
.games { grid-template-columns: repeat(2, 1fr); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 900px) {
|
||||||
|
.games { grid-template-columns: repeat(3, 1fr); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.game {
|
||||||
|
color: white;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game-video{
|
||||||
|
opacity: 0;
|
||||||
|
transition: 0.5s ease;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.game:hover .game-video {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue