-
Notifications
You must be signed in to change notification settings - Fork 0
/
a4css.css
92 lines (75 loc) · 1.51 KB
/
a4css.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
body{
background-color: antiquewhite;
}
footer{
text-align: center;
line-height: 5px;
font-size: small;
margin: 10px;
background-color:darkkhaki;
background-size: cover;
padding: 10px;
padding-top: 20px;
}
footer a{
color:blueviolet;
}
header{
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
margin: 10px;
animation-name: change;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-direction: alternate-reverse;
}
header h3{
font-family: monospace;
overflow: hidden;
white-space: nowrap;
animation: typing 5s steps(20, end) forwards;
font-size: 1.6rem;
width: 0;
color: blueviolet;
}
header img{
animation-name: shake;
animation-duration: 10s;
animation-iteration-count: infinite;
}
.grid-container{
display: grid;
grid-template-columns: auto auto auto;
grid-template-rows: auto;
}
.category{
display: grid;
grid-column-start:1;
grid-column-end: 2;
height: fit-content;
}
#itemlist{
display: grid;
grid-column-start: 2;
grid-column-end: 3;
text-align: center;
}
#cart{
display: grid;
grid-column-start: 3;
grid-column-end: 4;
width: fit-content;
}
@keyframes change{
0% {background-color:antiquewhite; }
100% {background-color:darksalmon; }
}
@keyframes shake{
from {transform: rotateY(0deg);}
to {transform: rotateY(360deg);}
}
@keyframes typing {
from { width: 0 }
to { width: 100% }
}