-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtetris.css
More file actions
102 lines (86 loc) · 1.61 KB
/
tetris.css
File metadata and controls
102 lines (86 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
html,
body {
margin: 0;
padding: 0;
font-family: "Press Start 2P", sans-serif;
background-color: #000;
color: #fff;
}
a:visited,
a:link {
color: #ddd;
&:hover {
color: #fff;
}
}
body {
display: flex;
flex-direction: column;
justify-content: center;
height: 100vh;
align-items: center;
}
.canvas-container {
display: grid;
/* flex-direction: column; */
grid-template-columns: 1fr 1fr;
/* align-items: center; */
gap: 1rem;
}
canvas {
border: 1px solid #888;
display: block;
margin: 0 auto;
background-color: #000;
font-family: "Press Start 2P";
font-weight: 400;
font-style: normal;
}
.info-container {
display: grid;
grid-template-columns: 1fr;
}
.game-log {
overflow-y: auto;
background-color: rgba(0, 0, 0, 0.5);
}
.game-log .log-message {
/* Aggiunge i puntini di sospensione per il testo che sborda */
margin-bottom: 10px;
opacity: 1;
transition: opacity 1s ease-out;
}
footer {
text-align: center;
margin-top: 1rem;
}
@media (max-width: 599px) {
.canvas-container {
/* flex-direction: row; */
grid-template-columns: auto;
width: 90%;
height: 90%;
}
.info-container {
grid-template-columns: 1fr 1fr;
}
.info-container {
/* width: 100%; */
max-width: 400px;
/* height: 100px; */
}
.game-log .log-message {
white-space: nowrap;
/* Impedisce che il testo vada a capo */
overflow: hidden;
/* Nasconde il testo che sborda */
text-overflow: ellipsis;
/* Aggiunge i puntini di sospensione per il testo che sborda */
}
footer {
opacity: 40%;
}
footer .author {
display: none;
}
}