/
ashipov
/
react
Обзор
Документация
Войти
/
ashipov
/
react
Код
Запросы
0
Задачи 2.0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseRects.css
110 строк
3 KB
Sebastian Markbåge
[DevTools] Special case the selected root outline (#35071)
09 ноя 2025, 23:03
Не верифицирован
09 ноя 2025, 23:03
6362b5c
Код
Авторство
О чём код?
.SuspenseRectsContainer { padding: .25rem; outline-color: transparent; outline-style: solid; outline-width: 1px; border-radius: 0.25rem; } .SuspenseRectsRoot { cursor: pointer; outline-color: var(--color-transition); background-color: color-mix(in srgb, var(--color-transition) 5%, transparent); } .SuspenseRectsRootOutline { outline-width: 4px; border-radius: 0.125rem; } .SuspenseRectsRoot[data-hovered='true'] { background-color: color-mix(in srgb, var(--color-transition) 15%, transparent); } .SuspenseRectsViewBox { position: relative; } .SuspenseRectsBoundary { pointer-events: all; border-radius: 0.125rem; } .SuspenseRectsBoundary[data-visible='false'] { background-color: transparent; } .SuspenseRectsBoundaryChildren { pointer-events: none; } .SuspenseRectsTitle { pointer-events: none; color: color-mix(in srgb, var(--color-suspense) 50%, var(--color-text)); overflow: hidden; text-overflow: ellipsis; font-family: var(--font-family-sans); font-size: var(--font-size-sans-small); line-height: var(--line-height-data); padding: 0 .25rem; container-type: size; container-name: title; } @container title (width < 30px) or (height < 18px) { .SuspenseRectsTitle > span { display: none; } } .SuspenseRectsScaledRect[data-visible='false'] > .SuspenseRectsBoundaryChildren { overflow: initial; } .SuspenseRectsRect { box-shadow: var(--elevation-4); pointer-events: all; cursor: pointer; border-radius: 0.125rem; background-color: color-mix(in srgb, var(--color-background) 50%, var(--color-suspense) 25%); backdrop-filter: grayscale(100%); transition: background-color 0.2s ease-in; outline-color: var(--color-suspense); outline-style: solid; outline-width: 1px; } .SuspenseRectsScaledRect { position: absolute; } .SuspenseRectsScaledRect[data-visible='false'] { pointer-events: none; outline-width: 0; } .SuspenseRectsBoundary[data-suspended='true'] { opacity: 0.33; } /* highlight this boundary */ .SuspenseRectsBoundary[data-hovered='true'] > .SuspenseRectsRect { background-color: color-mix(in srgb, var(--color-background) 50%, var(--color-suspense) 50%); transition: background-color 0.2s ease-out; } .SuspenseRectsBoundary[data-selected='true'][data-visible='true'] { box-shadow: var(--elevation-4); } .SuspenseRectOutline { outline-color: var(--color-suspense); outline-style: solid; outline-width: 4px; border-radius: 0.125rem; pointer-events: none; } .SuspenseRectsBoundary[data-selected='true'] > .SuspenseRectsRect { box-shadow: none; }