Skip to content

Commit 631799f

Browse files
committed
Use expanded hover area pattern in examples
Update example divider styles to use the classic transparent border pattern that provides a larger grabbable area (11px) with visual feedback on hover. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 57abc53 commit 631799f

1 file changed

Lines changed: 29 additions & 10 deletions

File tree

examples/styles.css

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,27 +98,46 @@ body {
9898
font-family: monospace;
9999
}
100100

101-
/* Split pane divider styles */
101+
/* Split pane divider styles - expanded hover area pattern */
102102
.split-pane-divider {
103103
background: #0f3460;
104-
transition: background 0.2s;
104+
z-index: 1;
105+
box-sizing: border-box;
106+
background-clip: padding-box;
107+
transition: all 0.2s ease;
105108
}
106109

107-
.split-pane-divider:hover,
108110
.split-pane-divider:focus {
109-
background: #e94560;
111+
outline: 2px solid #e94560;
112+
outline-offset: -2px;
110113
}
111114

112115
.split-pane-divider.horizontal {
113-
width: 4px !important;
114-
margin-left: -2px !important;
115-
margin-right: -2px !important;
116+
width: 11px !important;
117+
margin-left: -5px !important;
118+
margin-right: -5px !important;
119+
border-left: 5px solid rgba(0, 0, 0, 0);
120+
border-right: 5px solid rgba(0, 0, 0, 0);
121+
cursor: col-resize;
122+
}
123+
124+
.split-pane-divider.horizontal:hover {
125+
border-left: 5px solid rgba(233, 69, 96, 0.5);
126+
border-right: 5px solid rgba(233, 69, 96, 0.5);
116127
}
117128

118129
.split-pane-divider.vertical {
119-
height: 4px !important;
120-
margin-top: -2px !important;
121-
margin-bottom: -2px !important;
130+
height: 11px !important;
131+
margin-top: -5px !important;
132+
margin-bottom: -5px !important;
133+
border-top: 5px solid rgba(0, 0, 0, 0);
134+
border-bottom: 5px solid rgba(0, 0, 0, 0);
135+
cursor: row-resize;
136+
}
137+
138+
.split-pane-divider.vertical:hover {
139+
border-top: 5px solid rgba(233, 69, 96, 0.5);
140+
border-bottom: 5px solid rgba(233, 69, 96, 0.5);
122141
}
123142

124143
/* Example specific styles */

0 commit comments

Comments
 (0)