summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/transcript/transcript.css
blob: 984221a2820eab19e22157baefa8cd24a6325c63 (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
/* 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;
  border-left: 1px solid #000;
  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: 3rem;
  border-top: 1px solid white;
  width: 100%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* general paragraph styles */

.transcript .content {
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  height: 100%;
  padding: 1.5rem 2rem 6rem 1.5rem;
  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 .header {
  text-align: center;
  padding-top: 2rem;
}
.transcript .header:first-of-type {
  padding-top: 0;
}
.transcript .header span {
  border-bottom: 1px solid;
}

.transcript .paragraph,
.transcript .hidden {
}

.transcript .blockquote {
  padding-left: 2rem;
  line-height: 1.45;
}

/* sentences */

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

.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;
}