radjs-pointer
Version:
Provide point events for DOM elements
102 lines (88 loc) • 1.7 kB
CSS
.main {
overflow: hidden;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
/* No support for these yet, use at own risk */
-o-user-select: none;
user-select: none;
}
.pointer-section {
height: 30%;
position: relative;
}
.pointer-section .section__header {
padding: 8px 20px;
text-align: right;
}
.pointer-section .topcoat-checkbox {
text-align: left;
}
.pointer-wrap {
position: absolute;
top: 50px;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
background: #454646;
font-size: 5em;
text-align: center;
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
/* No support for these yet, use at own risk */
-o-user-select: none;
user-select: none;
}
.pointer-wrap:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
}
.pointer {
position: absolute;
width: 20px;
height: 20px;
margin: -10px -10px;
background-color: #17b7f9;
display: none;
border-radius: 50%;
}
.pointer-wrap .label {
position: absolute;
left: 20px;
top: 10px;
right: 10px;
}
.pointer-console {
position: absolute;
top: 30%;
bottom: 0;
left: 0;
right: 0;
overflow: hidden;
background: #595b5b;
padding: 10px 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#console {
height: auto;
width: auto;
margin: 0 auto;
}
@media screen and (max-width: 480px) {
.pointer-wrap {
font-size: 2.5rem;
}
}
@media screen and (max-height: 700px) {
.pointer-section {
height: 50%;
}
.pointer-console {
top: 50%;
}
}