summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotation.index.css
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/align/components/annotations/annotation.index.css')
-rw-r--r--animism-align/frontend/app/views/align/components/annotations/annotation.index.css76
1 files changed, 76 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.index.css b/animism-align/frontend/app/views/align/components/annotations/annotation.index.css
new file mode 100644
index 0000000..d39e5de
--- /dev/null
+++ b/animism-align/frontend/app/views/align/components/annotations/annotation.index.css
@@ -0,0 +1,76 @@
+/* Annotation index */
+
+.annotationIndex {
+ width: 800px;
+}
+.annotationIndex .annotation {
+ position: absolute;
+ left: 5px;
+ max-width: 400px;
+ padding: 0.25rem 0.375rem;
+ box-shadow: 0px 0px 3px rgba(0,0,0,1.0);
+ border: 1px solid transparent;
+ border-radius: 2px;
+ font-size: 12px;
+ cursor: pointer;
+ user-select: none;
+ background-color: #768;
+}
+.annotation.selected {
+ border-color: #bbf;
+ box-shadow: 0px 0px 4px rgba(0,0,0,1.0), 0px 0px 2px rgba(0,0,0,1.0);
+ z-index: 1;
+ background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4));
+}
+.annotationIndex .annotation.media {
+ left: calc(405px + 0.5rem);
+}
+.annotation.sentence.even {
+ background-color: #83b;
+}
+.annotation.sentence.odd {
+ background-color: #537;
+}
+.annotation.header {
+ background-color: #838;
+}
+.annotation.paragraph_end {
+ background-color: #003;
+ border-top: 1px solid #888;
+ width: 100%;
+ padding: 1px;
+}
+.annotationIndex .annotation.utility {
+ left: calc(405px + 0.5rem);
+}
+
+
+/* Condensed layout (first lines) */
+
+.annotationIndex.condensed .annotation.sentence {
+ z-index: 0;
+ white-space: pre;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.annotationIndex.condensed .annotation.header {
+ z-index: 1;
+}
+.annotationIndex.condensed .annotation.paragraph_end {
+ border-top-color: #888;
+}
+
+/* Collapsed layout (borders) */
+
+.annotationIndex.collapsed .annotation.sentence {
+ height: 2px; overflow: hidden; padding: 0; z-index: 0;
+}
+.annotationIndex.collapsed .annotation.sentence.selected {
+ z-index: 1;
+}
+.annotationIndex.collapsed .annotation.header {
+ z-index: 2;
+}
+.annotationIndex.collapsed .annotation.paragraph_end {
+ border-top-color: #333;
+}