-
Notifications
You must be signed in to change notification settings - Fork 0
/
card.css
236 lines (212 loc) · 5.31 KB
/
card.css
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
/*选中阴影显示*/
.card::before {
content: '';
position: absolute;
top: -7px;
left: -7px;
height: 100%;
width: 100%;
border-image-source: url('assets/image/card_select.png');
border-image-slice: 8 7 7 8;
border-style: solid;
border-image-width: 8px 7px 7px 8px;
border-width: 7px;
box-shadow: none;
border-radius: inherit;
opacity: 0;
transition: opacity 0.3s linear;
z-index: 0;
}
.card::after {
display: none;
}
.card.selected::before {
opacity: 1;
}
#arena>.card.thrown {
z-index: 5;
}
#arena>.card.thrown.gainingcard,
#arena>.card.thrown.drawingcard {
z-index: 6;
}
.card>.animation {
position: absolute;
width: 100%;
height: 100%;
line-height: 150px;
color: black;
font-size: 100px;
font-family: 'xingkai';
font-display: swap;
text-align: center;
text-shadow: 0 0 5px white, 0 0 5px white, 0 0 5px white, 0 0 5px white, 0 0 5px white;
opacity: 0;
pointer-events: none;
}
.card>.animation[data-nature='fire'] {
text-shadow: 0 0 4px #FFF, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 10px #f80, 2px -25px 20px #f20;
}
.card>.animation[data-nature='thunder']::before {
content: '';
display: block;
position: absolute;
left: calc(50% - 50px);
top: calc(50% - 30px);
width: 100px;
height: 60px;
text-shadow: 0 0 10px white !important;
background: linear-gradient(to bottom, white, rgba(100, 100, 255, 1) 15%, white 30%, rgba(100, 100, 255, 1) 50%, white 70%, rgba(100, 100, 255, 1) 85%, white);
clip-path: polygon(100% 0, 20% 50%, 37% 60%, 0 100%, 80% 50%, 63% 40%);
-webkit-clip-path: polygon(100% 0, 20% 50%, 37% 60%, 0 100%, 80% 50%, 63% 40%);
transform: scale(1.5);
z-index: -1;
pointer-events: none;
}
.card>.animation-player {
display: block;
position: absolute;
left: -120%;
top: -70%;
width: 340%;
height: 240%;
transition: none;
pointer-events: none;
z-index: 8;
}
/*出牌来源提示*/
.card>.used-info {
opacity: 0;
margin: 0px;
padding: 0px;
position: absolute;
left: 0px;
bottom: 0px;
text-align: center;
/* background-color: rgba(0, 0, 0, 0.4); */
background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.1) 100%);
color: rgb(255, 255, 200);
font-size: 17px;
width: 100%;
height: 33%;
display: flex;
align-items: center;
align-content: center;
justify-content: center;
font-family: 'STHeiti', 'SimHei', 'Microsoft JhengHei', 'Microsoft YaHei', 'WenQuanYi Micro Hei', Helvetica, Arial, sans-serif !important;
z-index: 4;
}
.card.thrown:not(.drawingcard):not(.movingcard)>.used-info:not(:empty) {
opacity: 1;
}
/*卡牌转换提示*/
.card>.gaintag.info,
.card.button>.gaintag.info {
left: 4px;
top: calc(50% + 38px);
bottom: auto;
right: 4px;
width: auto;
color: #181818;
font-size: 20px;
font-weight: bold;
font-family: shousha;
line-height: 24px;
text-align: center;
text-shadow: none;
white-space: normal;
background: rgba(230, 210, 166, 0.8);
border-radius: 2px;
border: 1px solid black;
pointer-events: none;
}
.card>.gaintag.info:empty,
.card.button>.gaintag.info:empty {
display: none;
}
.card.fullborder>.gaintag.info,
.card.fullimage>.gaintag.info {
background-color: rgba(0, 0, 0, 0.8);
border-color: white;
}
/*卡名辅助显示及控制*/
.card>.name,
.card.fullskin>.name,
.card.fullskin>.name.long,
.dialog .buttons>.card>.name.long {
top: auto;
bottom: 5px;
line-height: 16px;
background: rgba(230, 210, 166, 0.8);
color: black;
font-size: 16px;
font-weight: bold;
font-family: shousha;
text-shadow: 0 0 1px white, 0 0 3px white;
border: 1px solid black;
border-radius: 2px;
z-index: 1;
}
.card.fullborder>.name,
.card.fullborder>.name.long,
.card.fullimage>.name,
.card.fullimage>.name.long {
background-color: rgba(0, 0, 0, 0.8);
border-color: white;
font-family: shousha;
}
#window[data-card-alternate-name-visible='off'] .card>.name,
#window[data-card-alternate-name-visible='off'] .card>.range:not(.card-tag) {
display: none;
}
/****** 转换牌显示 ******/
.card>.temp-name {
position: absolute;
left: 4px;
top: calc(50% - 12px);
right: 4px;
width: auto;
height: 24px;
color: #181818;
font-size: 20px;
font-weight: bold;
font-family: shousha;
line-height: 24px;
text-align: center;
text-shadow: none;
white-space: normal;
background: rgba(228, 207, 166, 0.8);
border-radius: 2px;
border: 1px solid black;
pointer-events: none
}
.card>.temp-name[data-nature='fire'] {
color: red;
text-shadow: 0 0 4px #FFF, 0 -5px 4px #ff3, 2px -10px 6px #fd3, -2px -15px 10px #f80, 2px -25px 20px #f20;
}
.card>.temp-name[data-nature='thunder'] {
color: blue;
text-shadow: 0 0 5px lightblue, 0 0 10px lightblue;
}
/* .card>.temp-name[data-nature='thunder']::before { */
/* content:''; */
/* display: block; */
/* position: absolute; */
/* left: calc(50% - 50px); */
/* top: calc(50% - 30px); */
/* width: 100px; */
/* height: 60px; */
/* text-shadow: 0 0 10px white !important; */
/* background: linear-gradient(to bottom, white, blue 15%, white 30%, blue 50%, white 70%, blue 85%, white);; */
/* clip-path: polygon(100% 0, 20% 50%, 37% 60%, 0 100%, 80% 50%, 63% 40%); */
/* -webkit-clip-path: polygon(100% 0, 20% 50%, 37% 60%, 0 100%, 80% 50%, 63% 40%); */
/* transform: scale(0.8); */
/* } */
.card>.temp-name:empty {
display: none;
}
.card.fullborder>.temp-name,
.card.fullimage>.temp-name {
background-color: rgba(0, 0, 0, 0.8);
border-color: white;
}