-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.css
More file actions
109 lines (98 loc) · 2.16 KB
/
about.css
File metadata and controls
109 lines (98 loc) · 2.16 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
102
103
104
105
106
107
108
109
.about {
padding: 9rem 1rem 1rem 1rem;
background: linear-gradient(360deg, rgba(112, 76, 40, 0.4) 0%, rgba(112, 76, 40, 0) 2rem), linear-gradient(180deg, rgba(112, 76, 40, 0.5) 7rem, rgba(112, 76, 40, 0) 8.5rem);
margin-bottom: -1rem;
}
.about__image {
border-radius: 50%;
max-width: 70%;
margin: 0 auto 2rem;
box-shadow: var(--generic-shadow);
}
.about__text {
margin: 1rem;
padding: 1rem;
font-size: 1.6rem;
line-height: 2.4rem;
}
.about__text p {
margin-bottom: 1rem;
color: var(--text-color);
}
.about__text p:first-child {
font-size: 110%;
line-height: 2.8rem;
color: var(--accent-secondary);
margin: auto auto 2rem;
}
.about__text p:first-child::first-letter {
font-size: 6rem;
font-weight: 700;
float: left;
line-height: 5rem;
padding-top: 0.4rem;
padding-right: 1rem;
padding-left: 0.3rem;
}
.about__text em {
font-weight: 600;
font-style: italic;
color: var(--accent-secondary);
}
@media (min-width: 768px) {
.about {
background: none;
padding: 12rem 2rem 4rem;
display: flex;
flex-direction: row;
gap: 2rem;
}
.about__image {
margin: 2rem auto;
border-radius: 0;
max-width: 90%;
border: 1rem solid rgba(250, 235, 215, 0.7);
transform: rotate(3deg);
}
.about__text {
max-width: 60%;
}
.about__text p:first-child {
font-size: 120%;
line-height: 3rem;
color: var(--accent-secondary);
margin-bottom: 2rem;
}
.about__text p:first-child::first-letter {
font-size: 7.2rem;
line-height: 5rem;
padding-top: 0.6rem;
padding-left: 0.5rem;
}
}
@media (min-width: 1200px) {
.about {
max-width: 1500px;
margin: auto;
}
.about__text {
display: flex;
flex-direction: column;
justify-content: center;
align-items: stretch;
padding: 5rem 0;
}
.about__text p:first-child,
.about__text p {
margin: auto;
}
}
@media (hover: hover) {
.about__image {
transition: all 0.2s ease-in-out;
}
.about__image:hover {
transform: rotate(5deg) scale(105%);
transition: all 0.2s ease-in-out;
}
}