@trackunit/css-core 1.7.63-alpha-4bc6bdb6833.0 → 1.7.65

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/core.css +20 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-core",
3
- "version": "1.7.63-alpha-4bc6bdb6833.0",
3
+ "version": "1.7.65",
4
4
  "main": "src/lib/core.css",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
package/src/lib/core.css CHANGED
@@ -84,26 +84,38 @@ tr > td[data-pinned=""] + td[data-pinned="right"] {
84
84
  border-left-width: 2px;
85
85
  }
86
86
 
87
- tr:focus-visible,
88
- tr:focus-within {
87
+ /* Row focus (body rows only) */
88
+ .row-focus:has(:focus-visible):not(:has([data-selection-cell] :focus-visible)) {
89
89
  box-shadow: inset 0 0 0 2px rgb(var(--color-primary-600));
90
90
  outline: none !important;
91
91
  }
92
92
 
93
- tr:focus-visible > :is(th,td)[data-pinned="left"],
94
- tr:focus-within > :is(th,td)[data-pinned="left"] {
95
- outline: none !important;
93
+ /* LEFT pinned — first cell in the block: left + top + bottom */
94
+ .row-focus:has(:focus-visible) > td[data-pinned="left"] {
96
95
  box-shadow:
97
96
  inset 2px 0 0 rgb(var(--color-primary-600)),
98
97
  inset 0 2px 0 rgb(var(--color-primary-600)),
99
98
  inset 0 -2px 0 rgb(var(--color-primary-600));
100
99
  }
101
100
 
102
- tr:focus-visible > :is(th,td)[data-pinned="right"],
103
- tr:focus-within > :is(th,td)[data-pinned="right"] {
104
- outline: none !important;
101
+ /* LEFT pinned — all following cells in the block: only top + bottom (no inner vertical line) */
102
+ .row-focus:has(:focus-visible) > td[data-pinned="left"] + td[data-pinned="left"] {
103
+ box-shadow:
104
+ inset 0 2px 0 rgb(var(--color-primary-600)),
105
+ inset 0 -2px 0 rgb(var(--color-primary-600));
106
+ }
107
+
108
+ /* RIGHT pinned — last cell in the block: right + top + bottom */
109
+ .row-focus:has(:focus-visible) > td[data-pinned="right"] {
105
110
  box-shadow:
106
111
  inset -2px 0 0 rgb(var(--color-primary-600)),
107
112
  inset 0 2px 0 rgb(var(--color-primary-600)),
108
113
  inset 0 -2px 0 rgb(var(--color-primary-600));
109
114
  }
115
+
116
+ /* RIGHT pinned — all cells that have another right pinned cell on their right: only top + bottom */
117
+ .row-focus:has(:focus-visible) > td[data-pinned="right"]:has(+ td[data-pinned="right"]) {
118
+ box-shadow:
119
+ inset 0 2px 0 rgb(var(--color-primary-600)),
120
+ inset 0 -2px 0 rgb(var(--color-primary-600));
121
+ }