-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
101 lines (84 loc) · 1.68 KB
/
style.css
File metadata and controls
101 lines (84 loc) · 1.68 KB
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
:root {
--background: #2C2C2C;
}
body {
background-color: var(--background);
display: grid;
place-items: center;
height: 100vh;
padding: 1.5rem;
font-family: Poppins, sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.card {
display: flex;
flex-wrap: wrap;
border-radius: 1.25rem 1.25rem 1rem 1rem;
background-color: white;
cursor: pointer;
overflow: hidden;
max-width: clamp(38.75rem, 70vw, 51.25rem);
min-width: 15rem;
min-height: 16.5rem;
}
.card:hover {
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.background {
flex: 1 1 15rem;
}
.background img {
width: 100%;
height: 100%;
object-fit: cover;
}
.content {
flex: 3 1 22rem;
display: flex;
flex-direction: column;
justify-content: start;
padding: 1rem;
}
.content > h2 {
font-size: clamp(1.3rem, 2.5vw, 1.8rem);
font-weight: 700;
margin-bottom: clamp(0.35rem, 2vw, 0.55rem);
}
.content > p {
font-size: clamp(1.1rem, 1.75vw, 1.35rem);
font-weight: 400;
margin-bottom: 1rem;
line-height: 1.4rem;
}
.social-icons {
display: flex;
width: 100%;
justify-content: end;
margin-top: auto;
gap: clamp(0.4rem, 2vw, 0.8rem);
}
.social-icons li {
list-style: none;
}
.social-icons li a {
position: relative;
display: block;
display: grid;
place-items: center;
font-weight: bold;
transition: .2s;
}
.social-icons li a svg {
stroke: var(--background);
width: clamp(1.6rem, 2.3vw, 2rem);
height: clamp(1.6rem, 2.3vw, 2rem);
stroke-width: 2px;
}
.social-icons li a:hover svg {
transition: 1.2s;
transform: rotateY(360deg);
}