Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions fern/assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,84 @@
margin-right: 10px;
}

@keyframes header-background-fade {
0% {
background-color: transparent;
}
100% {
background-color: var(--header-background);
}
}

.fern-header, .fern-header-tabs {
backdrop-filter: blur(0.5rem);
background-color: transparent !important;
animation: header-background-fade linear;
animation-timeline: scroll();
animation-range: normal;
}

:is(.dark) .fern-header, :is(.dark) .fern-header-tabs {
background-color: transparent !important;
}

[data-theme=default] .fern-header {
animation: header-background-fade linear;
animation-timeline: scroll();
animation-range: normal;
}

.fern-header-tabs a[data-state="active"],
.fern-header-tabs button[data-state="active"],
.fern-header-tabs [aria-selected="true"] {
background: rgba(255, 255, 255, 0.4) !important;
backdrop-filter: blur(10px) !important;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}

:is(.dark) .fern-header-tabs a[data-state="active"],
:is(.dark) .fern-header-tabs button[data-state="active"],
:is(.dark) .fern-header-tabs [aria-selected="true"] {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(10px) !important;
}

.fern-navbar-link[data-state="active"],
.fern-navbar-link.active,
button.fern-navbar-link[aria-current="page"] {
background: rgba(255, 255, 255, 0.4) !important;
backdrop-filter: blur(10px) !important;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}

:is(.dark) .fern-navbar-link[data-state="active"],
:is(.dark) .fern-navbar-link.active,
:is(.dark) button.fern-navbar-link[aria-current="page"] {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(10px) !important;
}

.fern-sidebar-link[data-state="active"],
.fern-sidebar-link[aria-current="page"],
a.fern-sidebar-link.active {
background: rgba(255, 255, 255, 0.4) !important;
backdrop-filter: blur(10px) !important;
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}

:is(.dark) .fern-sidebar-link[data-state="active"],
:is(.dark) .fern-sidebar-link[aria-current="page"],
:is(.dark) a.fern-sidebar-link.active {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(10px) !important;
}

.fern-button-text {
font-weight: 500 !important;
}
Expand Down
4 changes: 2 additions & 2 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ colors:
light: "#008700"
background:
dark: "#111113"
light: "#FFFFFF"
light: "#E8F4F8"
border:
dark: "#393A40"
light: "#E0E1E6"
header-background:
dark: "#111113"
light: "#FFFFFF"
light: "rgba(232, 244, 248, 0.8)"
card-background:
dark: "#222325"
light: "#FFFFFF"
Expand Down