react-cheminfo 0.140.0 → 0.140.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/styles/chrome.css +30 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cheminfo",
|
|
3
|
-
"version": "0.140.
|
|
3
|
+
"version": "0.140.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React components, hooks and framework-free helpers shared by the cheminfo sites: site chrome, citations, sharing, routing, pedagogy, charts, and the structure, orbital and 3D molecule viewers",
|
|
6
6
|
"author": "Luc Patiny",
|
package/styles/chrome.css
CHANGED
|
@@ -2333,10 +2333,16 @@ span.taxon-lineage__name {
|
|
|
2333
2333
|
chevron says which are folded, and the border under an open header closes it
|
|
2334
2334
|
against its body.
|
|
2335
2335
|
|
|
2336
|
+
Two markups are matched. Before react-science 24.1 the header is itself the
|
|
2337
|
+
`role="button"`; from 24.1 it is a plain element holding a real button, the
|
|
2338
|
+
title, which the browser would otherwise draw with its own border and
|
|
2339
|
+
background.
|
|
2340
|
+
|
|
2336
2341
|
The chevron leads the header, where a disclosure is looked for. react-science
|
|
2337
2342
|
draws every header button on the right, so the chevron is lifted out of that
|
|
2338
2343
|
run and set before the title. */
|
|
2339
|
-
[role='button']:has(.side-panel__fold)
|
|
2344
|
+
[role='button']:has(.side-panel__fold),
|
|
2345
|
+
:has(> button[aria-expanded]):has(.side-panel__fold) {
|
|
2340
2346
|
position: relative;
|
|
2341
2347
|
padding-left: 32px;
|
|
2342
2348
|
border-top: 1px solid var(--border);
|
|
@@ -2345,16 +2351,31 @@ span.taxon-lineage__name {
|
|
|
2345
2351
|
text-shadow: none;
|
|
2346
2352
|
}
|
|
2347
2353
|
|
|
2348
|
-
[role='button']:has(.side-panel__fold):hover
|
|
2354
|
+
[role='button']:has(.side-panel__fold):hover,
|
|
2355
|
+
:has(> button[aria-expanded]):has(.side-panel__fold):hover {
|
|
2349
2356
|
background: color-mix(in oklab, var(--text) 9%, var(--surface-sunken));
|
|
2350
2357
|
}
|
|
2351
2358
|
|
|
2352
|
-
[role='button']:has(.side-panel__fold[data-panel-open='true'])
|
|
2359
|
+
[role='button']:has(.side-panel__fold[data-panel-open='true']),
|
|
2360
|
+
:has(> button[aria-expanded]):has(.side-panel__fold[data-panel-open='true']) {
|
|
2353
2361
|
border-bottom: 1px solid var(--border);
|
|
2354
2362
|
}
|
|
2355
2363
|
|
|
2364
|
+
/* The title, from react-science 24.1: the header's text, not a button. */
|
|
2365
|
+
:has(> button[aria-expanded]):has(.side-panel__fold) > button[aria-expanded] {
|
|
2366
|
+
padding: 5px 0;
|
|
2367
|
+
border: 0;
|
|
2368
|
+
background: none;
|
|
2369
|
+
color: inherit;
|
|
2370
|
+
cursor: pointer;
|
|
2371
|
+
font: inherit;
|
|
2372
|
+
font-weight: bold;
|
|
2373
|
+
text-align: left;
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2356
2376
|
/* Under the header, so it outweighs the button's own emotion class. */
|
|
2357
|
-
[role='button'] .side-panel__fold
|
|
2377
|
+
[role='button'] .side-panel__fold,
|
|
2378
|
+
:has(> button[aria-expanded]) .side-panel__fold {
|
|
2358
2379
|
position: absolute;
|
|
2359
2380
|
top: 50%;
|
|
2360
2381
|
left: 2px;
|
|
@@ -2364,12 +2385,15 @@ span.taxon-lineage__name {
|
|
|
2364
2385
|
/* The pin stays quiet: pale while the panel is only passing through, and the
|
|
2365
2386
|
ink of the header's other buttons once it is kept, so the two read apart at
|
|
2366
2387
|
a glance. Never the brand colour, which marks where the reader is. */
|
|
2367
|
-
[role='button'] .side-panel__pin .bp6-icon
|
|
2388
|
+
[role='button'] .side-panel__pin .bp6-icon,
|
|
2389
|
+
:has(> button[aria-expanded]) .side-panel__pin .bp6-icon {
|
|
2368
2390
|
color: color-mix(in oklab, var(--text-faint) 50%, var(--surface));
|
|
2369
2391
|
}
|
|
2370
2392
|
|
|
2371
2393
|
[role='button'] .side-panel__pin:hover .bp6-icon,
|
|
2372
|
-
[role='button'] .side-panel__pin--on .bp6-icon
|
|
2394
|
+
[role='button'] .side-panel__pin--on .bp6-icon,
|
|
2395
|
+
:has(> button[aria-expanded]) .side-panel__pin:hover .bp6-icon,
|
|
2396
|
+
:has(> button[aria-expanded]) .side-panel__pin--on .bp6-icon {
|
|
2373
2397
|
color: var(--text-muted);
|
|
2374
2398
|
}
|
|
2375
2399
|
|