-
Notifications
You must be signed in to change notification settings - Fork 0
/
memoire.css
230 lines (227 loc) · 4.42 KB
/
memoire.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/*contour du quadrillage des tuiles*/
#jeu{
width:600px;
position: absolute;
left:50%;
top:40%;
transform:translate(-50%,-40%);
}
.tuile{
width:40px;
height:40px;
background:#fff;
border-radius:10%;
display:inline-block;
margin:0 auto 0 auto;
box-shadow: 0 9px #999;
border-radius:15%;
transform:translateY(0%);
}
/*tuile qui descend et remonte*/
@keyframes activation{
from{
transform:translateY(0%);
box-shadow: 0 9px #999;
background:#fff;
}
50%{
transform:translateY(10%);
box-shadow: 0 5px #999;
background:hsl(10, 100%, 80%);
}
to{
transform;translateY(0%);
box-shadow: 0 9px #999;
background:#fff;
}
}
/*rangee de tuiles*/
.rangee{
display:flex;
justify-content:space-between;
height:30px;
margin:10%;
}
/*tous les boutons qui déclenche le jeu*/
.btn-declenche{
cursor:pointer;
background:#449dd1;
border:2px dashed white;
color:white;
font:1.5em 'Potta One';
padding:0.5em 1em;
box-shadow: 0 9px #999;
border-radius:15%;
outline:none;
transition:all 0.5s;
}
.btn-declenche:active{
background:#26729E;
box-shadow: 0 5px #666;
}
/* Boutons spécifiques*/
/* Span pour gérer le texte dans le boutons*/
#btn-depart span{
background:none;
display:inline-block;
position:relative;
transition:0.5s;
}
#btn-depart span:after{
content: '\00bb';
position:absolute;
opacity:0;
top:0;
right: -20px;
transition:0.5s;
}
#btn-depart:hover span{
padding-right:20px;
}
#btn-depart:hover span:after{
opacity:1;
right:0;
}
#btn-depart{
position:absolute;
bottom:7%;
left:50%;
transform:translate(-50%, -5%);
}
#btn-depart:active{
transform: translate(-50%, 1%);
}
#btn-go span{
background:none;
display:inline-block;
position:relative;
transition:0.5s;
}
#btn-go span:after{
content: '\00bb';
position:absolute;
opacity:0;
top:0;
right: -30px;
transition:0.5s;
}
#btn-go:hover span{
padding-right:30px;
}
#btn-go:hover span:after{
opacity:1;
right:0;
}
#btn-plus, #btn-moins{
cursor:pointer;
border:2px dashed white;
color:white;
font:1em 'Potta One';
height:55px;
width:15%;
border-radius:15%;
line-height:0.5em;
outline:none;
transition:all 0.5s;
margin:0 5%;
box-shadow: 0 5px #999;
transform:translateY(0%);
transition:all 0.5s;
}
#btn-plus:active, #btn-moins:active{
animation:petite-activation 0.5s 1;
}
#btn-moins{
background:#f2161c;
}
#btn-plus{
background:#8fc035;
}
/*Clique d'un bouton plus ou moins, différent de la tuile*/
@keyframes petite-activation{
from{
transform:translateY(0%);
box-shadow: 0 5px #999;
}
50%{
transform:translateY(10%);
box-shadow: 0 3px #999;
}
to{
transform;translateY(0%);
box-shadow: 0 5px #999;
}
}
/*Les fenetres d'affichage de résultats*/
.fenetre{
display: none;
position: fixed;
z-index: 1;
height: 100%;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
font-family:"Trebuchet MS";
font:1.5em 'Potta One';
}
.fenetre-contenu{
margin: 10% auto;
width: 60%;
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
animation-name: fenetre-ouvrir;
animation-duration: 1s;
background:#26729E;
padding: 15px;
color: #fff;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
display:flex;
flex-direction:column;
user-select:none;
}
.fenetre-entete{
padding: 15px;
color: #fff;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
display:flex;
justify-content:space-between;
}
.fenetre-corps{
padding: 10px 20px;
font-size:48px;
text-align:center;
display:flex;
justify-content:center;
align-items:center;
}
.fenetre-enpied{
padding: 10px;
color: #fff;
text-align: center;
align-content:center;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
font-size:24px;
}
/*Transitions fluide*/
@keyframes fenetre-ouvrir {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/*Fenetre spécifique*/
#entree > h1{
display:inline-block;
}
#reussite, #echec{
display:none;
}
#echec>div{
background:#e63946;
}
#btn-rejouer, #btn-recommencer{
border-radius:15px !important;
}