質問編集履歴

1

内容追加

2016/12/09 03:37

投稿

-1an.vvks-
-1an.vvks-

スコア71

test CHANGED
File without changes
test CHANGED
@@ -39,3 +39,419 @@
39
39
 
40
40
 
41
41
  animation:none;も効きませんでした。
42
+
43
+
44
+
45
+ ###詳細
46
+
47
+ ヘッダの左端の丸(<a id="siteLogo" href="../index.html"></a>)にアイコン画像が入ります。
48
+
49
+ ```html
50
+
51
+ <!DOCTYPE html>
52
+
53
+
54
+
55
+ <html lang="ja">
56
+
57
+
58
+
59
+ <head>
60
+
61
+ <meta charset="utf-8">
62
+
63
+ <meta name="format-detection" content="telephone=no">
64
+
65
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
66
+
67
+ <title id="title">おすすめ映画 BEST 10 | ENJOY CINEMAS!</title>
68
+
69
+ <link rel="stylesheet" href="rank.css">
70
+
71
+ </head>
72
+
73
+
74
+
75
+ <body>
76
+
77
+
78
+
79
+ <header>
80
+
81
+ <input id="menuButtonInput" type="checkbox"></input>
82
+
83
+ <label id="menuButton" for="menuButtonInput"></label>
84
+
85
+ <ul id="menuItemContainer">
86
+
87
+ <li><a href="../aboutMe.html">About</a></li>
88
+
89
+ <li><a href="../index.html#topViewArticleContainer">Article</a></li>
90
+
91
+ <li><a href="../copyRight.html">Copyright</a></li>
92
+
93
+ </ul>
94
+
95
+ <a id="siteLogo" href="../index.html"></a>
96
+
97
+ </header>
98
+
99
+
100
+
101
+ <article id="movieInfoContainer">
102
+
103
+
104
+
105
+ <!--省略-->
106
+
107
+
108
+
109
+ </article>
110
+
111
+
112
+
113
+ </body>
114
+
115
+
116
+
117
+ </html>
118
+
119
+ ```
120
+
121
+
122
+
123
+ ```css
124
+
125
+ *{padding:0;margin:0;box-sizing:border-box;}
126
+
127
+ html,body{
128
+
129
+ position:relative;
130
+
131
+ top:0;
132
+
133
+ overflow-x:hidden;
134
+
135
+ width:100vw;
136
+
137
+ font-size:17px;
138
+
139
+ -webkit-text-size-adjust:100%;
140
+
141
+ }
142
+
143
+
144
+
145
+ body{background:#eee;font-family:sans-serif;}
146
+
147
+
148
+
149
+ a:link,a:visited{text-decoration:none;}
150
+
151
+ ul> li{list-style-type:none;}
152
+
153
+
154
+
155
+ header{
156
+
157
+ position:fixed;
158
+
159
+ top:0;left:0;
160
+
161
+ z-index:3;
162
+
163
+ transition:0.5s;
164
+
165
+ width:100vw;
166
+
167
+ height:10vh;
168
+
169
+ text-align:right;
170
+
171
+ background:#333;
172
+
173
+ }
174
+
175
+ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
176
+
177
+ #siteLogo{
178
+
179
+ display:inline-block;
180
+
181
+ position:absolute;
182
+
183
+ top:0.5vh;
184
+
185
+ left:0.5vh;
186
+
187
+ width:9vh;
188
+
189
+ height:9vh;
190
+
191
+ background: url("../img/enjoyCinemasIcon.png") 0 0 / contain;
192
+
193
+ border-radius:9vh;
194
+
195
+ }
196
+
197
+ #siteLogo:hover{
198
+
199
+ animation: myspin 0.7s linear infinite;
200
+
201
+ }
202
+
203
+ @keyframes myspin {
204
+
205
+ 0%{transform:rotate(0deg);}
206
+
207
+ 100%{transform:rotate(360deg);}
208
+
209
+ }
210
+
211
+ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
212
+
213
+
214
+
215
+ #menuButtonInput,
216
+
217
+ #menuButton{display:none;z-index:1;}
218
+
219
+
220
+
221
+ #menuItemContainer{
222
+
223
+ display:inline-block;
224
+
225
+ overflow:hidden;
226
+
227
+ width:70vw;
228
+
229
+ height:10vh;
230
+
231
+ text-align:right;
232
+
233
+ padding-right:10vh;
234
+
235
+ }
236
+
237
+
238
+
239
+ #menuItemContainer >li{
240
+
241
+ display:inline-block;
242
+
243
+ height:10vh;
244
+
245
+ color:#fff;
246
+
247
+ font-size:calc(10vh / 3);
248
+
249
+ padding:calc(10vh / 3) 0;
250
+
251
+ }
252
+
253
+
254
+
255
+ #menuItemContainer >li >a{
256
+
257
+ position:relative;
258
+
259
+ transition:0.5s;
260
+
261
+ font-size:calc(10vh / 3);
262
+
263
+ height:10vh;
264
+
265
+ padding:0 3vh;
266
+
267
+ }
268
+
269
+ #menuItemContainer >li >a::after{
270
+
271
+ content:"";
272
+
273
+ display:inline-block;
274
+
275
+ position:absolute;
276
+
277
+ top:4vh;
278
+
279
+ left:50%;
280
+
281
+ transition-duration:0.5s;
282
+
283
+ width:0;
284
+
285
+ height:2px;
286
+
287
+ background:rgba(255,255,255,0.5);
288
+
289
+ }
290
+
291
+ #menuItemContainer >li >a:link,
292
+
293
+ #menuItemContainer >li >a:visited{color:white;}
294
+
295
+ #menuItemContainer >li >a:hover::after{left:0;width:100%;}
296
+
297
+
298
+
299
+ #movieInfoContainer{
300
+
301
+ font-size:17px;/*:::base-font-size:::*/
302
+
303
+ margin:100vh 15vw 5vw 15vw;
304
+
305
+ padding:5vw;
306
+
307
+ background:#fff;
308
+
309
+ }
310
+
311
+
312
+
313
+
314
+
315
+ @media screen and (max-width:80vh) {
316
+
317
+
318
+
319
+ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
320
+
321
+ #siteLogo{
322
+
323
+ display:inline-block;
324
+
325
+ width:15vh;
326
+
327
+ height:15vh;
328
+
329
+ border-radius:15vh;
330
+
331
+ border:2px solid #555;
332
+
333
+ margin:0.5vh;
334
+
335
+ }
336
+
337
+ #siteLogo:hover{
338
+
339
+ border:5px solid #777;
340
+
341
+ box-shadow:0 0 2px 3px #aaa;
342
+
343
+ transition:0.1s;animation-name:myspin; /*最初にanimation-name:none;を試すも効かず*/
344
+
345
+ }
346
+
347
+ @keyframes myspin{
348
+
349
+ 0%{transform:rotate(0deg);}
350
+
351
+ 100%{transform:rotate(0deg);}
352
+
353
+ }
354
+
355
+ /*■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
356
+
357
+
358
+
359
+ #menuButton{
360
+
361
+ display:inline-block;
362
+
363
+ position:relative;
364
+
365
+ width:10vh;height:10vh;
366
+
367
+ }
368
+
369
+ #menuButton::before{
370
+
371
+ content:"";
372
+
373
+ display:inline-block;
374
+
375
+ position:absolute;
376
+
377
+ top:1.25vh;
378
+
379
+ left:1vh;
380
+
381
+ width:8vh;
382
+
383
+ height:1.5vh;
384
+
385
+ background:#fff;
386
+
387
+ border-radius:0.5vh;
388
+
389
+ box-shadow: 0 3vh #fff, 0 6vh #fff;
390
+
391
+ }
392
+
393
+
394
+
395
+ #menuButtonInput:checked ~ #menuItemContainer{height:90vh;padding-top:10vh;}
396
+
397
+
398
+
399
+ #menuItemContainer{
400
+
401
+ position:absolute;
402
+
403
+ top:10vh;
404
+
405
+ left:0;
406
+
407
+ transition:0.5s;
408
+
409
+ width:100vw;
410
+
411
+ height:0;
412
+
413
+ background:rgba(0,0,0,0.65);
414
+
415
+ }
416
+
417
+ #menuItemContainer > li >a{
418
+
419
+ display:inline-block;
420
+
421
+ width:80vw;
422
+
423
+ height:3em;
424
+
425
+ text-align:center;
426
+
427
+ background:#444;
428
+
429
+ border-radius:0.5vh;
430
+
431
+ border-top:3px solid #666;
432
+
433
+ border-bottom:3px solid #666;
434
+
435
+ margin:5vh 8vw 5vh 12vw;
436
+
437
+ padding:1em;
438
+
439
+ }
440
+
441
+ #menuItemContainer > li >a::after{top:0;height:9vh;}
442
+
443
+
444
+
445
+ #movieInfoContainer{
446
+
447
+ font-size:24px;/*:::base-font-size:::*/
448
+
449
+ margin:calc(90vh + 5vw) 5vw 5vw 5vw;
450
+
451
+ }
452
+
453
+ }
454
+
455
+
456
+
457
+ ```