diff --git a/css/jquery.enhsplitter.css b/css/jquery.enhsplitter.css index 907a4ec..08ce509 100644 --- a/css/jquery.enhsplitter.css +++ b/css/jquery.enhsplitter.css @@ -118,6 +118,14 @@ .splitter-vertical > .splitter_bar.splitter-handle-block > .splitter_handle { width: 5px; } +.splitter-vertical > .splitter_bar.splitter-handle-dots > .splitter_handle { + background-color: #c0c0c0; + background-image: radial-gradient(circle 3px at 50% 10%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 30%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 70%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 90%, #666666 1.5px, transparent 2px); +} +.splitter-vertical > .splitter_bar.splitter-handle-dots > .splitter_handle:hover, +.splitter-vertical > .splitter_bar.splitter-handle-dots > .splitter_handle:active { + background-image: radial-gradient(circle 3px at 50% 10%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 30%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 70%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 90%, #000000 1.5px, transparent 2px); +} .splitter-horizontal > .splitter_bar { border-top: 1px solid #eeeeee; border-bottom: 1px solid #666666; @@ -153,6 +161,15 @@ height: 5px; margin-top: 1px; } +.splitter-horizontal > .splitter_bar.splitter-handle-dots > .splitter_handle { + height: 100%; + background-color: #c0c0c0; + background-image: radial-gradient(circle 3px at 10% 50%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 30% 50%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 70% 50%, #666666 1.5px, transparent 2px), radial-gradient(circle 3px at 90% 50%, #666666 1.5px, transparent 2px); +} +.splitter-horizontal > .splitter_bar.splitter-handle-dots > .splitter_handle:hover, +.splitter-horizontal > .splitter_bar.splitter-handle-dots > .splitter_handle:active { + background-image: radial-gradient(circle 3px at 10% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 30% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 70% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 90% 50%, #000000 1.5px, transparent 2px); +} .splitter_container.splitter-active > .splitter_bar { z-index: 1000; /* Important to keep z-index of active splitter above .splitterMask. */ @@ -165,6 +182,12 @@ .splitter_container.splitter-active > .splitter_bar.splitter-handle-block > .splitter_handle { background-color: #000000; } +.splitter_container.splitter-active.splitter-vertical > .splitter_bar.splitter-handle-dots > .splitter_handle { + background-image: radial-gradient(circle 3px at 50% 10%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 30%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 70%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 90%, #000000 1.5px, transparent 2px); +} +.splitter_container.splitter-active.splitter-horizontal > .splitter_bar.splitter-handle-dots > .splitter_handle { + background-image: radial-gradient(circle 3px at 10% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 30% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 50% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 70% 50%, #000000 1.5px, transparent 2px), radial-gradient(circle 3px at 90% 50%, #000000 1.5px, transparent 2px); +} .splitter_mask { position: fixed; left: 0; diff --git a/css/jquery.enhsplitter.less b/css/jquery.enhsplitter.less index 08364c2..11d97d5 100644 --- a/css/jquery.enhsplitter.less +++ b/css/jquery.enhsplitter.less @@ -163,6 +163,27 @@ width: @splitter_size - 2; } } + + &.splitter-handle-dots { + > .splitter_handle { + background-color: @splitter_color; + background-image: radial-gradient(circle 3px at 50% 10%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 30%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 70%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 90%, @splitter_shadow 1.5px, transparent 2px); + + &:hover, + &:active { + background-image: radial-gradient(circle 3px at 50% 10%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 30%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 70%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 90%, @handle_active 1.5px, transparent 2px); + } + } + } + } } @@ -211,6 +232,28 @@ margin-top: 1px; } } + + &.splitter-handle-dots { + > .splitter_handle { + height: 100%; + background-color: @splitter_color; + background-image: radial-gradient(circle 3px at 10% 50%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 30% 50%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 70% 50%, @splitter_shadow 1.5px, transparent 2px), + radial-gradient(circle 3px at 90% 50%, @splitter_shadow 1.5px, transparent 2px); + + &:hover, + &:active { + background-image: radial-gradient(circle 3px at 10% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 30% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 70% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 90% 50%, @handle_active 1.5px, transparent 2px); + } + } + } + } } @@ -228,6 +271,22 @@ background-color: @handle_active; } } + + &.splitter-vertical > .splitter_bar.splitter-handle-dots > .splitter_handle { + background-image: radial-gradient(circle 3px at 50% 10%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 30%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 70%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 90%, @handle_active 1.5px, transparent 2px); + } + + &.splitter-horizontal > .splitter_bar.splitter-handle-dots > .splitter_handle { + background-image: radial-gradient(circle 3px at 10% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 30% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 50% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 70% 50%, @handle_active 1.5px, transparent 2px), + radial-gradient(circle 3px at 90% 50%, @handle_active 1.5px, transparent 2px), + } } .splitter_mask { diff --git a/demo.html b/demo.html index d1e4751..6a00d10 100644 --- a/demo.html +++ b/demo.html @@ -390,16 +390,18 @@
['default'|'bar'|'block'|'none'|<user-defined>]
+ ['default'|'stripes'|'bar'|'block'|'dots'|'none'|<user-defined>]
Default: 'default'
Defines how the the collapse is drawn.
'default'
draws a striped handle, as shown in the first two examples above.'default'
is currently equivalent to 'stripes' but may change in the future.'stripes'
draws a striped handle, as shown in the first two examples above.'bar'
draws a narrow grey bar, as shown in the third example above.'block'
draws a wide grey block that fills the width of the splitter.'dots'
draws five small equidistant dots with no border.'none'
hides the handle completely, disabling it. This effect is also achieved
when setting {invisible: true}
; it is not necessary to set both.