-
Notifications
You must be signed in to change notification settings - Fork 0
/
mystyle.css
58 lines (55 loc) · 1.24 KB
/
mystyle.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
body{
animation: fadeIn 2s ease 0s 1 normal;
-webkit-animation: fadeIn 2s ease 0s 1 normal;
background: rgb(252, 217, 195);
}
@keyframes fadeIn {
0% {opacity: 0}
100% {opacity: 1}
}
@-webkit-keyframes fadeIn {
0% {opacity: 0}
100% {opacity: 1}
}
#container {
display: grid;
width = 100%;
grid-template-columns: minmax(200px, 1fr) repeat(auto-fit,minmax(150px, 1fr));
/*minmax関数によってviewの広さに合わせて勝手に大きさを変えてくれる*/
grid-auto-rows: minmax(150px, auto);
grid-row-gap: 5px;
grid-column-gap: 5px;
}
.hover{
transition: all 400ms 0s ease;
background: lightblue;
/*padding: 20px;*/
font-size: 30px;
color: white;
border:3px #ffffff solid;
}
.hover a{
display:block;
width: 100%; /* 横幅 */
height: 100%;
}
.hover:hover{
border:3px #5f5a5a solid;
}
.hover:nth-child(odd) {
background: orange;
}
.item{
background: lightblue;
padding: 20px;
font-size: 30px;
color: white;
border:3px #ffffff solid;
}
.item:nth-child(odd) {
background: orange;
}
#side{/*idで指定してあげて一個だけ固定するというような使い方もできる*/
grid-row: 1; grid-column: 1;
grid-row: span 2;
}