Initial commit

This commit is contained in:
zhongjin
2020-06-13 18:34:34 +08:00
commit 52aaa9f15d
655 changed files with 96796 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="24px" height="17px" viewBox="0 0 24 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.4.2 (15855) - http://www.bohemiancoding.com/sketch -->
<title>Icon Snapshot</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="--Elements-/-Modules" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="SideBar-/-Expand-/-Blue" sketch:type="MSLayerGroup" transform="translate(-36.000000, -742.000000)">
<g id="Icon-Snapshot" transform="translate(36.000000, 742.000000)" sketch:type="MSShapeGroup">
<path d="M15.75,9 C15.75,11.0715 14.07,12.75 12,12.75 C9.9285,12.75 8.25,11.0715 8.25,9 C8.25,6.9285 9.9285,5.25 12,5.25 C14.07,5.25 15.75,6.9285 15.75,9 L15.75,9 Z" id="Stroke-1712" stroke="#FFFFFF" stroke-linejoin="round"></path>
<path d="M17.25,3.75 L21,3.75 C22.2375,3.75 23.25,4.7625 23.25,6 L23.25,13.5 C23.25,14.7375 22.2375,15.75 21,15.75 L3,15.75 C1.7625,15.75 0.75,14.7375 0.75,13.5 L0.75,6 C0.75,4.7625 1.7625,3.75 3,3.75 L6.75,3.75" id="Stroke-1713" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M6.75,3.75 L9.75,0.75 L14.25,0.75 L17.25,3.75" id="Stroke-1714" stroke="#FFFFFF" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M20.25,5.25 C19.836,5.25 19.5,5.586 19.5,6 C19.5,6.414 19.836,6.75 20.25,6.75 C20.664,6.75 21,6.414 21,6 C21,5.586 20.664,5.25 20.25,5.25" id="Fill-1715"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: Sketch 3.4.2 (15855) - http://www.bohemiancoding.com/sketch -->
<title>Icon Share</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Public-Dashboards-1440" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="Desktop-1440-/-00" sketch:type="MSArtboardGroup" transform="translate(-32.000000, -784.000000)" stroke="#FFFFFF" stroke-linejoin="round">
<g id="SideBar-/-Expand-/-Blue" sketch:type="MSLayerGroup">
<g id="Icon-Share" transform="translate(32.000000, 784.000000)" sketch:type="MSShapeGroup">
<path d="M8.0742,10.2129 C7.4182,8.9019 6.0662,7.9999 4.5002,7.9999 C2.2912,7.9999 0.5002,9.7909 0.5002,11.9999 C0.5002,14.2089 2.2912,15.9999 4.5002,15.9999 C6.0662,15.9999 7.4182,15.0979 8.0742,13.7869" id="Stroke-336"></path>
<path d="M19.5,8.5 C21.709,8.5 23.5,6.709 23.5,4.5 C23.5,2.291 21.709,0.5 19.5,0.5 C17.291,0.5 15.5,2.291 15.5,4.5 C15.5,5.143 15.656,5.748 15.925,6.287" id="Stroke-337"></path>
<path d="M15.9248,17.7129 C14.5978,20.3609 16.5238,23.4999 19.4998,23.4999 C21.7088,23.4999 23.4998,21.7089 23.4998,19.4999 C23.4998,17.2909 21.7088,15.4999 19.4998,15.4999" id="Stroke-338"></path>
<path d="M19.5,8.5 C17.934,8.5 16.582,7.598 15.925,6.287 L8.074,10.213 C8.344,10.75 8.5,11.356 8.5,12 C8.5,12.643 8.344,13.248 8.074,13.787 L15.925,17.713 C16.582,16.402 17.934,15.5 19.5,15.5" id="Stroke-339"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

