summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/transcript/transcript.css
blob: 8b7565229c04e953d9c590874976ce87d0f9f20c (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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
/* transcript */

.transcript {
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  width: 31.875rem;
  max-width: 100vw;
  height: 100%;
  overflow: hidden;
  background: white;
  color: black;
  font-size: 18px;
  line-height: 1.45;
  transform: translateZ(0) translateX(100%);
  transition: transform 0.2s;
  pointer-events: none;
  user-select: none;
}
.transcript-open .transcript {
  pointer-events: auto;
  user-select: auto;
  transform: translateZ(0) translateX(0);
}

/* footer */

.transcript .footer {
  position: absolute;
  bottom: 0;
  left: 0;
  height: calc(3rem + 1px);
  width: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-top: 1px solid white;
  border-left: 1px solid white;
}

/* general paragraph styles */

.transcript .content {
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  /*height: calc(100% - 3rem);*/
  height: 100%;
  padding: 1.5rem 4rem 6rem 2rem;
  border-left: 1px solid #000;
  position: relative;
}
.transcript-open .transcript .content {
  overflow-y: scroll;
}

.transcript .content > div {
  margin-bottom: 16px;
}

/* transcript scroll bar */

.transcript .content::-webkit-scrollbar {
  cursor: pointer;
  user-select: none;
  width: 4px
}
.transcript .content::-webkit-scrollbar-button {
  display: block;
  width: 0;
  height: 0;
}
.transcript .content::-webkit-scrollbar-track-piece {
  background:rgba(211,211,211,0.8);
}
.transcript .content::-webkit-scrollbar-thumb {
  display: block;
  background: #000;
}

/* paragraph subtypes */

.transcript .section_heading {
  cursor: pointer;
  text-align: center;
  padding-top: 2rem;
}
.transcript .section_heading:first-of-type {
  padding-top: 0;
}
.transcript .section_heading span {
  border-bottom: 1px solid;
  background: rgba(0,0,0,0.0);
  transition: background 0.2s;
}

.transcript .section_heading:hover span,
.transcript .media:hover span {
  background: rgba(0,0,0,0.12);
}
.transcript .paragraph span:hover {
  background: rgba(225,225,225,1.0);
}
.transcript .paragraph span.pullquote_credit:hover {
  background: transparent;
}

.transcript .paragraph {
  cursor: pointer;
  background: rgba(0,0,0,0.0);
  transition: background 0.2s
}
.transcript .blockquote {
  padding-left: 2rem;
  line-height: 1.45;
}
.transcript .pullquote {
  border-left: 2px solid #ddd;
  margin-top: 1rem;
  padding-left: 1rem;
}
.transcript .pullquote + .pullquote {
  margin-top: -1rem;
  padding-top: 1rem;
}
.transcript .pullquote_credit {
  display: block;
  text-align: right;
  cursor: arrow;
}
.transcript .pullquote_credit:before {
  content: '—';
}

/* sentences */

.transcript span {
  margin-right: 4px;
  box-shadow: 0 0 0 rgba(255,255,255,0.0);
  transition: all 0.2s;
}
.transcript .media span {
  margin-right: 0;
  border-bottom: 1px solid;
  cursor: pointer;
  background: rgba(0,0,0,0.0);
}

.transcript .paragraph .current {
  box-shadow: -2px -1px 0 #e8e8e8,
               2px -1px 0 #e8e8e8,
              -2px  1px 0 #e8e8e8,
               2px  1px 0 #e8e8e8;
  box-decoration-break: clone;
  background: #e8e8e8;
  color: #000;
  transition: all 0.2s;
}

.transcript .footnote {
  font-size: 0.8rem;
  position: relative;
  top: -0.5rem;
  left: -0.4rem;
  margin-right: -0.2rem;
  cursor: pointer;
}
.transcript .paragraph .current + .footnote {
  background: #e8e8e8;
}