Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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
9 changes: 9 additions & 0 deletions assets/html/scss/documenter-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,13 @@ html.theme--#{$themename} {
.hljs-subst {
color: #f8f8f2;
}

.search-result-link:hover .property-search-result-badge, .search-result-link:focus .property-search-result-badge {
color: $search-333 !important;
background-color: $search-f1f5f9 !important;
}

.search-result-title {
color: $search-whitesmoke !important;
}
}
2 changes: 1 addition & 1 deletion assets/html/scss/documenter-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ code.language-julia-repl > span.hljs-meta {

// Workaround to compile in highlightjs theme, so that we could have different
// themes for both
@import "highlightjs/default"
@import "highlightjs/default";
12 changes: 12 additions & 0 deletions assets/html/scss/documenter/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,15 @@ $documenter-docstring-header-padding: 0.5rem $documenter-container-left-padding;
$documenter-docstring-body-padding-h: $documenter-container-left-padding;
$documenter-docstring-body-padding-v: 0.75rem;
$documenter-docstring-body-padding: $documenter-docstring-body-padding-v $documenter-docstring-body-padding-h;

// Search Results variables
$search-result-link-hover: rgba(0, 128, 128, 0.1) !default;

$search-333: #333 !default;
$search-f1f5f9: #f1f5f9 !default;
$search-whitesmoke: whitesmoke !default;

$search-result-badge-color: $search-whitesmoke !default;
$search-result-badge-background-color: #33415580 !default;

$search-result-highlight: hsl(48, 100%, 67%) !default;
54 changes: 54 additions & 0 deletions assets/html/scss/documenter/layout/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,59 @@
.docs-highlight {
background-color: yellow;
}

.search-result-link {
border-radius: 0.7em;
transition: all 300ms;
}

.search-result-link:hover, .search-result-link:focus {
background-color: $search-result-link-hover;
}

.search-result-link .property-search-result-badge {
transition: all 300ms;
}

.property-search-result-badge {
padding: 0.15em 0.5em;
font-size: 0.8em;
font-style: italic;
text-transform: none !important;
line-height: 1.5;
color: $search-result-badge-color;
background-color: $search-result-badge-background-color;
border-radius: 0.6rem;
}

.search-result-link:hover .property-search-result-badge, .search-result-link:focus .property-search-result-badge {
color: $search-f1f5f9;
background-color: $search-333;
}

.search-result-highlight {
background-color: $search-result-highlight;
color: black !important;
}

.search-divider {
border-bottom: 1px solid $border;
}

.search-result-title {
color: $search-333;
}

.w-100 {
width: 100%;
}

.gap-2 {
gap: 0.5rem;
}

.gap-4 {
gap: 1rem;
}
}
}
Loading