-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
99 lines (82 loc) · 1.47 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
body,
html {
height: 100%;
background-color: rgb(189, 4, 4);
display: flex;
align-items: center;
justify-content: center;
}
/* @keyframes fadeIn {
from {
opacity: 0.5;
}
to {
opacity: 1;
}
} */
.card {
background-color: #c21919;
gap: 20px;
padding-left: 20px;
border-radius: 20px;
width: 80%;
min-width: 300px;
max-width: 800px;
display: grid;
grid-template-columns: 2fr 1fr;
overflow: hidden;
box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
}
/* @keyframes sparkle {
0%,
100% {
opacity: 1;
transform: scale(1);
box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
}
50% {
opacity: 0.5;
transform: scale(1.1);
box-shadow: 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #fff;
}
}
.card:hover {
animation: sparkle 1s ease-in-out infinite;
} */
.info {
grid-template-areas: "name-job" "description" "contacts";
}
.name-job {
grid-area: name-job;
}
.description {
grid-area: description;
}
.contacts {
grid-area: contacts;
}
h1,
h2 {
margin: 0;
}
.portrait {
margin: 0;
padding: 0;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 50%;
}
@media (max-width: 800px) {
.card {
grid-template-columns: 1fr;
grid-template-areas: "portrait" "info";
padding: 0;
}
.info {
text-align: center;
padding: 10px;
}
}