summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/align/components/annotations/annotation.index.css
blob: afedbde97152ca2b274ba0abafab9ee0f7dc8991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/* Annotation index */

.annotationIndex {
  width: 800px;
}
.annotationIndex .annotation {
  position: absolute;
  left: 5px;
  max-width: 300px;
  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: 2;
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4));
}
.annotationIndex .annotation.media {
  width: 300px;
  left: calc(405px + 0.5rem);
}
.annotationIndex .annotation.sentence.even {
  background-color: #83b;
}
.annotationIndex .annotation.sentence.odd {
  background-color: #537;
}
.annotationIndex .annotation.section_heading {
  background-color: #983;
  z-index: 1;
}
.annotationIndex .annotation.heading_text {
  background-color: #838;
}
.annotationIndex .annotation.paragraph_end {
  background-color: #003;
  border-top: 1px solid #888;
  width: 300px;
  padding: 1px;
}
.annotationIndex .annotation.utility {
  left: calc(505px + 0.5rem);
  width: 200px;
}
.annotationIndex .annotation.footnote {
  left: calc(605px + 0.5rem);
  width: 200px;
}
.annotationIndex .annotation.text_plate {
  left: calc(605px + 0.5rem);
  width: 250px;
}
.annotationIndex .annotation.utility.curtain {
  background-image: linear-gradient(rgba(255,255,255,1.0), rgba(255,255,255,1.0));
  width: 15rem;
  padding: 0;
  overflow: hidden;
}
.annotationIndex .annotation.utility.curtain span {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  color: black;
  text-shadow: 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff;
  padding: 0.25rem;
}
.annotationIndex .annotation.utility.curtain .fadeIn {
  z-index: 0;
  position: absolute;
  top: 0;
  width: 100%;
  background-image: linear-gradient(rgba(0,0,0,1.0), rgba(255,255,255,1.0));
  background-size: cover;
}
.annotationIndex .annotation.utility.curtain .fadeOut {
  z-index: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  background-image: linear-gradient(rgba(255,255,255,1.0), rgba(0,0,0,1.0));
  background-size: cover;
}

/* Condensed layout (first lines) */

.annotationIndex.condensed .annotation.sentence {
  z-index: 0;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.annotationIndex.condensed .annotation.section_heading {
  z-index: 2;
}
.annotationIndex.condensed .annotation.heading_text {
  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: 4;
}
.annotationIndex.collapsed .annotation.section_heading {
  z-index: 3;
}
.annotationIndex.collapsed .annotation.heading_text {
  z-index: 2;
}
.annotationIndex.collapsed .annotation.paragraph_end {
  border-top-color: #333;
}