Skip to content

Commit c7c19b2

Browse files
author
Kapil Gowru
committed
feat: added iconography for all specs
1 parent 08c37fe commit c7c19b2

File tree

2 files changed

+14
-39
lines changed

2 files changed

+14
-39
lines changed

fern/assets/styles.css

Lines changed: 13 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -693,17 +693,18 @@ a[href*="changelog"] svg {
693693
.language-icons {
694694
display: flex;
695695
align-items: center;
696-
gap: 0.75rem;
696+
flex-wrap: wrap;
697697
}
698698

699699
.language-icons-label {
700700
font-size: 0.875rem;
701701
color: #62636c;
702+
margin-right: 0.5rem;
702703
}
703704

704705
.language-icon {
705-
width: 24px;
706-
height: 24px;
706+
width: 2rem;
707+
height: 2rem;
707708
display: flex;
708709
align-items: center;
709710
justify-content: center;
@@ -719,8 +720,8 @@ a[href*="changelog"] svg {
719720
}
720721

721722
.language-icon-img {
722-
width: 16px;
723-
height: 16px;
723+
width: 1.25rem;
724+
height: 1.25rem;
724725
object-fit: contain;
725726
}
726727

@@ -916,32 +917,10 @@ a[href*="changelog"] svg {
916917
font-size: 1.0625rem;
917918
} */
918919

919-
.language-icons {
920-
flex-wrap: wrap;
921-
gap: 1rem;
922-
}
923-
924920
.language-icons-label {
925921
width: 100%;
926922
}
927923

928-
.language-icon {
929-
width: 2rem;
930-
height: 2rem;
931-
margin: -0.25rem;
932-
933-
&:hover {
934-
background-color: var(--grayscale-a4);
935-
transform: scale(1.1);
936-
transition: all 0.2s ease;
937-
}
938-
}
939-
940-
.language-icon-img {
941-
width: 20px;
942-
height: 20px;
943-
}
944-
945924
.action-buttons {
946925
flex-direction: row;
947926
gap: 0.75rem;
@@ -968,11 +947,6 @@ a[href*="changelog"] svg {
968947
}
969948
}
970949

971-
.specs-grid {
972-
flex-direction: column;
973-
align-items: flex-start;
974-
}
975-
976950
.specs-card {
977951
padding-left: 0;
978952
padding-right: 0;
@@ -1030,14 +1004,15 @@ a[href*="changelog"] svg {
10301004
font-size: 1.25rem;
10311005
}
10321006

1033-
.language-icon {
1034-
width: 28px;
1035-
height: 28px;
1007+
.specs-grid {
1008+
flex-direction: column;
1009+
align-items: flex-start;
1010+
gap: 0.5rem;
10361011
}
10371012

1038-
.language-icon-img {
1039-
width: 16px;
1040-
height: 16px;
1013+
.language-icons-label {
1014+
margin-right: 0;
1015+
margin-bottom: 0.5rem;
10411016
}
10421017
}
10431018
}

fern/products/home/pages/welcome.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ import { FernFooter } from "../../../components/FernFooter";
261261
<p className="community-card-description">
262262
See our most recent product updates.
263263
</p>
264-
<div className="flex flex-row gap-2 flex-wrap items-center">
264+
<div className="flex flex-row flex-wrap items-center">
265265
<a className="language-icon" href="/docs/changelog">
266266
<img src="./images/fern-logo.svg" alt="Docs" className="language-icon-img" noZoom />
267267
</a>

0 commit comments

Comments
 (0)