Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc805e58

Browse files
authored
feat: add breadcrumb styles and improve markdown readability#432 (#433)
- Add responsive breadcrumb navigation with theme-aware styling- Set line-height for markdown content to enhance readability- Implement horizontal scrolling for breadcrumbs on mobile devices
1 parent4cab822 commitc805e58

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

‎src/css/custom.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
--ifm-navbar-height:5rem;
4040
--ifm-font-family-base:"Poppins","Work Sans", sans-serif;
4141
--ifm-background-color-primary:#f6f6f1;
42+
--ifm-background-color-secondary:#e8e8e8;
43+
--ifm-breadcrumb-item-background-active:#ffe9e2;
4244
}
4345

4446
[data-theme="dark"] {
@@ -51,6 +53,8 @@
5153
--ifm-color-primary-lightest:#171717;
5254
--docusaurus-highlighted-code-line-bg:rgba(0,0,0,0.3);
5355
--ifm-background-color-primary:#171717;
56+
--ifm-background-color-secondary:#232323;
57+
--ifm-breadcrumb-item-background-active:#3f322e;
5458
}
5559

5660
#__docusaurus {
@@ -102,6 +106,8 @@ a[docid="docs"] > svg {
102106
overflow: hidden;
103107
max-width:100%;
104108
background:#000;
109+
border-radius:1rem;
110+
border:4px solidvar(--ifm-background-color-secondary);
105111
}
106112

107113
.video-containeriframe {
@@ -298,3 +304,34 @@ a[docid="docs"] > svg {
298304
.pagination-nav {
299305
display: none;
300306
}
307+
/* ===== MARKDOWN STYLES ===== */
308+
.theme-doc-markdown.markdown {
309+
line-height:1.8rem;
310+
}
311+
/* ===== BREADCRUMB STYLES ===== */
312+
313+
.breadcrumbs {
314+
display: flex;
315+
gap:0.5rem;
316+
overflow-x: auto;
317+
white-space: nowrap;
318+
}
319+
.breadcrumbs::-webkit-scrollbar {
320+
display: none;
321+
}
322+
.breadcrumbs__item {
323+
display: flex;
324+
align-items: center;
325+
white-space: nowrap;
326+
gap:1rem;
327+
}
328+
.breadcrumbs__link {
329+
transition: color0.2s ease;
330+
background-color:var(--ifm-background-color-secondary);
331+
}
332+
333+
.breadcrumbs__item--active .breadcrumbs__link {
334+
font-weight:600;
335+
cursor: default;
336+
background-color:var(--ifm-breadcrumb-item-background-active);
337+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp