forked from LenAnderson/SillyTavern-GroupExpressions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.less
58 lines (53 loc) · 1.36 KB
/
style.less
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
.stge--root {
--scale-speaker: 120;
--top: calc(100 - 100 / var(--scale-speaker) * 100);
--offset: 25;
--transition: 400;
--scale-dropoff: 3;
--position: 0;
--width: calc((100vw - var(--sheldWidth)) / 2);
}
.stge--root {
position: absolute;
top: calc(var(--top) * 1%);
bottom: 0;
left: calc(var(--position) * (100vw - var(--width)) / 100);
left: clamp(0vw, calc(var(--position) * (100vw - var(--width)) / 100 - var(--settings-panel-width, 0px)), calc(100vw - var(--width)));
width: var(--width);
perspective: 500px;
transform-style: preserve-3d;
transition: calc(var(--transition) * 1ms);
> .stge--wrapper {
--order: 0;
--dir: 1;
position: absolute;
top: 0;
left: calc(var(--offset) * 1% * var(--dir) * var(--order));
width: 100%;
bottom: 0;
transform: translate3d(0, 0, calc(-1px * var(--order)));
transform-origin: bottom center;
transition: calc(var(--transition) * 1ms), transform 1ms;
scale: calc(100% - var(--order) * var(--scale-dropoff) * 1%);
&.stge--exit {
left: calc(100vw * var(--dir));
}
&.stge--last {
scale: calc(var(--scale-speaker) * 1%);
}
> .stge--img {
height: 100%;
object-fit: contain;
aspect-ratio: 1/1.5;
object-position: bottom center;
margin-left: 50%;
transform: translateX(-50%);
}
}
}
.stge--positionContainer {
display: flex;
flex-direction: row;
gap: 1em;
align-items: center;
}