|
20 | 20 | --ifm-font-heading-family: "Montserrat";
|
21 | 21 | --ifm-font-content-family: "Inter";
|
22 | 22 | transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
|
| 23 | + --ifm-color-primary: #008478; |
| 24 | + --ifm-color-primary-dark: #007466; |
| 25 | + --ifm-color-primary-darker: #00695c; |
| 26 | + --ifm-color-primary-darkest: #004d40; |
| 27 | + --ifm-color-primary-light: #26a69a; |
| 28 | + --ifm-color-primary-lighter: #80cbc4; |
| 29 | + --ifm-color-primary-lightest: #b2dfdb; |
| 30 | + --ifm-color-secondary: #ebedf0; |
| 31 | + --ifm-color-success: #388e3c; |
| 32 | + --ifm-color-info: #1976d2; |
| 33 | + --ifm-color-warning: #ef6c00; |
| 34 | + --ifm-color-danger: #d84315; |
| 35 | + --ifm-code-font-size: 95%; |
| 36 | + --ifm-footer-link-hover-color: #4db6ac; /* Same as dark theme primary */ |
| 37 | + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
| 38 | + --gradient: linear-gradient( |
| 39 | + 60deg, |
| 40 | + var(--ifm-color-primary-darker) 0%, |
| 41 | + var(--ifm-color-primary-light) 100% |
| 42 | + ); |
| 43 | + --theme-card: #f6f6f6; |
| 44 | + --theme-card-link-color: var(--ifm-color-primary-dark); |
| 45 | + --dark-theme-bg-color: #1b1b1d; |
| 46 | + --light-theme-bg-color: #fff; |
| 47 | + --pydata-link-underline-thickness: max(1px, 0.0625rem); |
| 48 | + --pydata-link-underline-offset: 0.1578em; |
| 49 | + --pydata-link-hover-decoration-thickness: max(3px, 0.1875rem, 0.12em); |
| 50 | +} |
| 51 | + |
| 52 | +/* For readability concerns, you should choose a lighter palette in dark mode. */ |
| 53 | +[data-theme="dark"] { |
| 54 | + --ifm-color-primary: #4db6ac; |
| 55 | + --ifm-color-primary-dark: #009688; |
| 56 | + --ifm-color-primary-darker: #00897b; |
| 57 | + --ifm-color-primary-darkest: #00796b; |
| 58 | + --ifm-color-primary-light: #80cbc4; |
| 59 | + --ifm-color-primary-lighter: #b2dfdb; |
| 60 | + --ifm-color-primary-lightest: #e0f2f1; |
| 61 | + --ifm-color-secondary: #ebedf0; |
| 62 | + --ifm-color-success: #81c784; |
| 63 | + --ifm-color-info: #64b5f6; |
| 64 | + --ifm-color-warning: #ffb74d; |
| 65 | + --ifm-color-danger: #ff8a65; |
| 66 | + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
| 67 | + --gradient: linear-gradient( |
| 68 | + 60deg, |
| 69 | + var(--ifm-color-primary-darker) 0%, |
| 70 | + var(--ifm-color-primary) 100% |
| 71 | + ); |
| 72 | + --theme-card: #3a3a3a; |
| 73 | + --theme-card-link-color: var(--ifm-color-primary-light); |
23 | 74 | }
|
24 | 75 |
|
25 | 76 | h1,
|
|
35 | 86 | font-family: var(--ifm-font-content-family);
|
36 | 87 | }
|
37 | 88 |
|
| 89 | +/* |
| 90 | +Hyperlink states are crucial for accessibility. |
| 91 | +Please double check before changing the rules below. |
| 92 | +*/ |
38 | 93 | a {
|
39 | 94 | text-decoration: underline;
|
| 95 | + text-decoration-thickness: var(--pydata-link-underline-thickness); |
| 96 | + text-underline-offset: var(--pydata-link-underline-offset); |
40 | 97 | }
|
41 | 98 |
|
42 |
| -a:hover { |
43 |
| - text-decoration: none; |
| 99 | +a:hover, |
| 100 | +/* We need to (re)override some of the infima rules to have proper states on |
| 101 | +navbar links, table of contents, and docs sidebar links, respectively */ |
| 102 | +a.navbar__link:hover, /* Top bar navigation links */ |
| 103 | +a.table-of-contents__link:hover, /*Right sidebar links (table of contents) */ |
| 104 | +a[class^="sidebarItemLink"]:hover /* The docs sidebar links do not have its own class */ { |
| 105 | + text-decoration: underline; |
| 106 | + text-decoration-thickness: var(--pydata-link-hover-decoration-thickness); |
| 107 | + text-decoration-skip-ink: none; |
| 108 | + text-decoration-skip: none; |
44 | 109 | }
|
45 |
| - |
46 |
| -a:focus { |
47 |
| - background: #ffff00; |
48 |
| - border-radius: 5px; |
49 |
| - color: #000; |
| 110 | +a:active, |
| 111 | +a.navbar__link:active, |
| 112 | +a.table-of-contents__link:active, |
| 113 | +a[class^="sidebarItemLink"]:active { |
| 114 | + text-decoration-thickness: var(--pydata-link-decoration-thickness); |
50 | 115 | }
|
51 | 116 |
|
| 117 | +/* In some cases, we override the underlines because there are other elements that |
| 118 | +already report the state (e.g. borders, background colors, etc) */ |
| 119 | +a[class^="sidebarItemLink"][aria-current="page"], /* No underline if this is the current page */ |
| 120 | +a.navbar__link, |
52 | 121 | .navbar-sidebar__item,
|
53 |
| -.menu a { |
| 122 | +.menu a, |
| 123 | +.navbar__items--right a, |
| 124 | +.pagination-nav__link, |
| 125 | +a.card, /* These cards are used in index-like documentation pages */ |
| 126 | +a.card:hover { |
54 | 127 | text-decoration: none;
|
55 | 128 | }
|
56 | 129 |
|
57 |
| -.navbar__items--right a { |
58 |
| - text-decoration: none; |
| 130 | +/* On these elements, we only rely on background color changes. They are navigation items, |
| 131 | +so they are already assumed to be clickable anyway */ |
| 132 | +.pagination-nav__link:active, |
| 133 | +a.card:active, |
| 134 | +a.menu__link:active { |
| 135 | + background: var(--ifm-color-primary-lightest); |
| 136 | + color: #000; |
| 137 | +} |
| 138 | +[data-theme="dark"] .pagination-nav__link:active, |
| 139 | +[data-theme="dark"] a.card:active, |
| 140 | +[data-theme="dark"] a.menu__link:active { |
| 141 | + background: var(--ifm-color-primary-darkest); |
| 142 | + color: #fff; |
59 | 143 | }
|
60 | 144 |
|
61 |
| -.footer a:hover { |
62 |
| - color: var(--ifm-color-primary-lightest); |
| 145 | +/* Animate the top navbar conda-forge logo a bit */ |
| 146 | +.navbar__logo img:hover { |
| 147 | + transform: scale(1.05); |
| 148 | +} |
| 149 | +.navbar__logo img:active { |
| 150 | + transform: scale(1); |
63 | 151 | }
|
64 | 152 |
|
| 153 | +/* Used for accents in the frontpage */ |
65 | 154 | .gradient_text {
|
66 |
| - background: linear-gradient(62deg, #ff3664 0%, #ff4b2b 100%); |
| 155 | + background: var(--gradient); |
67 | 156 | background-clip: text;
|
68 | 157 | -webkit-background-clip: text;
|
69 | 158 | -webkit-text-fill-color: transparent;
|
70 | 159 | }
|
71 | 160 |
|
| 161 | +/* The homepage button is used only under the hero text */ |
72 | 162 | .homepage_button {
|
73 | 163 | background:
|
74 | 164 | linear-gradient(#fff, #fff) padding-box,
|
75 |
| - linear-gradient(62deg, #ff3664 0%, #ff4b2b 100%) border-box; |
| 165 | + var(--gradient) border-box; |
76 | 166 | border: 2px solid transparent;
|
77 | 167 | }
|
78 |
| - |
79 |
| -.homepage_button:hover { |
| 168 | +.homepage_button:hover, |
| 169 | +.homepage_button:focus, |
| 170 | +.homepage_button:focus:active { |
80 | 171 | background:
|
81 | 172 | linear-gradient(#ebedf0, #ebedf0) padding-box,
|
82 |
| - linear-gradient(62deg, #ff3664 0%, #ff4b2b 100%) border-box; |
| 173 | + var(--gradient) border-box; |
| 174 | +} |
| 175 | +.homepage_button:active { |
| 176 | + transform: translateY(1px); |
83 | 177 | }
|
84 | 178 |
|
85 |
| -[data-theme="dark"] .button.button--secondary { |
| 179 | +/* Use a gradient border on most buttons; |
| 180 | +see how we avoid the "Collapse sidebar" button of the docs sidebar via the aria-label; |
| 181 | +not pretty but it's the best we can do so far */ |
| 182 | +[data-theme="dark"] |
| 183 | + .button.button--secondary:not([aria-label="Collapse sidebar"]) { |
86 | 184 | background:
|
87 | 185 | linear-gradient(#3a3a3a, #3a3a3a) padding-box,
|
88 |
| - linear-gradient(62deg, #ff3664 0%, #ff4b2b 100%) border-box; |
| 186 | + var(--gradient) border-box; |
89 | 187 | border: 2px solid transparent;
|
90 | 188 | color: #ffffff;
|
91 | 189 | }
|
92 | 190 |
|
93 |
| -[data-theme="dark"] .button.button--secondary:hover { |
| 191 | +[data-theme="dark"] |
| 192 | + .button.button--secondary:hover:not([aria-label="Collapse sidebar"]) { |
94 | 193 | background:
|
95 | 194 | linear-gradient(#4c4c4c, #4c4c4c) padding-box,
|
96 |
| - linear-gradient(62deg, #ff3664 0%, #ff4b2b 100%) border-box; |
| 195 | + var(--gradient) border-box; |
97 | 196 | border: 2px solid transparent;
|
98 | 197 | color: #ffffff;
|
99 | 198 | }
|
100 | 199 |
|
101 |
| -:root { |
102 |
| - --ifm-color-primary: #b34400; |
103 |
| - --ifm-color-primary-dark: #a13d00; |
104 |
| - --ifm-color-primary-darker: #983a00; |
105 |
| - --ifm-color-primary-darkest: #7d3000; |
106 |
| - --ifm-color-primary-light: #c54b00; |
107 |
| - --ifm-color-primary-lighter: #ce4e00; |
108 |
| - --ifm-color-primary-lightest: #e95800; |
109 |
| - --ifm-code-font-size: 95%; |
110 |
| - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
111 |
| - --gradient: linear-gradient(60deg, #ff3664 0%, #ff4b2b 100%); |
112 |
| - --theme-card: #f6f6f6; |
113 |
| - --dark-theme-bg-color: #1b1b1d; |
114 |
| - --light-theme-bg-color: #fff; |
115 |
| -} |
116 |
| - |
117 |
| -/* For readability concerns, you should choose a lighter palette in dark mode. */ |
118 |
| -[data-theme="dark"] { |
119 |
| - --ifm-color-primary: #ff5501; |
120 |
| - --ifm-color-primary-dark: #e64c00; |
121 |
| - --ifm-color-primary-darker: #da4800; |
122 |
| - --ifm-color-primary-darkest: #b33b00; |
123 |
| - --ifm-color-primary-light: #ff661b; |
124 |
| - --ifm-color-primary-lighter: #ff6f27; |
125 |
| - --ifm-color-primary-lightest: #ff884e; |
126 |
| - --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
127 |
| - --theme-card: #3a3a3a; |
128 |
| -} |
129 |
| - |
130 | 200 | .color-container {
|
131 | 201 | display: inline-flex;
|
132 | 202 | flex-direction: column;
|
|
0 commit comments