-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathstyle.css
125 lines (111 loc) · 1.8 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
:root {
--base-color: #333333;
--back-color: #f7f7f7;
}
body {
font-size: 1.5rem;
color: var(--base-color);
background-color: var(--back-color);
padding: 0px 30px;
}
a {
text-decoration: none;
color: var(--base-color);
}
a:hover {
text-decoration: underline;
}
/* header */
.header > .title::before {
content: "#";
margin-right: 10px;
}
/* main */
.collection {
width: 100%;
display: flex;
flex-wrap: wrap;
}
.category > .title::before {
content: "##";
margin-right: 10px;
}
.category > .title::after {
display: block;
content: "";
height: 2px;
background-color: var(--base-color);
}
.category + .category {
margin-top: 100px;
}
.card {
width: 320px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
margin: 20px;
}
.card:hover {
box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.2);
}
.card .title {
text-align: center;
margin: 20px 0;
}
.iframe-wrapper {
width: 320px;
height: 240px;
}
.iframe-wrapper .iframe {
width: calc(320px * 1.5);
height: calc(240px * 1.5);
transform-origin: 0 0;
/* original / iframe */
transform: scale(0.666);
border: none;
}
/* footer */
.footer {
text-align: center;
}
/* GitHub Corner */
.github-corner svg {
fill: #151513;
color: #fff;
position: fixed;
top: 0;
border: 0;
right: 0;
}
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
body {
font-size: 1rem;
padding: 10px;
}
.collection {
justify-content: center;
}
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}