Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit f636d0a

Browse files
fix: collapsebar fixed
1 parent 986df85 commit f636d0a

File tree

1 file changed

+29
-3
lines changed

1 file changed

+29
-3
lines changed

src/styles/index.scss

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@use 'src/styles/utility' as *;
2+
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans');
3+
@import url('https://fonts.googleapis.com/css2?family=Ubuntu');
24

35
/**
46
* Any CSS included here will be global. The classic template
@@ -10,6 +12,8 @@
1012
in order to avoid swizzling the whole component just to modify few classes */
1113

1214
:root {
15+
--ibm-font-family-base: 'IBM Plex Sans', sans-serif;
16+
--ibm-font-family-header: 'Ubuntu', sans-serif;
1317
--ifm-color-primary: #2e8555;
1418
--ifm-color-primary-dark: #29784c;
1519
--ifm-color-primary-darker: #277148;
@@ -22,6 +26,7 @@
2226
--ifm-menu-color: #414652;
2327
--ifm-menu-link-sublist-icon-2: url(/img/arrow_sidebar.svg);
2428
--ifm-menu-link-padding-vertical: 9px;
29+
--doc-sidebar-width: 283px !important;
2530
}
2631

2732
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -40,10 +45,16 @@
4045
margin: 0;
4146
padding: 0;
4247
scroll-margin-top: rem(10);
48+
font-family: var(--ibm-font-family-base);
4349
}
4450

45-
.main-page-row:nth-child(even) {
46-
background-color: var(--ifm-color-emphasis-100);
51+
h1,
52+
h2,
53+
h3,
54+
h4,
55+
h5,
56+
h6 {
57+
font-family: var(--ibm-font-family-header);
4758
}
4859

4960
.error-message {
@@ -66,6 +77,22 @@ h6 {
6677
margin: 0;
6778
padding: 0;
6879
}
80+
h1,
81+
h2 {
82+
font-family: 'Ubuntu', sans-serif;
83+
}
84+
html,
85+
body {
86+
overflow-x: hidden;
87+
}
88+
89+
.swiper {
90+
padding: 0 rem(4) !important;
91+
width: rem(32) !important;
92+
@media screen and (min-width: 600px) {
93+
width: rem(55) !important;
94+
}
95+
}
6996

7097
.loading {
7198
position: absolute;
@@ -124,7 +151,6 @@ h6 {
124151

125152
aside.theme-doc-sidebar-container {
126153
height: 100vh;
127-
width: rem(28.3);
128154
}
129155

130156
[class*='tocCollapsibleButton'] {

0 commit comments

Comments
 (0)