Skip to content

Commit eb4facd

Browse files
committed
custom styles
1 parent 9205569 commit eb4facd

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

fern/assets/custom-styles.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,16 @@
3232
.fern-sidebar-link-text {
3333
font-weight: 400 !important;
3434
font-size: 14px !important;
35-
}
35+
}
36+
37+
.fern-sidebar-container {
38+
background: rgba(255, 255, 255, 0.5) !important;
39+
backdrop-filter: blur(6px);
40+
border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
41+
}
42+
43+
:is(.dark) .fern-sidebar-container {
44+
background: rgba(0, 0, 0, 0.5) !important;
45+
backdrop-filter: blur(6px);
46+
border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
47+
}

fern/docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,6 @@ colors:
238238
border:
239239
light: "#E5E5E5"
240240
dark: "#2A2522"
241-
sidebar-background:
242-
light: "#FFFFFF"
243-
dark: "#09060F"
244241
layout:
245242
page-width: full
246243
searchbar-placement: header

fern/pages/home.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,37 @@ hide-feedback: true
1212
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/2.3487c091+2.png);
1313
background-repeat: no-repeat;
1414
background-position: center;
15-
animation: bigPulse 4s ease-in-out infinite;
16-
position: absolute;
17-
top: 10%;
18-
left: 0;
19-
width: 50%;
15+
animation: bigPulse 6s ease-in-out infinite;
16+
position: fixed;
17+
bottom: -5%;
18+
left: -35%;
19+
width: 100%;
2020
height: 50%;
21-
z-index: 1;
21+
z-index: -1;
2222
opacity: 0.2;
2323
}
2424
2525
.image-2 {
26-
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/12.7db0f10a.webp);
26+
background-image: url(https://fern-image-hosting.s3.us-east-1.amazonaws.com/assemblyai/12.7db0f10a+2.png);
2727
background-repeat: no-repeat;
2828
background-position: center;
29-
animation: oppositePulse 3s ease-in-out infinite;
30-
position: absolute;
31-
top: 40%;
32-
right: 0;
33-
width: 50%;
29+
animation: oppositePulse 6s ease-in-out infinite;
30+
position: fixed;
31+
top: 20%;
32+
right: -40%;
33+
width: 100%;
3434
height: 50%;
3535
z-index: 1;
3636
opacity: 0.2;
3737
}
3838
3939
@keyframes bigPulse {
4040
0%, 100% { transform: scale(1); }
41-
50% { transform: scale(1.2); }
41+
50% { transform: scale(1.1); }
4242
}
4343
4444
@keyframes oppositePulse {
45-
0%, 100% { transform: scale(1.2); }
45+
0%, 100% { transform: scale(1.1); }
4646
50% { transform: scale(1); }
4747
}
4848

0 commit comments

Comments
 (0)