Skip to content

Commit

Permalink
update layer switcher control
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Nov 24, 2017
1 parent 76ddd7f commit 66172c1
Show file tree
Hide file tree
Showing 3 changed files with 270 additions and 234 deletions.
34 changes: 14 additions & 20 deletions assets/css/maptalks-control.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,27 +75,16 @@
padding-left: 1em;
list-style: none;
}
.maptalks-layer-switcher li {
padding-top: 5px;
}
.maptalks-layer-switcher .group > label {
font-weight: bold;
}
.maptalks-layer-switcher .group + .group {
padding-top: 1em;
}
.maptalks-layer-switcher label {
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
font-size : 14px;
white-space: nowrap;
}
.maptalks-layer-switcher .group label {
width: 260px;
}
.maptalks-layer-switcher .layer label {
width: 215px;
}
.maptalks-layer-switcher input {
margin: 0 5px;
vertical-align: text-top;
Expand All @@ -113,31 +102,36 @@
width: 28px;
height: 28px;
background: url(images/control/layer.png) no-repeat 4px 4px;
background-color: #2f2f2f;
background-color: #172029;
border: none;
}
.maptalks-layer-switcher.shown button {
display: none;
}
.maptalks-layer-switcher .panel {
background-color: #2f2f2f;
background-color: #172029;
display: none;
max-height: 100%;
overflow-y: auto;
width: 300px;
max-height: 500px;
color: #b1b1b1;
min-width: 120px;
max-width: 400px;
max-height: 600px;
color: #fff;
}
.maptalks-layer-switcher li {
overflow:hidden;
margin-right: 1em;
white-space:nowrap;
}
.maptalks-layer-switcher.shown .panel {
display: block;
}
.maptalks-layer-switcher ::-webkit-scrollbar {
width: 10px;
width: 6px;
}
.maptalks-layer-switcher ::-webkit-scrollbar-track {
background-color: #1f1f1f;
}
.maptalks-layer-switcher ::-webkit-scrollbar-thumb {
.maptalks-layer-switcher ::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: #777;
}
Loading

0 comments on commit 66172c1

Please sign in to comment.