blob: af82a6d3ba79676676975b97a10e0c9aae7ce21a (
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
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.linear-easing-function-container {
height: 100%;
}
.linear-easing-function-container .display-wrap {
--chart-size: 300px;
height: 100%;
display: grid;
grid-template-rows: var(--chart-size) 1fr;
justify-items: center;
align-items: center;
gap: 5px;
}
.linear-easing-function-container svg.chart {
aspect-ratio: 1 / 1;
max-height: 100%;
}
.linear-easing-function-container .chart-grid {
stroke: var(--bezier-grid-color);
pointer-events: none;
}
.linear-easing-function-container .chart-linear {
-moz-context-properties: stroke;
stroke: #4C9ED9;
}
.linear-easing-function-container .control-point {
-moz-context-properties: fill, stroke;
fill: var(--grey-55);
cursor: pointer;
}
:root.theme-dark .linear-easing-function-container .control-point {
fill: var(--grey-20);
}
/* Timing Function Preview Widget */
.linear-easing-function-container .timing-function-preview {
width: var(--chart-size);
/* Draw a background line */
background: linear-gradient(0deg, transparent 45%,var(--bezier-grid-color) 45%, var(--bezier-grid-color) 55%,transparent 55%);
}
.linear-easing-function-container .timing-function-preview .dot::before {
content: "";
display: inline-block;
width: 10px;
height: 10px;
aspect-ratio: 1 / 1;
border-radius: 50%;
border: 2px solid white;
background: #4C9ED9;
}
|