blob: 7b64a5e49e5eb26278476a1314e839b3d433a11b (
plain) (
blame)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
/*
* SPDX-FileCopyrightText: 2024 Kristóf Marussy
*
* SPDX-License-Identifier: MIT
*/
.contacts {
margin-top: 1.5rem;
margin-bottom: 2rem;
}
.col {
margin-bottom: 1.5rem;
}
.contact {
position: relative;
display: flex;
height: 100%;
flex-direction: row;
align-items: center;
--marussy-contact-color: var(--ifm-font-color-base);
--marussy-contact-icon-color: var(--marussy-contact-color);
--marussy-contact-icon-hover-color: var(--ifm-link-hover-color);
--marussy-contact-muted-color: var(--ifm-color-secondary-contrast-foreground);
--marussy-contact-muted-color-or-hover: var(--marussy-contact-muted-color);
--marussy-alternate-icon: 0;
color: var(--marussy-contact-color);
transition: color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
}
[data-theme='dark'] .contact {
--marussy-contact-muted-color: var(--ifm-color-emphasis-500);
--marussy-contact-icon-hover-color: var(--ifm-color-primary-light);
}
.contact:not(:has(.contact__action:hover)):hover,
.contact:focus-within:not(:has(.contact__action:focus)) {
--marussy-contact-color: var(--ifm-link-hover-color);
--marussy-contact-icon-color: var(--marussy-contact-icon-hover-color);
--marussy-contact-muted-color-or-hover: var(--ifm-link-hover-color);
}
.contact:has(.contact__action--alternate:hover),
.contact:has(.contact__action--alternate:focus) {
--marussy-alternate-icon: 1;
}
.contact__icon-holder {
position: relative;
display: flex;
padding: 1rem;
margin-right: 1rem;
background: var(--ifm-color-emphasis-200);
border-radius: 50em;
align-items: center;
justify-content: center;
color: var(--marussy-contact-icon-color);
}
.contact__icon {
width: 2.5rem;
height: 2.5rem;
opacity: calc(1 - var(--marussy-alternate-icon));
transition:
color var(--ifm-transition-fast) var(--ifm-transition-timing-default),
opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}
.contact__icon--fediverse {
margin: -0.0625rem -0.0625rem 0.0625rem 0.0625rem;
}
.contact__icon--alternate {
position: absolute;
top: 1rem;
left: 1rem;
color: var(--marussy-contact-icon-hover-color);
opacity: var(--marussy-alternate-icon);
}
.contact__content {
dispaly: flex;
flex-direction: row;
}
.contact__title {
margin: 0;
}
.contact__value {
margin: 0;
}
.contact__description {
margin: 0;
font-style: italic;
--slnt: -15;
font-size: 0.875rem;
--marussy-contact-color: var(--marussy-contact-muted-color-or-hover);
color: var(--marussy-contact-muted-color-or-hover);
transition: color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
}
.contact__link {
--ifm-link-color: var(--marussy-contact-color);
}
.contact__link::after {
content: ' ';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.contact__action {
display: block;
position: relative;
--ifm-link-color: var(--marussy-contact-muted-color);
}
.contact__action:focus {
--ifm-link-color: var(--ifm-link-hover-color);
}
.small {
display: inline-block;
position: relative;
max-height: 0;
width: 1.5rem;
overflow: visible;
vertical-align: text-bottom;
}
.small__link {
display: flex;
position: absolute;
bottom: 0;
}
.small__icon {
height: 1.5rem;
width: 1.5rem;
}
.photo__container {
position: relative;
border-radius: var(--ifm-card-border-radius);
overflow: hidden;
aspect-ratio: 1288/480;
min-height: 15rem;
max-width: 100%;
background-size: cover;
background-position: 25% center;
}
.photo {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: 25% center;
transform-origin: 25% center;
transition: transform var(--ifm-transition-fast) ease;
}
.contacts:has(.contact--address:hover) .photo,
.contacts:has(.contact--address:focus-within) .photo {
transform: scale(140%);
}
@media (prefers-reduced-motion: reduce) {
.photo {
transform: none !important;
}
}
|