1

I implemented spectrum color picker. I'm trying to change the alpha sliders height. (The one with the class name: .sp-alpha.)
When I do that, then the color picker containers (class name: sp-top-inner) height changes.

How can I edit the source file so that I can change the alpha sliders height without affecting other elements?

Alvaro Silvino
  • 9,441
  • 12
  • 52
  • 80
Horay
  • 1,388
  • 2
  • 19
  • 36

1 Answers1

0

Set .sp-top-inner height to 150px or add bottom:20px (any number you like):

.sp-top-inner {
    height: 150px;
}

Or

.sp-top-inner {
        bottom: 20px;
    }

then change the height of .sp-alpha and add custom margin:

 .sp-alpha-enabled .sp-alpha {
  height: 20px;
  margin: 5px 5px 5px 0;
}

Note: Just add above codes if you want to enable alpha mode.

JSFiddle Demo

SEAN
  • 51
  • 5