-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
112 lines (93 loc) · 1.69 KB
/
app.css
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
103
104
105
106
107
108
109
110
111
112
pre {
overflow: hidden;
}
.game {
padding:1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
height:100vh;
gap: 0.5rem;
}
.game > * {
height: calc(100% / 10)
}
.game__status {
flex: 10;
}
.game__score {
flex: 1 1 0%;
font-size: 1.5rem;
display: flex;
align-items: center;
justify-content: space-around;
}
.game__choices {
flex: 3 0 20%;
}
.message-list {
height: calc(100%);
overflow: auto;
display: flex;
flex-direction: column;
margin-right: -2rem;
padding-right: 2rem;
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
.message {
animation-name: fadeIn;
animation-duration: 0.5s;
animation-timing-function: ease-in-out;
}
.message.-left {
align-self: flex-start;
}
.message.-right {
align-self: flex-end;
}
.message.-left i {
margin-right: 2rem;
}
.message.-right i {
margin-left: 2rem;;
}
.message-list .nes-mario {
transform: scaleX(-1);
}
.game__choices {
display: flex;
gap: 1rem;
justify-content: space-around;
}
.game__choices .nes-badge {
margin: auto;
}
.game__choices > * {
max-width: calc(33% - 2rem);
display: flex;
flex-direction: column;
}
.game__choices [class$="--assci"] {
padding:0;
margin: 0 -1.5rem;
}
.game__choices [class^="game__choices_"] {
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: silver;
color: black;
}
.game__choices .selected,
.game__choices .selected [class$="--assci"] {
background-color:white;
}
.game__choices .nes-badge {
display: none;
}
.game__choices .selected .nes-badge {
display: block;
}