Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design follow-up fixes #216

Merged
merged 5 commits into from
Aug 12, 2024
Merged
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
16 changes: 9 additions & 7 deletions src/css/dark-mode.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
html[data-theme=dark] {
/* base */
--body-background: var(--slate-900);
--home-background: var(--body-background);
--panel-background: #ffffff12;
--panel-border-color: var(--color-white);
--scrollbar-track-color: var(--color-white);
Expand All @@ -12,6 +13,7 @@ html[data-theme=dark] {
--sticky-table-header-background: #545454;
--tooltip-background: white;
--tooltip-font-color: #181818;
--feature-background-color: var(--body-background);
/* search */
--search-hits-boxshadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 3px 0 rgba(255, 255, 255, 0.15);
--search-detached-mode-background: #0a0908;
Expand Down Expand Up @@ -49,21 +51,21 @@ html[data-theme=dark] {
/* feedback */
--feedback-modal-background: var(--body-background);
/* admonitions */
--important-background: #45ade8;
--important-background: rgba(68, 76, 231, 0.2);
--important-on-color: var(--body-font-color);
--important-icon: url(../img/info-white.svg) no-repeat center right / auto 100%;
--warning-background: #cd372c;
--warning-background: rgba(205, 55, 44, 0.2);
--warning-on-color: var(--body-font-color);
--warning-icon: url(../img/report-white.svg) no-repeat center right / auto 100%;
--note-background: #45ade8;
--note-background: rgba(69, 173, 232, 0.2);
--note-on-color: var(--body-font-color);
--note-icon: url(../img/info-white.svg) no-repeat center right / auto 100%;
--tip-background: #38a169;
--tip-background: rgba(56, 161, 105, 0.2);
--tip-on-color: var(--body-font-color);
--tip-icon: url(../img/check-circle-white.svg) no-repeat center right / auto 100%;
--caution-background: #f9a165;
--caution-on-color: #181818;
--caution-icon: url(../img/warning-black.svg) no-repeat center right / auto 100%;
--caution-background: rgba(249, 161, 101, 0.2);
--caution-on-color: var(--body-font-color);
--caution-icon: url(../img/warning-white.svg) no-repeat center right / auto 100%;
/* doc */
--doc-font-color: var(--body-font-color);
--heading-font-color: var(--body-font-color);
Expand Down
5 changes: 5 additions & 0 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ html.is-clipped--navbar {
padding: 6px 8px;
}

.home .navbar-item,
.home .navbar-link {
color: #f5f5f5;
}

.navbar-item.is-current,
.navbar-item:hover,
.navbar-link:hover {
Expand Down
4 changes: 1 addition & 3 deletions src/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
display: flex;
margin-top: 0;
width: 100%;
background: #1d2939;
align-items: center;
justify-content: center;
min-height: 178px;
Expand All @@ -62,15 +61,13 @@

.home .home-header .ask {
display: flex;
color: white;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 30px;
}

.home .home-header-container h1 {
color: white;
font-size: 32px;
}

Expand All @@ -91,6 +88,7 @@ html:not([data-theme=dark]) .home .feature-box:hover {
padding: 1rem;
align-content: flex-start;
transition: 100ms ease all;
background-color: var(--feature-background-color);
}

.home .feature-image {
Expand Down
4 changes: 4 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ body.status-404 main > .content {
min-height: 100vh;
}

.home main {
background-color: var(--home-background);
}

@media screen and (min-width: 1024px) {
main {
margin: 0 auto;
Expand Down
14 changes: 8 additions & 6 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ html:not([data-theme=dark]) {
--body-footer-font-color: #98a2b3;
/* base */
--body-background: var(--color-white);
--home-background: rgba(245, 245, 245, 1);
--button-font-color: white;
--panel-background: #f9fafb;
--panel-border-color: #e5e9f0;
Expand All @@ -180,6 +181,7 @@ html:not([data-theme=dark]) {
--sticky-table-header-background: #f6f6f6;
--tooltip-background: var(--slate-900);
--tooltip-font-color: white;
--feature-background-color: white;
/* search */
--search-hits-boxshadow: 0 0 0 1px rgba(35, 38, 59, 0.05), 0 1px 3px 0 rgba(35, 38, 59, 0.15);
--search-detached-mode-background: #f5f6f7;
Expand Down Expand Up @@ -223,19 +225,19 @@ html:not([data-theme=dark]) {
/* feedback */
--feedback-modal-background: #fefefe;
/* admonitions */
--important-background: #e8f5fc;
--important-background: rgba(68, 76, 231, 0.1);
--important-on-color: var(--body-font-color);
--important-icon: url(../img/info-blue.svg) no-repeat center right / auto 100%;
--warning-background: #fff6f5;
--important-icon: url(../img/info-purple.svg) no-repeat center right / auto 100%;
--warning-background: rgba(205, 55, 44, 0.1);
--warning-on-color: var(--body-font-color);
--warning-icon: url(../img/report-red.svg) no-repeat center right / auto 100%;
--note-background: #e8f5fc;
--note-background: rgba(69, 173, 232, 0.1);
--note-on-color: var(--body-font-color);
--note-icon: url(../img/info-blue.svg) no-repeat center right / auto 100%;
--tip-background: #f4fbf6;
--tip-background: rgba(56, 161, 105, 0.1);
--tip-on-color: var(--body-font-color);
--tip-icon: url(../img/check-circle-green.svg) no-repeat center right / auto 100%;
--caution-background: #fef0e7;
--caution-background: rgba(249, 161, 101, 0.1);
--caution-on-color: var(--body-font-color);
--caution-icon: url(../img/warning-orange.svg) no-repeat center right / auto 100%;
/* doc */
Expand Down
1 change: 1 addition & 0 deletions src/img/info-purple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 13 additions & 8 deletions src/partials/breadcrumbs.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@
{{#with site.homeUrl}}
<li><a href="{{{relativize this}}}" aria-label="Go to home page">Docs</a></li>
{{/with}}
{{#if page.breadcrumbs}}
{{#each page.breadcrumbs}}
<li>
{{~#if (and ./url (eq ./urlType 'internal'))~}}
<a href="{{{relativize ./url}}}">{{{./content}}}</a>
{{~else~}}
{{{./content}}}
{{~/if~}}
<a href="{{{relativize page.component.url}}}">{{{page.component.title}}}</a>
</li>
{{/each}}
{{#if page.breadcrumbs}}
{{#each page.breadcrumbs}}
{{#if (ne (relativize ./url) (relativize @root.page.component.url))}}
<li>
{{~#if (and ./url (eq ./urlType 'internal'))~}}
<a href="{{{relativize ./url}}}">{{{./content}}}</a>
{{~else~}}
{{{./content}}}
{{~/if~}}
</li>
{{/if}}
{{/each}}
{{/if}}
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/head-info.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{/with}}
{{/unless}}
{{#with page.title}}
<meta property="og:title" content="{{{this}}}">
<meta property="og:title" content="{{{this}}} | Redpanda {{{@root.page.component.title}}}">
{{/with}}
{{#with page.description}}
<meta name="description" content="{{{detag this}}}">
Expand Down
2 changes: 1 addition & 1 deletion src/partials/head-title.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<title>{{{detag (or page.title defaultPageTitle)}}}{{#with site.title}} | {{this}}{{/with}}</title>
<title>{{{detag (or page.title defaultPageTitle)}}}{{#with page.component.title}} | Redpanda {{{this}}}{{/with}}</title>
4 changes: 2 additions & 2 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<header class="header">
{{> announcement-bar}}
<nav class="navbar" {{#if page.component.latest.asciidoc.attributes.page-header-data}}{{#with page.component.latest.asciidoc.attributes.page-header-data}}style="background-color: {{this.color}}"{{/with}}{{else}}style="background-color: #1D2939"{{/if}}
<nav class="navbar" {{#if page.component.latest.asciidoc.attributes.page-header-data}}{{#with page.component.latest.asciidoc.attributes.page-header-data}}style="background-color: {{this.color}}"{{/with}}{{else}}style="background-color: #d73d23"{{/if}}
>
<div class="navbar-brand" id="brand">
{{#with site.homeUrl}}
Expand All @@ -12,7 +12,7 @@
<span></span>
</button>
</div>
<div id="topbar-nav" class="navbar-menu" {{#if page.component.latest.asciidoc.attributes.page-header-data}}{{#with page.component.latest.asciidoc.attributes.page-header-data}}style="background-color: {{this.color}}"{{/with}}{{else}}style="background-color: #1D2939"{{/if}}>
<div id="topbar-nav" class="navbar-menu" {{#if page.component.latest.asciidoc.attributes.page-header-data}}{{#with page.component.latest.asciidoc.attributes.page-header-data}}style="background-color: {{this.color}}"{{/with}}{{else}}style="background-color: #d73d23"{{/if}}>
{{#each (sort-components site.components)}}
<a class="navbar-item {{#if (eq this.title @root.page.component.title)}}is-current{{/if}}" href="{{{this.url}}}">{{this.title}}</a>
{{/each}}
Expand Down
Loading