+29
View File
@@ -0,0 +1,29 @@
// Entry point
// ----------------------------------------------
// Variables and functions
@import 'cdb-variables/colors';
@import 'cdb-variables/sizes';
@import 'cdb-utilities/mixins';
// Infowindow
@import 'infowindow/themes/custom';
@import 'infowindow/themes/dark';
@import 'infowindow/themes/light';
@import 'infowindow/cartodb-infowindow-default';
@import 'infowindow/cartodb-infowindow-legacy'; // TODO: remove when deprecate v3
// Map
@import 'map/map';
@import 'map/attributions';
@import 'map/overlays';
@import 'map/limits';
@import 'map/cartodb-map-light'; // TO BE REVIEWED
// Tooltip
@import 'tooltip/themes/dark';
@import 'tooltip/themes/light';
@import 'tooltip/cartodb-tooltip-default';
// Vendor
@import 'vendor/leaflet';
@@ -0,0 +1,430 @@
// Infowindow styles
// ----------------------------------------------
.CDB-infowindow-wrapper {
position: absolute;
z-index: 1; // makes infowindows visible with Google Maps
word-wrap: break-word;
overflow-wrap: break-word;
}
.CDB-infowindow {
position: relative;
transform: translateY(-24px) translateX(4px); /* remove when fix the position */
border-radius: 4px;
background: #FFF;
font-family: 'Open Sans';
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
cursor: default;
-webkit-font-smoothing: antialiased;
}
.CDB-infowindow-container {
border-radius: 4px;
overflow: hidden;
}
.CDB-infowindow.is-loading .CDB-infowindow-inner {
min-height: 104px;
}
.CDB-infowindow-inner,
.CDB-infowindow-headerBg {
padding: 20px 24px 18px;
}
.CDB-infowindow-inner.CDB-infowindow-inner--scroll .CDB-infowindow-list {
max-height: 200px;
}
.CDB-infowindow.has-header .CDB-infowindow-headerBg {
padding-bottom: 12px;
}
.CDB-infowindow.has-header .CDB-infowindow-inner {
padding-top: 0 !important;
}
.CDB-infowindow.no-content .CDB-infowindow-inner {
display: none;
}
.CDB-infowindow-header .CDB-infowindow-tabs {
margin: -20px -24px 18px;
}
.CDB-infowindow-subtitle {
margin-bottom: 2px;
font-size: 10px;
font-weight: $sFontWeight-lighter;
line-height: $sLineHeight-small;
text-transform: uppercase;
}
.CDB-infowindow-title {
font-size: $sFontSize-medium;
font-weight: $sFontWeight-semibold;
line-height: $sLineHeight-medium;
}
.CDB-infowindow-link {
display: inline-block;
width: 90%;
word-break: break-word;
}
.CDB-infowindow.has-scroll .CDB-infowindow-inner {
position: relative;
padding-top: 8px;
padding-right: 0;
padding-bottom: 0;
}
.CDB-infowindow.has-scroll .CDB-infowindow-inner .CDB-infowindow-list {
position: relative;
max-height: 200px;
padding-top: 12px;
padding-bottom: 18px;
overflow: scroll;
}
.CDB-infowindow.has-scroll .CDB-infowindow-list .CDB-infowindow-listItem {
margin-right: 20px;
}
.CDB-infowindow-listItem {
margin-top: 12px;
}
.CDB-infowindow-listItem:first-child {
margin-top: 0;
}
.CDB-infowindow-listItem--order1 {
display: none;
}
.CDB-infowindow-canvasShadow {
display: none;
position: absolute;
right: 0;
left: 0;
height: 40px;
z-index: 1;
pointer-events: none;
}
.CDB-infowindow-canvasShadow--top {
@include background-gradient(#FFF, rgba(255, 255, 255, 0));
top: 0;
border-top-left-radius: $baseSize / 2;
border-top-right-radius: $baseSize / 2;
}
.CDB-infowindow-canvasShadow--bottom {
@include background-gradient(rgba(255, 255, 255, 0), #FFF);
bottom: 0;
border-bottom-left-radius: $baseSize / 2;
border-bottom-right-radius: $baseSize / 2;
}
.CDB-infowindow-canvasShadow.is-visible {
display: block;
z-index: 2;
}
.CDB-infowindow-list .ps-scrollbar-y-rail {
z-index: 3;
}
.CDB-infowindow-list .ps-scrollbar-x-rail {
z-index: 3;
}
.CDB-infowindow.has-header .CDB-infowindow-mediaTitle {
display: block;
bottom: 12px;
}
.CDB-infowindow.is-fail .CDB-infowindow-header {
display: flex;
align-items: center;
justify-content: center;
}
.CDB-infowindow-fail {
display: block;
padding: 3px;
background: #FFF7F6;
color: rgb(243, 86, 60);
font-size: 9px;
text-align: center;
text-transform: uppercase;
}
.CDB-infowindow.has-title.has-items.has-header-image .CDB-infowindow-fail {
position: absolute;
top: 20px;
left: 20px;
text-align: left;
}
.CDB-infowindow.has-title .CDB-infowindow-fail {
position: absolute;
top: 20px;
left: 20px;
text-align: center;
}
.CDB-infowindow-mediaTitle .CDB-infowindow-fail {
width: auto;
padding: 16px 0 0 20px;
text-align: left;
}
.CDB-infowindow-mediaTitle {
position: absolute;
right: 24px;
bottom: 24px;
left: 24px;
}
.CDB-infowindow-headerMedia {
position: relative;
min-height: 104px;
overflow: hidden;
z-index: 1;
.CDB-infowindow-title > span {
display: inline;
padding: 2px 0;
background-color: rgba(0, 0, 0, 0.8);
box-shadow: 4px 0 0 rgba(0, 0, 0, 0.8), -4px 0 0 rgba(0, 0, 0, 0.8);
}
.CDB-infowindow-subtitle {
margin-bottom: 4px;
}
.CDB-infowindow-subtitle > span {
display: inline;
padding: 2px 0;
background-color: rgba(0, 0, 0, 0.64);
box-shadow: 4px 0 0 rgba(0, 0, 0, 0.64), -4px 0 0 rgba(0, 0, 0, 0.64);
}
}
.CDB-infowindow.is-loading .CDB-infowindow-media-item {
opacity: 0;
}
.CDB-infowindow.is-loading .CDB-infowindow-headerMedia {
min-height: 104px;
background: #F5F5F5;
}
.CDB-infowindow.is-fail .CDB-infowindow-headerMedia {
background: #FEF8F7;
}
.CDB-infowindow.is-fail.has-header-image .CDB-hook-image:before {
border-top-color: #FEF8F7;
}
.CDB-infowindow-media-item {
display: none;
width: 100%;
transition: opacity 150ms ease-in-out;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
opacity: 1;
}
.has-header .CDB-infowindow-media-item {
border-radius: 0;
}
.CDB-hook {
position: absolute;
bottom: 1px;
left: 24px;
z-index: 10;
}
.CDB-hookImage {
position: absolute;
top: 0;
left: -24px;
z-index: 10;
}
.CDB-hook:before {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 16px solid #FFF;
border-right: 24px solid transparent;
content: '';
z-index: 3;
}
.CDB-hook--green.CDB-hook:before {
border-top: 16px solid #98E0A8 !important;
}
.CDB-hook--orange.CDB-hook:before {
border-top: 16px solid #E68165 !important;
}
.CDB-hook:after,
.CDB-hook-image:after {
position: absolute;
top: 3px;
left: 0;
width: 0;
height: 0;
border-top: 16px solid rgba(0, 0, 0, 0.14);
border-right: 24px solid transparent;
-webkit-filter: blur(2px);
filter: blur(2px);
content: '';
z-index: 2;
}
.CDB-hook-image.has-image,
.CDB-infowindow.has-header-image .CDB-hook-image.has-image {
position: absolute;
left: 24px;
width: 24px;
height: 16px;
z-index: 3;
img {
margin-left: -24px;
}
}
.CDB-hook-image-inner {
pointer-events: none;
}
.CDB-hook-image.has-image:before,
.CDB-infowindow.has-header-image .CDB-hook-image.has-image:before,
.CDB-hook-image-inner.has-image:before {
display: none;
}
.CDB-infowindow.has-header-image .CDB-hook-image.has-image .CDB-hook-image-inner {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 3;
}
.CDB-infowindow.has-header-image .CDB-hook-image {
position: absolute;
left: 24px;
z-index: 10;
}
.CDB-infowindow.has-header-image .CDB-hook-image:before {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-top: 16px solid #F5F5F5;
border-right: 24px solid transparent;
content: '';
z-index: 3;
}
.CDB-infowindow-tabs {
position: relative;
width: auto;
padding: 21px 24px 0;
font-size: 10px;
font-weight: 600;
line-height: 14px;
overflow: hidden;
}
.CDB-infowindow-tabsItem {
position: relative;
margin-right: 16px;
float: left;
z-index: 2;
}
.CDB-infowindow-tabsLinks {
display: block;
padding-bottom: 13px;
text-decoration: none;
}
.CDB-infowindow-navigation {
position: relative;
margin: -1px 24px 0;
padding: 14px 0 24px;
border-top: 1px solid #F2F6F9;
color: #636D72;
font-size: 10px;
text-align: center;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.CDB-infowindow-navigation-info {
pointer-events: none;
}
.CDB-infowindow-navigationPrev {
display: block;
position: absolute;
top: 19px;
left: 0;
width: 4px;
height: 7px;
cursor: pointer;
z-index: 10;
&:before {
display: block;
position: absolute;
top: 0;
left: 0;
width: 6px;
height: 1px;
transform: rotate(-45deg);
background: #3AA9E3;
content: '';
}
&:after {
display: block;
position: absolute;
bottom: 2px;
left: 0;
width: 6px;
height: 1px;
transform: rotate(45deg);
background: #3AA9E3;
content: '';
}
}
.CDB-infowindow-navigationNext {
display: block;
position: absolute;
top: 19px;
right: 0;
width: 4px;
height: 7px;
cursor: pointer;
z-index: 10;
&:before {
display: block;
position: absolute;
top: 0;
left: 0;
width: 6px;
height: 1px;
transform: rotate(45deg);
background: #3AA9E3;
content: '';
}
&:after {
display: block;
position: absolute;
bottom: 2px;
left: 0;
width: 6px;
height: 1px;
transform: rotate(-45deg);
background: #3AA9E3;
content: '';
}
}
.CDB-infowindow-mask {
pointer-events: none;
}
.CDB-infowindow-mask image {
visibility: visible;
}
.CDB-infowindow-close {
position: absolute;
top: -12px;
right: -12px;
width: 24px;
height: 24px;
border-radius: 50%;
background: #FFF url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjZweCIgdmlld0JveD0iMCAwIDggNiIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4gICAgICAgIDx0aXRsZT5TdHJva2UgMzwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+ICAgICAgICA8cGF0aCBkPSJNMSwwIEw3LDYgTTcsMCBMMSw2IiBpZD0iU3Ryb2tlLTMiIHN0cm9rZT0iIzNBQTlFMyI+PC9wYXRoPiAgICA8L2c+PC9zdmc+) no-repeat center center;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
cursor: pointer;
z-index: 4;
}
@@ -0,0 +1,152 @@
// Infowindow styles for migrated maps
// ----------------------------------------------
.cartodb-popup.v2 {
position: relative;
max-width: 200px;
padding: 20px 12px 18px;
transform: translateX(15px) translateY(-15px);
border-radius: 4px;
background: #FFF;
font-family: 'Open Sans';
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
&.dark {
background: #000;
h4 {
color: #999;
}
p {
color: #FFF;
}
.cartodb-popup-tip-container {
border-top-color: #000;
}
}
}
.cartodb-popup-close-button {
position: absolute;
top: -12px;
right: -12px;
bottom: 0;
width: 24px;
height: 24px;
border-radius: 50%;
background: #FFF;
font-size: 12px;
line-height: 24px;
text-align: center;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
cursor: pointer;
z-index: 2;
}
.cartodb-popup-content {
font-family: 'Open Sans';
h4 {
margin-top: 12px;
color: #636D72;
font-size: 10px;
font-weight: 300;
line-height: 14px;
text-transform: uppercase;
&:first-child {
margin-top: 0;
}
}
p {
color: #2E3C43;
font-size: 12px;
font-weight: 600;
line-height: 16px;
}
}
.cartodb-popup-tip-container {
position: absolute;
bottom: -16px;
left: 12px;
width: 0;
height: 0;
border-top: 16px solid #FFF;
border-right: 16px solid transparent;
}
.cartodb-popup.header {
.cartodb-popup-header {
position: relative;
width: auto;
height: auto;
max-height: 62px;
margin: -20px -12px 12px;
padding: 17px 12px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
background: linear-gradient(-90deg, #4F9CD7, #2B68A8);
overflow: hidden;
h1 {
width: 100%;
margin: 0;
color: #FFF;
font: bold 21px "Helvetica Neue", "Helvetica", Arial;
line-height: 23px;
text-shadow: 0 1px rgba(0, 0, 0, 0.5);
word-wrap: break-word;
text-transform: uppercase;
}
h4 {
margin-bottom: 2px;
font-size: 80%;
font-weight: bold;
text-transform: uppercase;
}
}
/* Color header themes */
&.green .cartodb-popup-header {
background: linear-gradient(-90deg, #0C9, #00B185);
h4 {
color: #00916D;
}
.separator {
background: #008E6A;
}
}
&.blue .cartodb-popup-header {
background: linear-gradient(-90deg, #4F9CD7, #2B68A8);
h4 {
color: #1F4C7F;
}
.separator {
background: #225386;
}
}
&.yellow .cartodb-popup-header {
background: linear-gradient(-90deg, #FFBF0D, #F93);
h4 {
color: #D8832A;
}
.separator {
background: #CC7A29;
}
}
&.orange .cartodb-popup-header {
background: linear-gradient(-90deg, #FF6825, #F33);
h4 {
color: #CC2929;
}
.separator {
background: #CC2929;
}
}
}
@@ -0,0 +1,34 @@
// Custom infowindow styles
// ----------------------------------------------
.CDB-infowindow--custom .CDB-hook:before {
border-top: 16px solid #FFF;
}
.CDB-infowindow--custom .CDB-infowindow-tabs:before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: '';
}
.CDB-infowindow--custom .CDB-infowindow-tabs,
.CDB-infowindow--custom .CDB-infowindow-tabs:before {
background: rgba(0, 0, 0, 0.16);
}
.CDB-infowindow--custom .CDB-infowindow-tabsLinks {
color: #FFF;
}
.CDB-infowindow--custom .CDB-infowindow-tabsLinks.is-active {
border-bottom: 1px solid #2E3C43;
color: #2E3C43;
}
.CDB-infowindow--custom .CDB-loading-title,
.CDB-infowindow--custom .CDB-loading-subtitle {
background: #F9F9F9;
}
+75
View File
@@ -0,0 +1,75 @@
// Dark infowindow styles
// ----------------------------------------------
$sBg-dark: #2E3C43;
.CDB-infowindow.CDB-infowindow--dark {
background: $sBg-dark;
color: #FFF;
.CDB-infowindow-title {
color: #FFF;
}
.CDB-hook-inner {
background: $sBg-dark;
}
.CDB-hook:before {
border-top: 16px solid $sBg-dark;
}
.CDB-infowindow-mediaTitle {
.CDB-infowindow-subtitle {
color: #FFF;
}
.CDB-infowindow-title {
color: #FFF;
}
}
.CDB-infowindow-tabs {
background: rgba(0, 0, 0, 0.16);
}
.CDB-infowindow-tabsLinks {
color: #3AA9E3;
&.is-active {
border-bottom: 1px solid #FFF;
color: #FFF;
}
}
.CDB-infowindow-navigation {
border-top: 1px solid rgba(0, 0, 0, 0.24);
color: rgba(255, 255, 255, 0.64);
}
.CDB-loading-subtitle {
background: #282C2F;
}
.CDB-loading-title {
background: #282C2F;
}
.CDB-loading-bg {
opacity: 0.3;
}
.CDB-infowindow-canvasShadow--top {
@include background-gradient($sBg-dark, rgba(255, 255, 255, 0));
}
.CDB-infowindow-canvasShadow--bottom {
@include background-gradient(rgba(255, 255, 255, 0), $sBg-dark);
}
.CDB-infowindow-list .ps-scrollbar-x-rail {
background: linear-gradient(180deg, transparent 50%, #4F5B61 50%) !important;
.ps-scrollbar-x {
background: #747D82 !important;
}
}
.CDB-infowindow-list .ps-scrollbar-y-rail {
background: linear-gradient(90deg, transparent 50%, #4F5B61 50%) !important;
.ps-scrollbar-y {
background: #747D82 !important;
}
}
}
.CDB-infowindow-headerBg--dark {
.CDB-infowindow-subtitle {
color: #636D72;
}
.CDB-infowindow-title {
color: #2E3C43;
}
}
+55
View File
@@ -0,0 +1,55 @@
// Light infowindow styles
// ----------------------------------------------
.CDB-infowindow--light {
background: #FFF;
.CDB-infowindow-subtitle {
color: #636D72;
}
.CDB-infowindow-title {
color: #2E3C43;
}
.CDB-hook-inner {
background: #FFF;
}
.CDB-hook:before {
border-top: 16px solid #FFF;
}
.CDB-infowindow-mediaTitle {
.CDB-infowindow-subtitle {
color: #FFF;
}
.CDB-infowindow-title {
color: #FFF;
}
}
.CDB-infowindow-tabs {
background: #F2F6F9;
}
.CDB-infowindow-tabsLinks {
color: #3AA9E3;
&.is-active {
border-bottom: 1px solid #2E3C43;
color: #2E3C43;
}
}
.CDB-loading-subtitle {
background: #F9F9F9;
}
.CDB-loading-title {
background: #F9F9F9;
}
.CDB-loading-bg {
opacity: 0.04;
}
}
.CDB-infowindow-header {
&.CDB-infowindow-headerBg--light {
.CDB-infowindow-subtitle {
color: rgba(255, 255, 255, 0.64);
}
.CDB-infowindow-title {
color: #FFF;
}
}
}
+80
View File
@@ -0,0 +1,80 @@
// Map attributions
// ----------------------------------------------
$size: 20px;
.CDB-Attribution {
@include transition(background, 100ms);
position: relative;
order: 2;
width: 32px;
margin-right: 8px;
border-radius: 3px;
box-sizing: border-box;
font-family: 'Open Sans';
line-height: $size;
z-index: 10;
&.is-active {
width: auto;
}
}
.CDB-Attribution.is-active .CDB-Attribution-text {
@include flex(1);
width: auto;
padding: 0 12px;
border-left: 1px solid #EEE;
pointer-events: initial;
opacity: 1;
}
.CDB-Attribution-button {
display: inline-block;
width: 32px;
min-width: 32px;
height: 100%;
color: #636D72;
font-size: 12px;
line-height: 32px;
vertical-align: middle;
z-index: 1;
&.is-disabled {
opacity: 0.24;
}
&:hover {
background: rgba($cBlue, 0.08);
}
}
.CDB-Attribution-text {
@include transition(opacity, 150ms);
width: 0;
height: 16px;
margin-left: -1px;
padding: 0;
border-left: 1px solid transparent;
color: #2E3C43;
font-size: 10px;
line-height: 16px;
overflow: hidden;
}
.CDB-Attribution .CDB-Attribution-text a {
color: #139BFC;
text-decoration: underline;
}
@include media-query-mobile() {
.CDB-Attribution.is-active {
@include flex(1);
width: 0;
}
/*
.CDB-Attribution-text {
height: auto;
min-height: $size;
}*/
}
File diff suppressed because it is too large Load Diff
+85
View File
@@ -0,0 +1,85 @@
// Map Limitss
// ----------------------------------------------
$buttonColor: #636D72;
$linkColor: #139BFC;
.CDB-Overlay--limits {
background: #FFFFC2;
}
.CDB-Limits {
@include transition(width, 150ms ease-in);
position: relative;
order: 10;
width: 32px;
margin-right: 8px;
border-radius: 3px;
box-sizing: border-box;
font-family: 'Open Sans';
line-height: 20px;
z-index: 10;
&.is-active {
width: 320px;
.CDB-Limits-text {
@include flex(1);
width: auto;
padding: 0 12px;
border-left: 1px solid rgba(0, 0, 0, 0.1);
pointer-events: initial;
opacity: 1;
}
}
}
.CDB-Limits--short.is-active {
width: 260px;
}
.CDB-Limits-button {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
min-width: 32px;
height: 100%;
color: $buttonColor;
font-size: 12px;
line-height: 32px;
vertical-align: middle;
z-index: 1;
&.is-disabled {
opacity: 0.24;
}
}
.CDB-Limits-text {
@include transition(opacity, 150ms);
width: 0;
height: 16px;
margin-left: -1px;
padding: 0;
border-left: 1px solid transparent;
color: $buttonColor;
font-size: 10px;
line-height: 16px;
opacity: 0;
overflow: hidden;
a {
color: $linkColor;
}
}
@include media-query-mobile() {
.CDB-Limits {
margin-right: 0;
&.is-active {
@include flex(1);
width: 0;
}
}
}
+5
View File
@@ -0,0 +1,5 @@
.CDB-Map-wrapper {
position: relative;
height: 100%;
width: 100%;
}
+540
View File
@@ -0,0 +1,540 @@
// Map overlays styles
// ----------------------------------------------
$buttonColor: #636D72;
.CDB-OverlayContainer {
display: flex;
position: absolute;
right: 16px;
bottom: 16px;
left: 16px;
align-items: center;
z-index: 11;
pointer-events: none;
> * {
pointer-events: all;
}
}
// zoom overlay
.CDB-Overlay {
display: flex;
align-items: center;
min-width: 32px;
height: 32px;
border-radius: 4px;
background: #FFF;
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.24), 0 4px 8px 0 rgba(0, 0, 0, 0.16);
z-index: 20000;
}
.CDB-Zoom {
order: 1;
margin-right: 8px;
}
.CDB-Zoom-action {
position: relative;
width: 32px;
height: 100%;
background: #FFF;
color: $buttonColor;
text-align: center;
text-decoration: none;
z-index: 10;
&:hover {
background: rgba($cBlue, 0.08);
cursor: pointer;
}
&.is-disabled {
cursor: initial;
opacity: 0.2;
}
&:last-child {
border-left: 1px solid #EEE;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
&:first-child {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
}
.CDB-Zoom-action--out::before {
position: absolute;
top: 50%;
left: 50%;
width: 11px;
height: 1px;
margin-left: -5px;
background: $buttonColor;
content: '';
}
.CDB-Zoom-action--in {
&::before {
position: absolute;
top: 50%;
left: 50%;
width: 11px;
height: 1px;
margin-left: -5px;
background: $buttonColor;
content: '';
}
&::after {
position: absolute;
top: 11px;
left: 50%;
width: 1px;
height: 11px;
background: $buttonColor;
content: '';
}
}
.CDB-Zoom-info {
display: none;
width: 32px;
border-left: 1px solid #EEE;
color: #979EA1;
font-family: 'Open Sans';
font-size: $sFontSize-small;
line-height: 32px;
text-align: center;
}
// loader search
.CDB-Search {
order: 2;
height: 32px;
margin-right: 8px;
.CDB-Shape-magnify {
width: 32px;
height: 32px;
&::before {
top: 11px;
left: 10px;
border-color: #636D72;
}
&::after {
bottom: 10px;
left: 17px;
background: #636D72;
}
.is-small::after {
left: 17px;
}
}
}
.CDB-Search-inner {
@include transition(width, 100ms ease-in);
display: flex;
width: 32px;
height: 100%;
overflow: hidden;
&.is-active {
width: 152px;
&:hover {
background: transparent;
}
.CDB-Search-text {
opacity: 1;
visibility: visible;
}
}
}
.CDB-Search-actionButton {
position: relative;
width: 32px;
height: 32px;
color: $buttonColor;
&:hover {
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
background: rgba($cBlue, 0.08);
}
}
.CDB-Search-text {
width: 100px;
padding: 0 0 0 8px;
transition: all 150ms ease-in;
border: 0;
border-left: 1px solid #F8F8F8;
background: none;
font: 12px/16px 'Open Sans';
opacity: 0;
visibility: hidden;
&:focus {
outline: none;
}
}
//FullScreen overlay
.CDB-Fullscreen {
order: 4;
width: 32px;
height: 32px;
margin-right: 8px;
cursor: pointer;
.CDB-Shape-Arrow::after,
.CDB-Shape-Arrow::before {
background: #636D72;
}
.CDB-Shape-Arrow.is-down {
top: 8px;
left: 12px;
}
.CDB-Shape-Arrow.is-up {
top: 8px;
left: 20px;
}
.CDB-Fullscreen-link {
width: 100%;
height: 100%;
}
}
.CDB-Logo {
@include transform(translateX(-50%));
position: absolute;
bottom: 0;
left: 50%;
width: auto;
height: auto;
z-index: 10;
}
/* Legends */
$maxLegendContainerHeight: 300px;
.CDB-LayerLegends {
margin-top: 0;
&:not(:empty) + &:not(:empty) {
margin-top: 12px;
}
}
.CDB-Legends-canvas {
position: absolute;
top: 16px;
left: 16px;
width: 240px;
height: auto;
max-height: calc(100vh - 120px);
border-radius: 4px;
background: #FFF;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.24);
box-sizing: border-box;
overflow: hidden;
z-index: 20000;
}
.CDB-Legends-canvasInner {
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
max-height: calc(100vh - 120px);
padding: 24px 24px 0;
border-radius: $baseSize / 2;
box-sizing: border-box;
overflow: hidden;
}
.CDB-Legends-canvasShadow {
display: none;
position: absolute;
right: 0;
left: 0;
height: 60px;
z-index: 1;
pointer-events: none;
}
.CDB-Legends-canvasShadow--top {
@include background-gradient(#FFF, rgba(255, 255, 255, 0));
top: 0;
border-top-left-radius: $baseSize / 2;
border-top-right-radius: $baseSize / 2;
}
.CDB-Legends-canvasShadow--bottom {
@include background-gradient(rgba(255, 255, 255, 0), #FFF);
bottom: 0;
border-bottom-left-radius: $baseSize / 2;
border-bottom-right-radius: $baseSize / 2;
}
.CDB-Legends-canvasShadow.is-visible {
display: block;
z-index: 2;
}
.CDB-Legends-canvas .ps-scrollbar-y-rail {
z-index: 3;
}
.CDB-Legends-canvas .ps-scrollbar-x-rail {
z-index: 3;
}
.Legends {
display: flex;
flex-direction: column;
}
.CDB-Legend-item {
height: 100%;
}
.CDB-Legend-item div.cartodb-legend {
position: static;
padding: 0;
border: 0;
box-shadow: 0 0 0;
}
.CDB-Legend-item.is-disabled {
@include css3-prefix(filter, grayscale(100%));
opacity: 0.4;
}
.Bubble-list {
width: 100%;
height: 100px;
}
.Bubble-item {
position: absolute;
width: 100%;
height: 100px;
}
.Bubble-container {
position: relative;
top: 0;
right: 0;
width: 100%;
height: 100px;
margin: 16px 0 10px;
}
.Bubble-circle {
@include opacity(0.5);
position: absolute;
right: 0;
width: 100px;
height: 100%;
}
.Bubble-itemCircle {
display: block;
position: absolute;
bottom: 0;
left: 50%;
width: 100%;
height: 100%;
transform: translate3d(-50%, 0, 0);
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
background: #F8AB17;
box-shadow: -1px 0 2px 0 rgba(0, 0, 0, 0.1);
pointer-events: none;
}
.Bubble-label {
position: absolute;
bottom: 0;
width: calc(100% - 50px);
&::after {
position: absolute;
top: -1px;
left: 0;
width: 100%;
height: 1px;
background: rgba(#000, 0.08);
content: '';
z-index: -1;
}
}
.Bubble-list--custom::before,
.Bubble-item--custom::before {
visibility: hidden;
}
.Bubble-numbersItem {
display: inline-block;
padding-right: 5px;
transform: translate3d(0, -50%, 0);
background: rgba(#FFF, 0.8);
}
.Bubble-average {
@include transform(translateY(50%));
display: block;
position: absolute;
right: 102px;
white-space: nowrap;
z-index: 1000;
}
.Bubble-average::after {
display: block;
position: absolute;
top: 50%;
right: -54px;
width: 51px;
height: 1px;
border-top: 1px dotted rgba(0, 0, 0, 0.4);
content: '';
z-index: 10;
}
.Bubble-average::before {
display: block;
position: absolute;
top: calc(50% - 1px);
right: -54px;
width: 3px;
height: 3px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.4);
content: '';
z-index: 10;
}
.Bubble-average--custom::after {
display: none;
}
.Legend-choropleth {
position: relative;
height: $baseSize;
margin-bottom: 20px;
box-sizing: border-box;
border-radius: $halfBaseSize;
&.no-average {
margin-bottom: 4px;
}
}
.Legend-choropleth::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 1px solid rgba(0, 0, 0, 0.16);
border-radius: $halfBaseSize;
content: '';
}
.Legend-choroplethAverageText {
position: absolute;
left: -10px;
white-space: nowrap;
}
.Legend-choroplethAverage {
position: absolute;
bottom: -7px;
}
.Legend-choroplethAverage::after {
display: block;
position: absolute;
top: -14px;
width: 1px;
height: 12px;
margin-left: 50%;
border-left: 1px dotted rgba(#000, 0.4);
content: '';
}
.Legend-exponential {
font-size: 80%;
}
.Legend-categoryListItem {
margin-bottom: 4px;
}
.Legend-categoryListItem:last-child {
margin-bottom: 0;
}
.Legend-categoryCircle {
position: relative;
min-width: 8px;
height: 8px;
margin-right: 2px;
margin-left: 2px;
border-radius: 50%;
}
.Legend-categoryCircle::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border: 1px solid rgba(0, 0, 0, 0.16);
border-radius: 50%;
content: '';
}
.Legend-categoryIcon {
display: block;
position: relative;
min-width: 12px;
height: 12px;
}
.Legend-categoryTitle {
max-width: 90%;
margin-left: 8px;
}
.Legend-placeholder {
position: relative;
margin: 0 -24px;
}
.Legend-loading {
display: none;
}
.CDB-Legend-item.is-loading .Legend-loading {
display: block;
}
.Legend-placeholderInner {
padding: 12px 24px 0;
}
.Legend-fillImageAsset {
position: absolute;
width: 18px;
height: 18px;
transform: translateX(-3px) translateY(-3px) scale(0.66667); // scale original 18px SVG image => 12px
vertical-align: bottom;
}
@media (max-width: 599px) {
.CDB-Legends-canvas {
display: none !important;
}
.CDB-Zoom-info,
.CDB-Fullscreen {
display: none;
}
}
@media (max-width: 425px) {
.CDB-Logo {
right: 0;
left: initial;
transform: initial;
}
}
@@ -0,0 +1,82 @@
// Tooltip styles
// ----------------------------------------------
.CDB-Tooltip-wrapper {
display: none;
position: absolute;
z-index: 1; // makes tooltips visible with Google Maps
min-width: 120px;
max-width: 180px;
border-radius: 4px;
overflow: hidden;
word-wrap: break-word;
overflow-wrap: break-word;
&.CDB-Tooltip-wrapper--topLeft {
border-top-left-radius: 0;
}
&.CDB-Tooltip-wrapper--topRight {
border-top-right-radius: 0;
}
&.CDB-Tooltip-wrapper--bottomLeft {
border-bottom-left-radius: 0;
}
&.CDB-Tooltip-wrapper--bottomRight {
border-bottom-right-radius: 0;
}
}
/* fix migration old tooltips */
.CDB-Tooltip-wrapper .cartodb-tooltip-content-wrapper {
padding: 20px 24px;
background: #FFF;
font-family: 'Open Sans';
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.05);
z-index: 50;
&.dark {
background: #2E3C43;
color: #FFF;
h4 {
color: rgba(#FFF, 0.64);
}
}
h4 {
margin-top: 8px;
color: #636D72;
font-size: 10px;
font-weight: 400;
line-height: 15px;
text-transform: uppercase;
&:first-child {
margin-top: 0;
}
}
p {
font-size: 12px;
font-weight: 600;
line-height: 16px;
}
}
.CDB-Tooltip {
padding: 20px 24px;
font-family: 'Open Sans';
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.05);
z-index: 50;
}
.CDB-Tooltip-listItem {
margin-top: 8px;
&:first-child {
margin-top: 0;
}
}
.CDB-Tooltip-listTitle {
font-size: 10px;
font-weight: 400;
line-height: 15px;
text-transform: uppercase;
}
.CDB-Tooltip-listText {
font-size: 12px;
font-weight: 600;
line-height: 16px;
}
+14
View File
@@ -0,0 +1,14 @@
// Dark tooltip styles
// ----------------------------------------------
.CDB-Tooltip--isDark {
&.CDB-Tooltip {
background: #2E3C43;
}
.CDB-Tooltip-listTitle {
color: rgba(255, 255, 255, 0.64);
}
.CDB-Tooltip-listText {
color: #FFF;
}
}
+11
View File
@@ -0,0 +1,11 @@
// Light tooltip styles
// ----------------------------------------------
.CDB-Tooltip--isLight {
&.CDB-Tooltip {
background: #FFF;
}
.CDB-Tooltip-listTitle {
color: #636D72;
}
}
+480
View File
@@ -0,0 +1,480 @@
// Leaflet styles
// ----------------------------------------------
.leaflet-map-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-pane,
.leaflet-tile-container,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-popup-pane,
.leaflet-overlay-pane svg,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
position: absolute;
left: 0;
top: 0;
}
.leaflet-container {
overflow: hidden;
touch-action: none; // Fix for Surface map pan (already fixed in Leaflet v1.0)
-ms-touch-action: none;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-user-drag: none;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
display: block;
}
/* map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container img {
max-width: none !important;
}
/* stupid Android 2 doesn't understand "max-width: none" properly */
.leaflet-container img.leaflet-image-layer {
max-width: 15000px !important;
}
.leaflet-tile {
filter: inherit;
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-zoom-box {
width: 0;
height: 0;
}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
-moz-user-select: none;
}
.leaflet-tile-pane { z-index: 2; }
.leaflet-objects-pane { z-index: 3; }
.leaflet-overlay-pane { z-index: 4; }
.leaflet-shadow-pane { z-index: 5; }
.leaflet-marker-pane { z-index: 6; }
.leaflet-popup-pane { z-index: 7; }
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.lvml {
behavior: url(#default#VML);
display: inline-block;
position: absolute;
}
/* control positioning */
.leaflet-control {
position: relative;
z-index: 7;
pointer-events: auto;
}
.leaflet-top,
.leaflet-bottom {
position: absolute;
z-index: 1000;
pointer-events: none;
}
.leaflet-top {
top: 0;
}
.leaflet-right {
right: 0;
}
.leaflet-bottom {
bottom: 0;
}
.leaflet-left {
left: 0;
}
.leaflet-control {
float: left;
clear: both;
}
.leaflet-right .leaflet-control {
float: right;
}
.leaflet-top .leaflet-control {
margin-top: 10px;
}
.leaflet-bottom .leaflet-control {
margin-bottom: 10px;
}
.leaflet-left .leaflet-control {
margin-left: 10px;
}
.leaflet-right .leaflet-control {
margin-right: 10px;
}
/* zoom and fade animations */
.leaflet-fade-anim .leaflet-tile,
.leaflet-fade-anim .leaflet-popup {
opacity: 0;
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
.leaflet-fade-anim .leaflet-tile-loaded,
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
opacity: 1;
}
.leaflet-zoom-anim .leaflet-zoom-animated {
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
-o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile,
.leaflet-touching .leaflet-zoom-animated {
-webkit-transition: none;
-moz-transition: none;
-o-transition: none;
transition: none;
}
.leaflet-zoom-anim .leaflet-zoom-hide {
visibility: hidden;
}
/* cursors */
.leaflet-clickable {
cursor: pointer;
}
.leaflet-container {
cursor: -webkit-grab;
cursor: -moz-grab;
}
.leaflet-popup-pane,
.leaflet-control {
cursor: auto;
}
.leaflet-dragging .leaflet-container,
.leaflet-dragging .leaflet-clickable {
cursor: move;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
}
/* visual tweaks */
.leaflet-container {
background: #ddd;
outline: 0;
}
.leaflet-container a {
color: #0078A8;
}
.leaflet-container a.leaflet-active {
outline: 2px solid orange;
}
.leaflet-zoom-box {
border: 2px dotted #38f;
background: rgba(255,255,255,0.5);
}
/* general typography */
.leaflet-container {
font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
}
/* general toolbar styles */
.leaflet-bar {
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
border-radius: 4px;
}
.leaflet-bar a,
.leaflet-bar a:hover {
background-color: #fff;
border-bottom: 1px solid #ccc;
width: 26px;
height: 26px;
line-height: 26px;
display: block;
text-align: center;
text-decoration: none;
color: black;
}
.leaflet-bar a,
.leaflet-control-layers-toggle {
background-position: 50% 50%;
background-repeat: no-repeat;
display: block;
}
.leaflet-bar a:hover {
background-color: #f4f4f4;
}
.leaflet-bar a:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.leaflet-bar a:last-child {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
cursor: default;
background-color: #f4f4f4;
color: #bbb;
}
.leaflet-touch .leaflet-bar a {
width: 30px;
height: 30px;
line-height: 30px;
}
/* zoom control */
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
font: bold 18px 'Lucida Console', Monaco, monospace;
text-indent: 1px;
}
.leaflet-control-zoom-out {
font-size: 20px;
}
.leaflet-touch .leaflet-control-zoom-in {
font-size: 22px;
}
.leaflet-touch .leaflet-control-zoom-out {
font-size: 24px;
}
/* layers control */
.leaflet-control-layers {
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
background: #fff;
border-radius: 5px;
}
.leaflet-control-layers-toggle {
background-image: url(../../img/layers.png);
width: 36px;
height: 36px;
}
.leaflet-retina .leaflet-control-layers-toggle {
background-image: url(../../img/layers-2x.png);
background-size: 26px 26px;
}
.leaflet-touch .leaflet-control-layers-toggle {
width: 44px;
height: 44px;
}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
display: none;
}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
display: block;
position: relative;
}
.leaflet-control-layers-expanded {
padding: 6px 10px 6px 6px;
color: #333;
background: #fff;
}
.leaflet-control-layers-selector {
margin-top: 2px;
position: relative;
top: 1px;
}
.leaflet-control-layers label {
display: block;
}
.leaflet-control-layers-separator {
height: 0;
border-top: 1px solid #ddd;
margin: 5px -10px 5px -6px;
}
/* attribution and scale controls */
.leaflet-container .leaflet-control-attribution {
background: #fff;
background: rgba(255, 255, 255, 0.7);
margin: 0;
}
.leaflet-control-attribution,
.leaflet-control-scale-line {
padding: 0 5px;
color: #333;
}
.leaflet-control-attribution a {
text-decoration: none;
}
.leaflet-control-attribution a:hover {
text-decoration: underline;
}
.leaflet-container .leaflet-control-attribution,
.leaflet-container .leaflet-control-scale {
font-size: 11px;
}
.leaflet-left .leaflet-control-scale {
margin-left: 5px;
}
.leaflet-bottom .leaflet-control-scale {
margin-bottom: 5px;
}
.leaflet-control-scale-line {
border: 2px solid #777;
border-top: none;
line-height: 1.1;
padding: 2px 5px 1px;
font-size: 11px;
white-space: nowrap;
overflow: hidden;
-moz-box-sizing: content-box;
box-sizing: content-box;
background: #fff;
background: rgba(255, 255, 255, 0.5);
}
.leaflet-control-scale-line:not(:first-child) {
border-top: 2px solid #777;
border-bottom: none;
margin-top: -2px;
}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
border-bottom: 2px solid #777;
}
.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
box-shadow: none;
}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
}
/* popup */
.leaflet-popup {
position: absolute;
text-align: center;
}
.leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 12px;
}
.leaflet-popup-content {
margin: 13px 19px;
line-height: 1.4;
}
.leaflet-popup-content p {
margin: 18px 0;
}
.leaflet-popup-tip-container {
margin: 0 auto;
width: 40px;
height: 20px;
position: relative;
overflow: hidden;
}
.leaflet-popup-tip {
width: 17px;
height: 17px;
padding: 1px;
margin: -10px auto 0;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
background: white;
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}
.leaflet-container a.leaflet-popup-close-button {
position: absolute;
top: 0;
right: 0;
padding: 4px 4px 0 0;
text-align: center;
width: 18px;
height: 14px;
font: 16px/14px Tahoma, Verdana, sans-serif;
color: #c3c3c3;
text-decoration: none;
font-weight: bold;
background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover {
color: #999;
}
.leaflet-popup-scrolled {
overflow: auto;
border-bottom: 1px solid #ddd;
border-top: 1px solid #ddd;
}
.leaflet-oldie .leaflet-popup-content-wrapper {
zoom: 1;
}
.leaflet-oldie .leaflet-popup-tip {
width: 24px;
margin: 0 auto;
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
}
.leaflet-oldie .leaflet-popup-tip-container {
margin-top: -1px;
}
.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
border: 1px solid #999;
}
/* div icon */
.leaflet-div-icon {
background: #fff;
border: 1px solid #666;
}