-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.scss
More file actions
125 lines (109 loc) · 2.66 KB
/
Team.scss
File metadata and controls
125 lines (109 loc) · 2.66 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@use "../../styles/variables" as *;
@use "../../styles/mixins" as *;
.team {
display: grid;
grid-template-columns: 1fr;
gap: $space-md;
@include tablet-up {
grid-template-columns: repeat(3, 1fr);
}
&__card {
position: relative;
@include engineered-panel(30px);
overflow: hidden; // clip the photo to the card's rounded corners
display: flex;
flex-direction: column;
transition:
border-color $transition-base,
background-color $transition-base,
transform 300ms $ease-spring;
&:hover {
border-color: $color-glass-edge;
background: $color-glass-2;
transform: translateY(-4px);
.team__avatar { filter: grayscale(0) contrast(1); }
.team__github {
border-color: $color-accent-line;
color: $color-text;
}
.team__github-arrow {
transform: translate(3px, -3px);
color: $color-accent;
}
}
}
// Photo — catalogued specimen: fixed crop, desaturated until hover,
// with a telemetry index tag and crosshair.
&__photo {
position: relative;
aspect-ratio: 1 / 1;
overflow: hidden;
border-bottom: 1px solid $color-glass-border;
// crosshair "+" at the top-left of the frame
&::before {
content: "+";
position: absolute;
top: 0.4rem;
left: 0.45rem;
z-index: 2;
font-family: $font-mono;
font-size: 0.8rem;
line-height: 1;
color: $color-crosshair;
}
}
&__avatar {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 22%;
filter: grayscale(0.4) contrast(1.02);
transition: filter $transition-slow;
}
&__body {
display: flex;
flex-direction: column;
flex: 1;
padding: $space-lg;
}
&__name {
@include display;
font-size: $text-3xl;
line-height: 1;
letter-spacing: $tracking-tight;
margin-bottom: 0.5rem;
}
&__role {
@include mono-coord;
font-size: $text-2xs;
color: $color-accent;
margin-bottom: $space-md;
}
&__bio {
font-size: $text-sm;
line-height: $leading-normal;
color: $color-text-2;
flex: 1;
}
&__github {
display: inline-flex;
align-items: center;
gap: 0.5rem;
align-self: flex-start;
margin-top: $space-lg;
padding: 0.55rem 0.875rem;
border: 1px solid $color-border-2;
border-radius: $radius-sm;
color: $color-text-2;
font-size: $text-sm;
transition: border-color $transition-base, color $transition-base;
}
&__github-handle {
font-family: $font-mono;
font-size: $text-xs;
}
&__github-arrow {
transition: transform $transition-base, color $transition-base;
}
}