|
9 | 9 |
|
10 | 10 | /* You can override the default Infima variables here. */
|
11 | 11 | :root {
|
12 |
| - --ifm-color-primary: #ff8b53; |
13 |
| - --ifm-color-primary-dark: #29784c; |
14 |
| - --ifm-color-primary-darker: #277148; |
15 |
| - --ifm-color-primary-darkest: #205d3b; |
16 |
| - --ifm-color-primary-light: #33925d; |
17 |
| - --ifm-color-primary-lighter: #359962; |
18 |
| - --ifm-color-primary-lightest: #3cad6e; |
19 |
| - --ifm-code-font-size: 95%; |
20 |
| - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
21 |
| - --ifm-navbar-height: 5rem; |
| 12 | + --ifm-color-primary: #ff8b53; |
| 13 | + --ifm-color-primary-dark: #29784c; |
| 14 | + --ifm-color-primary-darker: #277148; |
| 15 | + --ifm-color-primary-darkest: #205d3b; |
| 16 | + --ifm-color-primary-light: #33925d; |
| 17 | + --ifm-color-primary-lighter: #359962; |
| 18 | + --ifm-color-primary-lightest: #3cad6e; |
| 19 | + --ifm-code-font-size: 95%; |
| 20 | + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
| 21 | + --ifm-navbar-height: 5rem; |
22 | 22 | }
|
23 | 23 |
|
24 | 24 | /* For readability concerns, you should choose a lighter palette in dark mode. */
|
25 | 25 | [data-theme="dark"] {
|
26 |
| - --ifm-color-primary: #ff8b53; |
27 |
| - --ifm-color-primary-dark: #21af90; |
28 |
| - --ifm-color-primary-darker: #1fa588; |
29 |
| - --ifm-color-primary-darkest: #1a8870; |
30 |
| - --ifm-color-primary-light: #29d5b0; |
31 |
| - --ifm-color-primary-lighter: #32d8b4; |
32 |
| - --ifm-color-primary-lightest: #4fddbf; |
33 |
| - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
| 26 | + --ifm-color-primary: #ff8b53; |
| 27 | + --ifm-color-primary-dark: #21af90; |
| 28 | + --ifm-color-primary-darker: #1fa588; |
| 29 | + --ifm-color-primary-darkest: #1a8870; |
| 30 | + --ifm-color-primary-light: #29d5b0; |
| 31 | + --ifm-color-primary-lighter: #32d8b4; |
| 32 | + --ifm-color-primary-lightest: #4fddbf; |
| 33 | + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
34 | 34 | }
|
35 | 35 |
|
36 | 36 | .navbar .navbar__item {
|
37 |
| - align-items: center; |
38 |
| - display: flex; |
39 |
| - font-size: 1.25rem; |
40 |
| - font-weight: 700; |
| 37 | + align-items: center; |
| 38 | + display: flex; |
| 39 | + font-size: 1.25rem; |
| 40 | + font-weight: 700; |
41 | 41 | }
|
42 | 42 |
|
43 | 43 | a[docid="docs"] > svg {
|
44 |
| - display: none; |
| 44 | + display: none; |
45 | 45 | }
|
46 | 46 |
|
47 | 47 | /* Adjustments for mobile view */
|
48 | 48 | @media (max-width: 768px) {
|
49 |
| - /* Reduce the logo size for smaller screens */ |
50 |
| - .navbar__logo img { |
51 |
| - height: 32px; |
52 |
| - align-items: center; |
53 |
| - } |
| 49 | + /* Reduce the logo size for smaller screens */ |
| 50 | + .navbar__logo img { |
| 51 | + height: 32px; |
| 52 | + align-items: center; |
| 53 | + } |
54 | 54 |
|
55 |
| - /* Reduce the padding around the logo for smaller screens */ |
56 |
| - .navbar__logo { |
57 |
| - padding: 2px; /* Adjust the padding for smaller screens */ |
58 |
| - } |
| 55 | + /* Reduce the padding around the logo for smaller screens */ |
| 56 | + .navbar__logo { |
| 57 | + padding: 2px; /* Adjust the padding for smaller screens */ |
| 58 | + } |
59 | 59 | }
|
60 | 60 |
|
61 | 61 | /* Center the Discord link within its parent */
|
62 | 62 | .navbar__items.navbar__items--right {
|
63 |
| - display: flex; |
64 |
| - justify-content: center; |
65 |
| - align-items: center; |
| 63 | + display: flex; |
| 64 | + justify-content: center; |
| 65 | + align-items: center; |
66 | 66 | }
|
67 | 67 |
|
68 | 68 | @media screen and (max-width: 480px) {
|
69 |
| - a.navbar__item.navbar__link[docid="docs"] { |
70 |
| - display: none !important; |
71 |
| - } |
| 69 | + a.navbar__item.navbar__link[docid="docs"] { |
| 70 | + display: none !important; |
| 71 | + } |
72 | 72 | }
|
73 | 73 |
|
74 | 74 | @media screen and (max-width: 480px) {
|
75 |
| - a.navbar__item.navbar__link[href="https://blog.coderabbit.ai/blog"] |
76 |
| - { |
77 |
| - display: none; |
78 |
| - } |
| 75 | + a.navbar__item.navbar__link[href="https://blog.coderabbit.ai/blog"] |
| 76 | + { |
| 77 | + display: none; |
| 78 | + } |
| 79 | +} |
| 80 | + |
| 81 | +[data-theme="light"] img[src$="#gh-dark-mode-only"], |
| 82 | +[data-theme="dark"] img[src$="#gh-light-mode-only"] { |
| 83 | + display: none; |
79 | 84 | }
|
80 | 85 |
|
81 | 86 | /* Light mode Discord icon */
|
|
0 commit comments