Skip to content

Commit 0ffba17

Browse files
fixed css issues (#495)
1 parent c069369 commit 0ffba17

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

src/css/custom.css

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ sup {
241241
color: var(--ifm-color-gray-600);
242242

243243
/* Make the text a bit smaller */
244-
font-size: 0.75rem;
244+
font-size: 0.7rem;
245245

246246
/* Optional: Add some additional styling */
247247
font-weight: 600;
@@ -253,11 +253,13 @@ sup {
253253
background-color: transparent !important;
254254
}
255255

256-
.theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible > .menu__link,
257-
.theme-doc-sidebar-item-link-level-2 > .menu__link {
258-
padding-left: 0;
259-
}
260256

257+
/* Ensure the color doesn't change on hover or when active */
258+
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link:hover,
259+
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > .menu__link--active {
260+
color: var(--ifm-color-gray-600);
261+
background: none;
262+
}
261263

262264
/* Remove hover effects for the parent element as well */
263265
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible:hover {
@@ -350,22 +352,6 @@ code {
350352
}
351353
}
352354

353-
/* Adjust these values as needed */
354-
h1 {
355-
font-size: 2rem;
356-
}
357-
358-
h2 {
359-
font-size: 1.5rem;
360-
}
361-
362-
h3 {
363-
font-size: 1.25rem;
364-
}
365-
366-
h4 {
367-
font-size: 1rem;
368-
}
369355

370356
/* Style the Table of Contents */
371357
.table-of-contents {
@@ -388,7 +374,3 @@ h4 {
388374
.theme-doc-sidebar-container {
389375
border-right: none !important;
390376
}
391-
392-
img {
393-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
394-
}

0 commit comments

Comments
 (0)