-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
83 lines (83 loc) · 1.39 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
@font-face {
font-family: text;
src: url(fonts/SenjaSantuy.otf);
}
main {
display: flex;
}
.container {
width: 50%;
margin: auto;
}
.fun-projects, .articles {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
border-bottom: solid #fc0 2px;
padding-bottom: 30px;
}
.articles {
border: none;
}
.container a {
width: 45%;
margin: 16px 0;
}
.container img {
width: 100%;
aspect-ratio: 16/9;
height: auto;
border: solid 1px #000;
}
.container .articles img {
object-fit: cover;
}
.articles a {
position: relative;
}
.articles a span {
display: inline-block;
position: absolute;
bottom: 4px;
left: 0;
background: rgba(0,0,0,0.3);
width: 100%;
padding: 4px 8px;
color: #fff;
letter-spacing: 1px;
}
h2 {
text-align: center;
margin: 24px 0;
}
@media (max-width: 920px) {
.container {
width: 80%;
}
}
@media (max-width: 600px) {
.container {
width: 75%;
}
.container a {
width: 100%;
}
}
@media (max-width: 400px) {
.container {
width: 85%;
}
.container a {
width: 100%;
}
}
.text {
text-align: center;
margin: 24px;
font-size: 20px;
font-family: "Comic Sans MS";
}
.text span {
font-family: text;
font-size: 30px;
}