+.htmlview .annotations-block .annotation-body {
+ position: relative;
+ padding-left: 2.5em;
+ padding-top: 0.2em;
+}
+
+.htmlview .annotations-block .annotation-backref {
+ position: absolute;
+ top: 0.4em;
+ left: -0.4em;
+ width: 2.5em;
+ text-align: right;
+
+}
+
+.htmlview .annotations-block .annotation-backref:before {
+ content: "[" counter(secondary) "]";
+ counter-increment: secondary;
+}
+
+/*
+ * EDITABLE ELEMENTS
+ */
+
+.htmlview *[x-editable] {
+ position: relative;
+ padding: 2px;
+ margin-left: 0;
+ border: 1px solid #FFF;
+}
+
+/* focused editable element */
+.htmlview *[x-editable]:hover
+{
+ z-index: 900;
+}
+
+.htmlview *[x-editable][x-open]
+{
+ visibility: hidden;
+}
+
+.edit-button, .delete-button, .accept-button {
+ position: absolute;
+ top: -21px;
+ left: -1px;
+ width: 72px;
+ height: 21px;
+
+ display: block;
+/* margin: 4px 0 2px 0;*/
+ padding: 5px 5px 2px 5px;
+ border: none;
+ background-color: #FAFAFA;
+
+/* z-index: 3000;*/
+/* color: #FFF;
+ z-index: 1500;
+*/ border: 1px solid #DDD;
+ border-bottom: none;
+}
+
+.delete-button {
+ left: 70px;
+}
+
+.edit-button:hover, .edit-button:active, .delete-button:hover, .delete-button:active, .accept-button:hover, .accept-button:active {
+/* color: #FFF;*/
+ background-color: #999;
+ color: #FFF;
+}
+
+/*
+ * VISIBILITY RULES
+ */
+.default-menu {
+ visibility: inherit;
+ opacity: 0.2;
+}
+
+.default-menu:hover {
+ opacity: 1;
+ z-index: 5000;
+}
+
+.htmlview *[x-annotation-box] > .default-menu {
+ opacity: 1;
+}
+
+.htmlview *[x-editable][x-open] > .default-menu {
+ visibility: hidden;
+}
+.htmlview *[x-editable][x-open] *[x-annotation-box] > .default-menu {
+ visibility: hidden;
+}
+
+.htmlview *[x-editable] > .edit-menu {
+ visibility: hidden;
+}
+.htmlview *[x-editable] *[x-annotation-box] > .edit-menu {
+ visibility: hidden;