react-annotator
Version:
A React mixin to allow for user annotations directly on images.
118 lines (101 loc) • 2.44 kB
CSS
.annotator-indicator,
.annotator-tooltip,
.annotator-form {
z-index: 1000;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-box-shadow: 0px 1px 1.5px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 1px 1.5px rgba(0, 0, 0, 0.5);
box-shadow: 0px 1px 1.5px rgba(0, 0, 0, 0.5);
}
.annotator-tooltip,
.annotator-form {
padding: 10px;
background-color: #ffffff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-ms-border-radius: 6px;
border-radius: 6px;
}
.annotator-indicator {
width: 30px;
height: 30px;
background-color: #ff0000;
border: 5px solid #ffffff;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
border-radius: 100%;
}
.annotator-form {
width: 225px;
}
.annotator-form > textarea {
width: 100%;
height: 100px;
padding: 5px;
resize: none;
border: 1px dashed #cccccc;
color: #6e7a86;
}
.annotator-tooltip {
}
.annotator-tooltip > p {
margin: 0;
}
.annotator-tooltip.top {
}
.annotator-tooltip.top:after {
}
.annotator-tooltip.right {
margin-top: -35px;
margin-left: 45px;
}
.annotator-tooltip.right:after {
right: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-right-color: #ffffff; /* same as annotator-tooltip background color */
border-width: 10px;
margin-top: -10px;
}
.annotator-tooltip.bottom {
margin-top: 15px;
margin-left: -5px;
}
.annotator-tooltip.bottom:after {
bottom: 100%;
left: 20px;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-bottom-color: #fff; /* same as annotator-tooltip background color */
border-width: 10px;
margin-left: -10px;
}
.annotator-tooltip.left {
margin-top: 15px;
margin-left: -10px;
}
.annotator-tooltip.left:after {
top: 50%;
left: 100%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-left-color: #ffffff; /* same as annotator-tooltip background color */
border-width: 10px;
margin-top: -10px;
}