Skip to content

Commit 5606c7b

Browse files
authored
Merge pull request #287 from netwrix/resolve-pr-267-conflicts
Resolve PR 267 conflicts
2 parents 39966e7 + cb8cca0 commit 5606c7b

File tree

10 files changed

+81
-71
lines changed

10 files changed

+81
-71
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ jobs:
5454
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5555
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
5656
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
57-

.github/workflows/claude.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ jobs:
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4848
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
4949
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-

src/css/custom.css

Lines changed: 35 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ html {
102102
}
103103

104104
.button--outline {
105-
font-weight: 600;
106-
background: rgba(255, 255, 255, 0.1);
107-
backdrop-filter: blur(10px);
108-
border: 1px solid rgba(255, 255, 255, 0.2);
105+
font-weight: 600;
106+
background: rgba(88, 81, 219, 0.1);
107+
backdrop-filter: blur(10px);
108+
border: 1px solid rgba(88, 81, 219, 0.3);
109109
}
110110

111111
.button--outline:hover {
112-
background: rgba(255, 255, 255, 0.2);
113-
border-color: rgba(255, 255, 255, 0.3);
112+
background: rgba(88, 81, 219, 0.2);
113+
border-color: rgba(88, 81, 219, 0.5);
114114
}
115115

116116
/* Navbar responsive improvements */
@@ -155,14 +155,14 @@ html {
155155

156156
/* Option 2: Smart Version Selector with Latest Emphasis */
157157
.navbar-item-latest {
158-
font-weight: 600 !important;
159-
color: var(--ifm-color-primary-darkest) !important;
160-
background: linear-gradient(90deg, rgba(88, 81, 219, 0.08), rgba(88, 81, 219, 0.03));
161-
border-left: 3px solid var(--ifm-color-primary);
162-
padding-left: 12px !important;
163-
margin: 2px 0;
164-
border-radius: 0 4px 4px 0;
165-
position: relative;
158+
font-weight: 600 !important;
159+
color: var(--ifm-color-primary-darkest) !important;
160+
background: linear-gradient(90deg, rgba(88, 81, 219, 0.08), rgba(88, 81, 219, 0.03));
161+
border-left: 3px solid var(--ifm-color-primary);
162+
padding-left: 12px !important;
163+
margin: 2px 0;
164+
border-radius: 0 4px 4px 0;
165+
position: relative;
166166
}
167167

168168
.navbar-item-latest::after {
@@ -183,26 +183,26 @@ html {
183183
}
184184

185185
.navbar-item-legacy:hover {
186-
color: var(--ifm-color-primary) !important;
187-
opacity: 1;
188-
background: rgba(42, 82, 152, 0.05);
189-
border-radius: 4px;
186+
color: var(--ifm-color-primary) !important;
187+
opacity: 1;
188+
background: rgba(88, 81, 219, 0.05);
189+
border-radius: 4px;
190190
}
191191

192192
/* Dark mode adjustments */
193193
[data-theme='dark'] .navbar-item-latest {
194-
color: var(--ifm-color-primary-lightest) !important;
195-
background: linear-gradient(90deg, rgba(77, 127, 216, 0.1), rgba(77, 127, 216, 0.04));
196-
border-left-color: var(--ifm-color-primary-light);
194+
color: var(--ifm-color-primary-lightest) !important;
195+
background: linear-gradient(90deg, rgba(139, 81, 219, 0.1), rgba(139, 81, 219, 0.04));
196+
border-left-color: var(--ifm-color-primary-light);
197197
}
198198

199199
[data-theme='dark'] .navbar-item-legacy {
200200
color: var(--ifm-color-emphasis-500) !important;
201201
}
202202

203203
[data-theme='dark'] .navbar-item-legacy:hover {
204-
color: var(--ifm-color-primary-light) !important;
205-
background: rgba(77, 127, 216, 0.08);
204+
color: var(--ifm-color-primary-light) !important;
205+
background: rgba(139, 81, 219, 0.08);
206206
}
207207

208208
/* Product grouping visual separation */
@@ -255,15 +255,15 @@ html {
255255
/* Start of Selection */
256256
/* Apply borders only to images within docs pages */
257257
.theme-doc-markdown img {
258-
border: 1px solid #E2E1DC;
259-
border-radius: 4px;
258+
border: 1px solid #E2E1DC;
259+
border-radius: 4px;
260260
}
261261

262262
/* End of Selection */
263263

264264
/* Dark mode image borders */
265265
[data-theme='dark'] img {
266-
border-color: #3a3a3a;
266+
border-color: #48445F;
267267
}
268268

269269
/* Add this to your /src/css/custom.css file */
@@ -347,10 +347,15 @@ html {
347347

348348
/* Highlight search terms more prominently */
349349
.DocSearch-Hit-content mark {
350-
background-color: var(--ifm-color-primary-lighter);
351-
color: var(--ifm-font-color-base);
352-
font-weight: 600;
353-
padding: 0 2px;
350+
background-color: #FDF0CC;
351+
color: var(--ifm-font-color-base);
352+
font-weight: 600;
353+
padding: 0 2px;
354+
}
355+
356+
[data-theme='dark'] .DocSearch-Hit-content mark {
357+
background-color: #624800;
358+
color: var(--ifm-color-white);
354359
}
355360

356361
/* Add product/version badges if needed */

src/theme/Root.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22
import ProductMetaTags from '@site/src/components/ProductMetaTags';
33

44
// Default implementation from Docusaurus
55
// https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/Root/index.tsx
66
export default function Root({ children }) {
7+
useEffect(() => {
8+
// Update favicon based on color mode using MutationObserver
9+
const updateFavicon = () => {
10+
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
11+
const favicon = document.querySelector("link[rel='icon']");
12+
if (favicon) {
13+
favicon.href = isDark
14+
? '/branding/favicon-light.ico'
15+
: '/branding/favicon-dark.ico';
16+
}
17+
};
18+
19+
// Initial update - temp. removed favicon changing on darkmode
20+
//updateFavicon();
21+
22+
// Watch for theme changes
23+
// const observer = new MutationObserver(updateFavicon);
24+
// observer.observe(document.documentElement, {
25+
// attributes: true,
26+
// attributeFilter: ['data-theme']
27+
// });
28+
29+
return () => observer.disconnect();
30+
}, []);
31+
732
return (
833
<>
934
<ProductMetaTags />

static/branding/favicon-dark.ico

4.06 KB
Binary file not shown.

static/branding/favicon-light.ico

361 Bytes
Binary file not shown.

static/branding/logo-dark.svg

Lines changed: 10 additions & 0 deletions
Loading

static/branding/logo-light.svg

Lines changed: 10 additions & 0 deletions
Loading

static/branding/logo-red.svg

Lines changed: 0 additions & 37 deletions
This file was deleted.

static/branding/logo-white.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)