+
{
// TODO index annotation to make this faster
- const allAnnotationSpans = document.querySelectorAll('.annotation');
+ const allAnnotationSpans = document.querySelectorAll('.r6o-annotation');
return Array.prototype.slice.call(allAnnotationSpans)
.filter(span => span.annotation.isEqual(annotation));
}
getAllAnnotations = () => {
// TODO index annotation to make this faster
- const allAnnotationSpans = document.querySelectorAll('.annotation');
+ const allAnnotationSpans = document.querySelectorAll('.r6o-annotation');
return Array.prototype.slice.call(allAnnotationSpans)
.map(span => span.annotation);
}
@@ -80,7 +80,7 @@ export default class Highlighter {
applyStyles = (annotation, spans) => {
const extraClasses = this.formatter ? this.formatter(annotation) : '';
- spans.forEach(span => span.className = `annotation ${extraClasses}`.trim());
+ spans.forEach(span => span.className = `r6o-annotation ${extraClasses}`.trim());
}
bindAnnotation = (annotation, elements) => {
@@ -245,7 +245,7 @@ export default class Highlighter {
annotations.push(element.annotation);
- return (parent.classList.contains('annotation')) ?
+ return (parent.classList.contains('r6o-annotation')) ?
getAnnotationsRecursive(parent, annotations) : annotations;
},
diff --git a/src/selection/SelectionHandler.js b/src/selection/SelectionHandler.js
index 56255af..825d129 100644
--- a/src/selection/SelectionHandler.js
+++ b/src/selection/SelectionHandler.js
@@ -37,7 +37,7 @@ export default class SelectionHandler extends EventEmitter {
const selection = getSelection();
if (selection.isCollapsed) {
- const annotationSpan = evt.target.closest('.annotation');
+ const annotationSpan = evt.target.closest('.r6o-annotation');
if (annotationSpan) {
this.emit('select', {
selection: this.highlighter.getAnnotationsAt(annotationSpan)[0],
diff --git a/themes/default/editor/_editor.scss b/themes/default/editor/_editor.scss
index 1b414d5..6b3f738 100644
--- a/themes/default/editor/_editor.scss
+++ b/themes/default/editor/_editor.scss
@@ -1,3 +1,4 @@
+@import "widgets/textentry";
@import "widgets/comment/comment";
@import "widgets/tag/tag";
@import "widgets/type/typeSelector";
@@ -35,11 +36,11 @@
@include rounded-corners(2px);
@include box-shadow(2px, 2px, 42px, 0.4);
- .r6o-section:first-child {
+ .r6o-widget:first-child {
@include rounded-corners-top(2px);
}
- .r6o-section {
+ .r6o-widget {
border-bottom:1px solid $lightgrey-border-darker;
}
}
diff --git a/themes/default/editor/widgets/comment/_comment.scss b/themes/default/editor/widgets/comment/_comment.scss
index e70aac3..c2e4739 100644
--- a/themes/default/editor/widgets/comment/_comment.scss
+++ b/themes/default/editor/widgets/comment/_comment.scss
@@ -1,4 +1,4 @@
-.r6o-section.comment {
+.r6o-widget.comment {
font-size:14px;
min-height:3em;
background-color:#fff;
@@ -56,6 +56,6 @@
}
-.r6o-section.comment.editable {
+.r6o-widget.comment.editable {
background-color:$blueish-white;
}
\ No newline at end of file
diff --git a/themes/default/globals/_globals.scss b/themes/default/globals/_globals.scss
index a9c1c06..222ac69 100644
--- a/themes/default/globals/_globals.scss
+++ b/themes/default/globals/_globals.scss
@@ -1,4 +1,3 @@
@import "includes/colors";
-@import "includes/fonts";
@import "includes/mixins";
@import "includes/buttons";
\ No newline at end of file
diff --git a/themes/default/globals/includes/_fonts.scss b/themes/default/globals/includes/_fonts.scss
deleted file mode 100644
index 2c5c57d..0000000
--- a/themes/default/globals/includes/_fonts.scss
+++ /dev/null
@@ -1,6 +0,0 @@
-@font-face {
- font-family:'FontAwesome';
- src:url('/fontawesome-webfont.ttf');
- font-weight:normal;
- font-style:normal;
-}
\ No newline at end of file
diff --git a/themes/default/highlights/_highlights.scss b/themes/default/highlights/_highlights.scss
index 99100cd..61306d0 100644
--- a/themes/default/highlights/_highlights.scss
+++ b/themes/default/highlights/_highlights.scss
@@ -1,10 +1,10 @@
-.annotation {
+.r6o-annotation {
background-color:#ffa50033;
border-bottom:2px solid orange;
cursor:pointer;
}
-.selection {
+.r6o-selection {
background-color:#cfcfffa1;
cursor:pointer;
}
\ No newline at end of file