Skip to content

Commit 1c1f9e7

Browse files
committed
Breadcrumb styling
1 parent fcc86a1 commit 1c1f9e7

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/components/CopyPageURL/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function CopyPageContent(): JSX.Element {
138138

139139
return (
140140
<button
141-
className={styles.copyButton}
141+
className={`${styles.copyButton} copy-button`}
142142
onClick={copyToClipboard}
143143
title={copied ? 'Copied!' : 'Copy page content'}
144144
aria-label={copied ? 'Page content copied to clipboard' : 'Copy page content to clipboard'}
@@ -151,7 +151,6 @@ export default function CopyPageContent(): JSX.Element {
151151
) : (
152152
<>
153153
<FaCopy className={styles.icon} />
154-
<span>Copy Page</span>
155154
</>
156155
)}
157156
</button>

src/css/custom.css

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,14 +2050,23 @@ html {
20502050
}
20512051
}
20522052

2053-
/* Breadcrumbs styling */
2054-
.theme-doc-breadcrumbs {
2053+
.copy-button {
2054+
margin-top: -1rem !important;
2055+
}
2056+
2057+
.breadcrumbs {
20552058
margin-bottom: 1rem;
2059+
margin-left: 1.5rem;
20562060
font-size: 0.875rem;
2061+
display: flex;
2062+
align-items: center;
2063+
justify-items: center;
2064+
width: 100%
20572065
}
20582066

20592067
.breadcrumbs__item {
20602068
color: hsl(var(--muted-foreground));
2069+
20612070
}
20622071

20632072
.breadcrumbs__link {

0 commit comments

Comments
 (0)