forked from a01sa01to/NervousBreakdown
-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
134 lines (130 loc) · 2.93 KB
/
style.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
@import url("https://fonts.googleapis.com/css?family=Kosugi+Maru|M+PLUS+Rounded+1c|Noto+Sans+JP|Poppins&display=swap");
@keyframes fadein {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fadeout {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes hideCard {
0% {
background: #fff;
transform: rotateY(0deg);
}
100% {
background: #000;
transform: rotateY(-180deg);
}
}
@keyframes showCard {
0% {
background: #000;
transform: rotateY(180deg);
}
100% {
background: #fff;
transform: rotateY(0deg);
}
}
h1, h2, h3, h4, h5, h6, p {
width: max-content;
margin: 8px;
text-align: center;
}
button {
font-size: 24px;
padding: 12px;
margin: auto;
display: block;
}
html {
width: 100vw;
height: 100vh;
margin: 0;
box-sizing: border-box;
}
body {
font-family: Poppins, "Kosugi Maru", "M PLUS Rounded 1c", "Noto Sans Japanese", sans-serif;
width: 100vw;
height: 100vh;
margin: 0;
box-sizing: border-box;
display: grid;
grid-template-areas: ". . ." ". i ." ". . .";
grid-template-columns: 0.5fr max-content 0.5fr;
grid-template-rows: 0.5fr max-content 0.5fr;
}
body .container {
width: max-content;
height: max-content;
grid-area: i;
}
body .container.game-phase {
display: grid;
width: 80vh;
height: 100vh;
grid-template-areas: "btn" "board";
grid-template-rows: 20vh 80vh;
}
body .container.game-phase .buttonsContainer {
grid-area: btn;
}
body .container.game-phase .boardContainer {
grid-area: board;
display: grid;
--cardSize: calc((80vh - 60px) / 6);
gap: 10px;
grid-template-areas: "a b c d e f" "g h i j k l" "m n o p q r" "s t u v w x" "y z A B C D" "E F G H I J";
grid-template-columns: var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize);
grid-template-rows: var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize) var(--cardSize);
}
body .container.game-phase .boardContainer .card {
width: var(--cardSize);
height: var(--cardSize);
border: 1px #aaa solid;
transform: rotateY(180deg);
background: #000;
color: #000;
font-size: calc(var(--cardSize) - 40px);
display: grid;
grid-template-areas: ". . ." ". icon ." ". . .";
grid-template-columns: 0.5fr max-content 0.5fr;
grid-template-rows: 0.5fr max-content 0.5fr;
animation: hideCard 500ms;
}
body .container.game-phase .boardContainer .card i {
display: block;
grid-area: icon;
}
body .container.game-phase .boardContainer .card.clicked {
transform: rotateY(0deg);
animation: showCard 500ms;
background: #fff;
}
body .container.game-phase .boardContainer .card.aligned {
animation-play-state: paused;
background: #fff;
color: #f00;
}
body .container.end {
font-size: 20px;
}
body .container.fadein {
animation: fadein 700ms;
}
body .container.fadeout {
animation: fadeout 700ms;
}
body .container:not(.showing) {
display: none;
}
/*# sourceMappingURL=style.css.map */