pacem-less 0.60.2 → 0.60.3-archimedes
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.
- package/pacem/ui/dark/index.less +2 -1
- package/pacem/ui/dark/ticker.less +171 -0
- package/package.json +1 -1
package/pacem/ui/dark/index.less
CHANGED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
@import "../shared";
|
|
2
|
+
|
|
3
|
+
@{P}-ticker {
|
|
4
|
+
display: inline-grid;
|
|
5
|
+
grid-template-columns: 1fr;
|
|
6
|
+
grid-template-rows: 1fr;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
&::part(ticker-outgoing),
|
|
10
|
+
&::part(ticker-incoming) {
|
|
11
|
+
// display: block;
|
|
12
|
+
/*width: 100%;
|
|
13
|
+
height: 100%;*/
|
|
14
|
+
grid-area: ~"1/1";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.@{PCSS}-anim.ticking {
|
|
18
|
+
&::part(ticker-outgoing),
|
|
19
|
+
&::part(ticker-incoming) {
|
|
20
|
+
transition: all @easing_in_out_sine .3s;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::part(ticker-outgoing) {
|
|
25
|
+
transform: none;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::part(ticker-incoming) {
|
|
30
|
+
transform: translateX(100%);
|
|
31
|
+
opacity: 0;
|
|
32
|
+
z-index: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.ticking {
|
|
36
|
+
|
|
37
|
+
&::part(ticker-outgoing) {
|
|
38
|
+
transform: translateX(-100%);
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&::part(ticker-incoming) {
|
|
43
|
+
transform: translateX(0);
|
|
44
|
+
opacity: 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// transitions IN
|
|
48
|
+
// 1. bottom -> top
|
|
49
|
+
&.ticker-bottom-in {
|
|
50
|
+
|
|
51
|
+
&::part(ticker-incoming) {
|
|
52
|
+
transform: translateY(100%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&::part(ticker-outgoing) {
|
|
56
|
+
transform: translateY(0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.ticking {
|
|
60
|
+
&::part(ticker-incoming) {
|
|
61
|
+
transform: translateY(0);
|
|
62
|
+
}
|
|
63
|
+
// default combo with top-out
|
|
64
|
+
&::part(ticker-outgoing) {
|
|
65
|
+
transform: translateY(-100%);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// 2. top -> bottom
|
|
70
|
+
&.ticker-top-in {
|
|
71
|
+
|
|
72
|
+
&::part(ticker-incoming) {
|
|
73
|
+
transform: translateY(-100%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&::part(ticker-outgoing) {
|
|
77
|
+
transform: translateY(0);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.ticking {
|
|
81
|
+
&::part(ticker-incoming) {
|
|
82
|
+
transform: translateY(0);
|
|
83
|
+
}
|
|
84
|
+
// default combo with bottom-out
|
|
85
|
+
&::part(ticker-outgoing) {
|
|
86
|
+
transform: translateY(100%);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// 3. left -> right
|
|
91
|
+
&.ticker-left-in {
|
|
92
|
+
|
|
93
|
+
&::part(ticker-incoming) {
|
|
94
|
+
transform: translateX(-100%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&::part(ticker-outgoing) {
|
|
98
|
+
transform: translateX(0);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.ticking {
|
|
102
|
+
&::part(ticker-incoming) {
|
|
103
|
+
transform: translateX(0);
|
|
104
|
+
}
|
|
105
|
+
// default combo with right-out
|
|
106
|
+
&::part(ticker-outgoing) {
|
|
107
|
+
transform: translateX(100%);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
// 4. right -> left (default)
|
|
112
|
+
&.ticker-right-in {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.ticker-left-out {
|
|
116
|
+
}
|
|
117
|
+
// transitions out
|
|
118
|
+
// 1. -> top
|
|
119
|
+
&.ticker-top-out {
|
|
120
|
+
|
|
121
|
+
&::part(ticker-outgoing) {
|
|
122
|
+
transform: translateY(0);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.ticking {
|
|
126
|
+
&::part(ticker-outgoing) {
|
|
127
|
+
transform: translateY(-100%);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
// 2 -> bottom
|
|
132
|
+
&.ticker-bottom-out {
|
|
133
|
+
|
|
134
|
+
&::part(ticker-outgoing) {
|
|
135
|
+
transform: translateY(0);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.ticking {
|
|
139
|
+
&::part(ticker-outgoing) {
|
|
140
|
+
transform: translateY(100%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
// 3 -> right
|
|
145
|
+
&.ticker-right-out {
|
|
146
|
+
|
|
147
|
+
&::part(ticker-outgoing) {
|
|
148
|
+
transform: translateX(0);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.ticking {
|
|
152
|
+
&::part(ticker-outgoing) {
|
|
153
|
+
transform: translateX(100%);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 4 -> left
|
|
159
|
+
&.ticker-left-out {
|
|
160
|
+
|
|
161
|
+
&::part(ticker-outgoing) {
|
|
162
|
+
transform: translateX(0);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.ticking {
|
|
166
|
+
&::part(ticker-outgoing) {
|
|
167
|
+
transform: translateX(-100%);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
package/package.json
CHANGED