|
9 | 9 | width: 18px; |
10 | 10 | height: 18px; |
11 | 11 | margin-right: 7px; |
12 | | - fill:#6DD2D2 |
| 12 | + fill: var(--ifm-color-gray-800, #444950); |
| 13 | + transition: fill 0.2s ease; |
13 | 14 | } |
14 | 15 |
|
15 | 16 | .iconTextWrapper { |
16 | 17 | display: flex; |
17 | 18 | align-items: center; |
18 | | - border: 2px solid #6DD2D2; |
19 | | - padding: 8px; |
| 19 | + border: 1px solid var(--ifm-color-gray-400, #cfd3d9); |
| 20 | + padding: 0.45rem 0.5rem; |
20 | 21 | border-radius: 8px; |
| 22 | + font-size: 1rem; |
| 23 | + font-weight: 500; |
| 24 | + color: var(--ifm-color-gray-800, #444950); |
| 25 | + background-color: transparent; |
| 26 | + transition: all 0.2s ease; |
21 | 27 | } |
| 28 | + |
22 | 29 | .iconTextWrapper:hover { |
23 | | - color: #ffffff; |
24 | | - background-color: #6DD2D2; |
25 | | - fill:#ffffff; |
| 30 | + background-color: var(--ifm-color-gray-100, #f5f6f7); |
| 31 | + border-color: var(--ifm-color-gray-500, #a8acb3); |
26 | 32 | cursor: pointer; |
27 | 33 | } |
| 34 | + |
| 35 | +.iconTextWrapper:active { |
| 36 | + transform: translateY(1px); |
| 37 | +} |
| 38 | + |
| 39 | +.iconTextWrapper:focus { |
| 40 | + box-shadow: 0 0 0 2px var(--ifm-color-gray-300, #dadde1); |
| 41 | + outline: none; |
| 42 | +} |
| 43 | + |
28 | 44 | .iconTextWrapper:hover .icon { |
29 | | - fill:#ffffff; |
| 45 | + fill: var(--ifm-color-gray-800, #444950); |
30 | 46 | } |
31 | 47 |
|
32 | 48 | .githubLinksWrapper { |
33 | | - display:flex; |
| 49 | + display: flex; |
34 | 50 | gap: 10px; |
35 | 51 | } |
36 | 52 |
|
| 53 | +/* Dark mode styles */ |
| 54 | +html[data-theme='dark'] .iconTextWrapper { |
| 55 | + color: var(--ifm-color-gray-300, #dadde1); |
| 56 | + border-color: var(--ifm-color-gray-600, #606770); |
| 57 | + background-color: transparent; |
| 58 | +} |
| 59 | + |
| 60 | +html[data-theme='dark'] .icon { |
| 61 | + fill: var(--ifm-color-gray-300, #dadde1); |
| 62 | +} |
| 63 | + |
| 64 | +html[data-theme='dark'] .iconTextWrapper:hover { |
| 65 | + background-color: var(--ifm-color-gray-800, #444950); |
| 66 | + border-color: var(--ifm-color-gray-500, #a8acb3); |
| 67 | +} |
| 68 | + |
| 69 | +html[data-theme='dark'] .iconTextWrapper:focus { |
| 70 | + box-shadow: 0 0 0 2px var(--ifm-color-gray-700, #606770); |
| 71 | +} |
| 72 | + |
| 73 | +html[data-theme='dark'] .iconTextWrapper:hover .icon { |
| 74 | + fill: var(--ifm-color-gray-300, #dadde1); |
| 75 | +} |
| 76 | + |
37 | 77 | @media (max-width: 500px) { |
38 | 78 | .githubLinksWrapper { |
39 | 79 | flex-direction: column; |
|
0 commit comments