wavesurfer.js 7.0.0-alpha.1 → 7.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,211 +0,0 @@
1
- body, html {
2
- margin: 0;
3
- padding: 0;
4
- background: #fff;
5
- color: #333;
6
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
7
- }
8
-
9
- a {
10
- color: #333;
11
- }
12
-
13
- a:hover {
14
- color: #000;
15
- }
16
-
17
- @media (prefers-color-scheme: dark) {
18
- body, html {
19
- background: #1E1E1E;
20
- color: #fff;
21
- }
22
-
23
- a {
24
- color: #ddd;
25
- }
26
-
27
- a:hover {
28
- color: #fff;
29
- }
30
- }
31
-
32
- * {
33
- box-sizing: border-box;
34
- }
35
-
36
- .layout {
37
- display: flex;
38
- flex-wrap: wrap;
39
- flex-direction: column;
40
- height: 100vh;
41
- }
42
-
43
- .grid {
44
- display: flex;
45
- flex-wrap: nowrap;
46
- flex: 1;
47
- width: 100vw;
48
- min-height: 500px;
49
- }
50
-
51
- @media (max-width: 768px) {
52
- .grid {
53
- flex-wrap: wrap;
54
- }
55
- }
56
-
57
- .sidebar {
58
- width: 120px;
59
- padding: 10px;
60
- padding-right: 0;
61
- }
62
-
63
- .sidebar ul {
64
- list-style: none;
65
- padding: 0;
66
- margin: 0;
67
- }
68
-
69
- .sidebar li {
70
- padding: 0;
71
- margin: 0;
72
- }
73
-
74
- .sidebar a {
75
- display: block;
76
- padding: 0.5em;
77
- text-decoration: none;
78
- }
79
-
80
- .sidebar a.active {
81
- background: #ddd;
82
- position: relative;
83
- }
84
-
85
- .sidebar a.active:after {
86
- content: "▸";
87
- position: absolute;
88
- right: 0;
89
- }
90
-
91
- @media (prefers-color-scheme: dark) {
92
- .sidebar a.active {
93
- background: #333;
94
- }
95
- }
96
-
97
- #editor {
98
- margin-top: 1em;
99
- min-width: 50vw;
100
- }
101
-
102
- .preview {
103
- flex: 1;
104
- min-width: 30vw;
105
- height: 100%;
106
- padding: 1em;
107
- }
108
-
109
- .preview iframe {
110
- display: block;
111
- width: 100%;
112
- height: 100%;
113
- border: 1px solid #EDEDEC;
114
- border-radius: 6px;
115
- }
116
-
117
- header {
118
- padding: 1em;
119
- text-align: center;
120
- font-family: sans-serif;
121
- font-size: 12px;
122
- color: #fff;
123
- background: linear-gradient(to right, #3a6186, #89253e);
124
- position: relative;
125
- display: flex;
126
- align-items: center;
127
- justify-content: space-between;
128
- }
129
-
130
- header h1 {
131
- margin: 0;
132
- font-size: inherit;
133
- }
134
-
135
- header a,
136
- header a:hover,
137
- footer a,
138
- footer a:hover {
139
- color: #fff;
140
- }
141
-
142
- header a:hover,
143
- footer a:hover {
144
- text-decoration: none;
145
- }
146
-
147
- footer {
148
- padding: 1em;
149
- text-align: center;
150
- font-family: sans-serif;
151
- font-size: 12px;
152
- color: #ccc;
153
- background: linear-gradient(to left, #3a6186, #89253e);
154
- }
155
-
156
- .github {
157
- margin-right: 0.5em;
158
- }
159
-
160
- .github:before {
161
- text-decoration: none;
162
- content: '';
163
- display: inline-block;
164
- margin-right: 5px;
165
- width: 20px;
166
- height: 20px;
167
- vertical-align: middle;
168
- background: center center no-repeat url("data:image/svg+xml, %3Csvg width='1024' height='1024' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z' transform='scale(64)' fill='%23fff'/%3E%3C/svg%3E%0A");
169
- background-size: contain;
170
- }
171
-
172
- @keyframes fadeIn {
173
- 0% { opacity: 0; }
174
- 100% { opacity: 1; }
175
- }
176
-
177
- .alert {
178
- position: fixed;
179
- z-index: 100;
180
- top: 10px;
181
- right: 10px;
182
- padding: 20px;
183
- border-radius: 6px;
184
- background: #426183;
185
- color: #fff;
186
- font-size: 20px;
187
- cursor: pointer;
188
- text-align: left;
189
- min-width: 30vw;
190
- max-width: 40vw;
191
- max-height: 5em;
192
- overflow: auto;
193
- white-space: pre-line;
194
- animation: fadeIn 100ms ease-in;
195
- }
196
-
197
- .eval-decoration {
198
- background: #CFB3B9;
199
- }
200
-
201
- @media (prefers-color-scheme: dark) {
202
- .eval-decoration {
203
- background: #792C3D;
204
- }
205
- }
206
-
207
- kbd {
208
- content: '⌨';
209
- font-size: 1.2em;
210
- margin-right: 0.2em;
211
- }