Skip to content

Commit 2b2a985

Browse files
committed
Add hover effect to color ramps
1 parent d92baec commit 2b2a985

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

packages/base/style/symbologyDialog.css

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ select option {
158158
visibility: hidden;
159159
z-index: 40;
160160
flex: 1 1 auto;
161-
width: 100%;
161+
width: 97%;
162162
max-height: 375px;
163163
background: var(--jp-input-background);
164-
padding: 0 25px 0 8px;
164+
padding-left: 8px;
165165
border: var(--jp-border-width) solid var(--jp-input-border-color);
166166
border-radius: 0;
167167
outline: none;
@@ -174,10 +174,6 @@ select option {
174174
visibility: visible;
175175
}
176176

177-
/* .jp-gis-color-ramp-dropdown > .jp-gis-color-ramp-entry:hover {
178-
background-color: #f1f1f1;
179-
} */
180-
181177
.jp-gis-color-ramp-entry {
182178
display: flex;
183179
align-items: center;
@@ -192,19 +188,24 @@ select option {
192188

193189
.jp-gis-color-label {
194190
position: absolute;
191+
transition: transform 0.3s ease;
192+
}
193+
194+
.jp-gis-color-ramp-entry:hover .jp-gis-color-label {
195+
transform: scale(1.2);
195196
}
196197

197198
.jp-gis-color-canvas {
198199
margin: 0 -7px;
199200
border-radius: 4px;
200-
width: 354px;
201+
width: 100%;
202+
max-height: 38px;
201203
}
202204

203205
.jp-gis-color-canvas-display {
204206
width: 100%;
205207
height: 30px;
206208
visibility: initial;
207-
border: var(--jp-border-width) solid var(--jp-input-border-color);
208209
}
209210

210211
.jp-gis-canvas-button-wrapper {

0 commit comments

Comments
 (0)