forked from danascript/algtivism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
98 lines (82 loc) · 1.49 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
/*
Everything style related
*/
* {
font-family: 'Josefin Slab', serif;
}
.nav {
position: fixed;
top: 0;
padding: 2rem;
width: 100%;
background-color: white;
text-align: center;
background-color: #ffa584;
background: rgb(255,165,132);
background: linear-gradient(70deg, rgba(255,165,132,1) 0%, rgba(197,186,250,1) 100%);
z-index: 3;
}
.intro {
margin-top: 55px;
padding: 2rem;
text-align: center;
}
.content {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
}
.example {
margin-left: 1rem;
margin-bottom: 1.5rem;
overflow: hidden;
}
.example img {
width: 300px;
height: 300px;
object-fit: cover;
/* width: 500px;
padding-bottom: .5rem;
border-bottom: 1px solid black; */
}
/* .example img:hover {
transition: transform 0.5s ease;
transform: scale(1.1);
} */
.example.caption {
position: relative;
}
.example.caption .text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
opacity: 0;
}
.example.caption .text.dark-outlines {
/* -webkit-text-stroke: .5px grey; */
text-shadow: -.5px 0 grey, 0 .5px grey, .5px 0 grey, 0 -.5px grey;
}
.example.caption .text h1 {
margin: 0;
color: white;
}
.example.caption:hover .text {
opacity: 1;
transition: all 0.8s ease;
}
.example.caption:hover img {
-webkit-filter: blur(3px);
}
.number {
display: inline-block;
margin: 0;
font-size: 2rem;
}
@media (max-width: 576px) {
.example img {
width: 250px;
}
}