summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/sections.css
blob: 4858d7a4331d397d8d8aaa9184e374aabc890222 (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
/* Viewer sections */

.viewer-sections {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  display: block;
  transition: transform 0.2s;
  transform: translateZ(0) translateY(25rem);
  border-top: 1px solid #fff;
}
.nav-open .viewer-sections {
  transform: translateZ(0) translateY(0);
}
.checklist-open .viewer-sections {
  transform: translateZ(0) translateY(calc(3rem - 100vh));
  z-index: 20;
}
.sections-nav {
  z-index: 22;
}

/* scrolling part */

.viewer-sections .viewer-sections-scroll {
  width: 100%;
  height: 22rem;
  white-space: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
}
.checklist-open .viewer-sections .viewer-sections-scroll {
  overflow-x: hidden;
}
.viewer-sections-scroll::-webkit-scrollbar {
  cursor: pointer;
  user-select: none;
  height: 4px;
  width: 4px;
}
.viewer-sections-scroll::-webkit-scrollbar-button {
  display: block;
  width: 0;
  height: 0;
}
.viewer-sections-scroll::-webkit-scrollbar-track-piece {
  background: rgba(211,211,211,0.8);
}
.viewer-sections-scroll::-webkit-scrollbar-thumb {
  display: block;
  background: #000;
}


/* clickable section indicators */

.viewer-sections .viewer-section {
  display: inline-flex;
  white-space: normal;
  width: 12rem;
  margin: 1rem 0 1rem 1rem;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.viewer-sections .viewer-section:hover {
  opacity: 1.0;
}
.viewer-sections .viewer-section.current-section {
  opacity: 1.0;
}
.viewer-sections .viewer-section:last-child {
  margin-right: 1rem;
}
.viewer-section > div {
  height: calc(20rem - 4px);
  width: 12rem;
}
.viewer-section .section-thumbnail {
  display: block;
  border-radius: 1rem;
  width: 12rem;
  height: 8rem;
  margin-bottom: 0.5rem;
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
}
.viewer-section .section-duration {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
} 
.section-duration-white { color: white; }
.section-duration-black { color: black; }
.section-duration-white svg path { fill: white; }
.section-duration-black svg path { fill: black; }
.viewer-section .section-media {
  margin-top: 0.75rem;
  font-size: 12px;
}
.viewer-section .section-has-audio {
  position: absolute;
  bottom: -0.25rem;
  right: 0.25rem;
}
.viewer-section .section-has-audio svg {
  width: 2.5rem;
  height: 2.5rem;
}
.viewer-section .section-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
}
.viewer-section .section-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: #fff;
}