Port over the measure, min-max-resolution, modify-features, modify-test, mouse-position and moveend examples

This commit is contained in:
Bart van den Eijnden
2015-04-02 18:34:56 +02:00
committed by Andreas Hocevar
parent de13706df9
commit 5b57c7d4b8
8 changed files with 140 additions and 381 deletions

32
examples_src/measure.css Normal file
View File

@@ -0,0 +1,32 @@
.tooltip {
position: relative;
background: rgba(0, 0, 0, 0.5);
border-radius: 4px;
color: white;
padding: 4px 8px;
opacity: 0.7;
white-space: nowrap;
}
.tooltip-measure {
opacity: 1;
font-weight: bold;
}
.tooltip-static {
background-color: #ffcc33;
color: black;
border: 1px solid white;
}
.tooltip-measure:before,
.tooltip-static:before {
border-top: 6px solid rgba(0, 0, 0, 0.5);
border-right: 6px solid transparent;
border-left: 6px solid transparent;
content: "";
position: absolute;
bottom: -6px;
margin-left: -7px;
left: 50%;
}
.tooltip-static:before {
border-top-color: #ffcc33;
}