We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cccd964 commit 693ab6aCopy full SHA for 693ab6a
sass/style.scss
@@ -97,7 +97,13 @@ figure {
97
.svg-icon {
98
width: 1em;
99
height: 1em;
100
- vertical-align: middle;
+ // See: https://tonsky.me/blog/centering/#what-can-be-done-web-developers
101
+ // > [...] Now that we have that sorted, aligning icons is not that hard too.
102
+ // > You set `vertical-align: baseline` and then move them down by `(iconHeight - capHeight) / 2`.
103
+ // This works because we use Inter, a font that follows
104
+ // the rule `ascender − cap-height = descender`, yayy :)
105
+ vertical-align: baseline;
106
+ transform: translateY(calc((1em - 1cap) / 2));
107
}
108
109
.social-links {
0 commit comments