Skip to content

Commit 15a29a7

Browse files
authored
Update testi.html
1 parent 7e2fc20 commit 15a29a7

1 file changed

Lines changed: 28 additions & 11 deletions

File tree

testi.html

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,58 @@
1717
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
1818
}
1919

20+
.container {
21+
width: 60vw; /* kello ja logo vievät 60% leveydestä */
22+
max-width: 1152px; /* 60% Full HD:stä */
23+
display: flex;
24+
flex-direction: column;
25+
align-items: center;
26+
justify-content: center;
27+
}
28+
2029
.logo {
21-
height: 15%; /* logo 15% näytön korkeudesta */
22-
max-height: 200px; /* maksimikorkeus */
23-
width: auto; /* leveys suhteessa korkeuteen */
30+
height: auto;
31+
max-height: 200px;
32+
width: 100%; /* logo täyttää containerin leveyden */
33+
object-fit: contain;
2434
margin-bottom: 20px;
2535
}
2636

2737
.time {
28-
font-weight: 500; /* kevyt teksti */
29-
font-size: 55vh; /* 55% näytön korkeudesta, sopii 1080p */
38+
font-weight: 500;
39+
font-size: 55vh; /* korkeus 55% näytöstä */
3040
line-height: 1;
3141
letter-spacing: 0.05em;
3242
text-align: center;
43+
width: 100%;
3344
}
3445

35-
/* Pieniä näyttöjä varten */
46+
/* Pienille näytöille */
3647
@media (max-width: 1920px), (max-height: 1080px) {
3748
.time {
38-
font-size: 50vh; /* pienempi fontti pienemmille näytöille */
49+
font-size: 50vh;
3950
}
4051
}
4152

4253
@media (max-width: 600px) {
54+
.container {
55+
width: 90vw;
56+
}
4357
.logo {
44-
height: 20%;
58+
height: auto;
59+
max-height: 150px;
4560
}
4661
.time {
47-
font-size: 40vh; /* pienille mobiilinäytöille */
62+
font-size: 40vh;
4863
}
4964
}
5065
</style>
5166
</head>
5267
<body>
53-
<img src="prassi-logo.png" alt="Prassi logo" class="logo">
54-
<div class="time" id="clock">00:00:00</div>
68+
<div class="container">
69+
<img src="prassi-logo.png" alt="Prassi logo" class="logo">
70+
<div class="time" id="clock">00:00:00</div>
71+
</div>
5572

5673
<script>
5774
function z(n) { return n < 10 ? '0' + n : n; }

0 commit comments

Comments
 (0)