Skip to content

Commit 24a41c1

Browse files
committed
Apply flex to all links
1 parent 94a54be commit 24a41c1

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@
121121
<a href="#libraries">Libraries</a>
122122
<a href="#features">Features</a>
123123
<a href="#changelog">Changelog</a>
124-
<a href="https://discord.gg/s9QQ7Wg7r4" class="nav-social">
124+
<a href="https://discord.gg/s9QQ7Wg7r4">
125125
<svg aria-hidden="true" viewBox="0 0 16 16" width="16" height="16">
126126
<path
127127
d="M13.54 2.9a13.2 13.2 0 00-3.25-1c-.02 0-.04 0-.05.02-.15.25-.3.58-.41.83a12.18 12.18 0 00-3.66 0 8.4 8.4 0 00-.41-.83.05.05 0 00-.05-.02 13.16 13.16 0 00-3.28 1.03 13.5 13.5 0 00-2.34 9.14c1.37 1 2.7 1.61 4 2.02.01 0 .04 0 .05-.02.3-.42.58-.86.82-1.33a.05.05 0 00-.03-.07 8.76 8.76 0 01-1.25-.6.05.05 0 010-.08l.24-.2a.05.05 0 01.05 0 9.46 9.46 0 008.05 0h.05l.25.2c.03.02.02.07 0 .09-.4.23-.82.43-1.26.59a.05.05 0 00-.02.07c.24.47.51.91.81 1.33.02.02.04.03.06.02a13.23 13.23 0 004.02-2.06 13.41 13.41 0 00-2.39-9.12zm-8.2 7.31c-.78 0-1.43-.72-1.43-1.6 0-.9.64-1.62 1.44-1.62.8 0 1.45.73 1.43 1.61 0 .89-.63 1.61-1.43 1.61zm5.32 0c-.79 0-1.43-.72-1.43-1.6 0-.9.63-1.62 1.43-1.62.81 0 1.45.73 1.44 1.61 0 .89-.63 1.61-1.44 1.61z"
128128
/>
129129
</svg>
130130
Discord
131131
</a>
132-
<a href="https://github.com/ValveResourceFormat/ValveResourceFormat" class="nav-social" aria-label="GitHub repository">
132+
<a href="https://github.com/ValveResourceFormat/ValveResourceFormat" aria-label="GitHub repository">
133133
<svg aria-hidden="true" viewBox="0 0 16 16" width="16" height="16">
134134
<path
135135
d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"

static/style.css

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,9 @@ a {
595595
inset 0 1px 0 hsl(216 50% 50% / 10%);
596596

597597
a {
598+
display: flex;
599+
align-items: center;
600+
gap: 0.4rem;
598601
padding: 0.35rem 0.7rem;
599602
font-size: 0.8rem;
600603
font-weight: 500;
@@ -606,6 +609,11 @@ a {
606609
background 0.2s;
607610
white-space: nowrap;
608611

612+
svg {
613+
fill: currentColor;
614+
flex-shrink: 0;
615+
}
616+
609617
&:hover {
610618
color: #fff;
611619
background: hsl(216 50% 30% / 40%);
@@ -633,17 +641,6 @@ a {
633641
}
634642
}
635643

636-
.nav-social {
637-
display: flex;
638-
align-items: center;
639-
gap: 0.4rem;
640-
641-
svg {
642-
fill: currentColor;
643-
flex-shrink: 0;
644-
}
645-
}
646-
647644
@media (max-width: 600px) {
648645
top: 0;
649646
border-radius: 0;

0 commit comments

Comments
 (0)