Skip to content

Commit 25bb259

Browse files
committed
🔧 调整属性排序&格式化
1 parent 70a7168 commit 25bb259

File tree

15 files changed

+84
-102
lines changed

15 files changed

+84
-102
lines changed

.stylelintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ rules:
2525
- true
2626
- severity: warning
2727
order/order:
28+
- at-rules
2829
- custom-properties
2930
- declarations
3031
- rules
31-
- at-rules
3232
prettier/prettier: true
3333
property-no-vendor-prefix:
3434
- true

src/components/app/t-gameNav.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ async function toBBS(link: URL): Promise<void> {
139139
}
140140
141141
.tgn-nav {
142+
@include github-styles.github-card;
143+
142144
display: flex;
143145
align-items: center;
144146
justify-content: center;
145147
padding: 4px;
146148
border-radius: 4px;
147149
color: var(--tgc-white-1);
148150
cursor: pointer;
149-
150-
@include github-styles.github-card;
151151
}
152152
153153
.dark .tgn-nav {

src/components/app/t-postcard.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ function onUserClick(): void {
285285
@use "@styles/github.styles.scss" as github-styles;
286286
287287
.tpc-card {
288+
@include github-styles.github-card;
289+
288290
position: relative;
289291
display: flex;
290292
overflow: hidden;
@@ -299,8 +301,6 @@ function onUserClick(): void {
299301
&.select-mode {
300302
cursor: pointer;
301303
}
302-
303-
@include github-styles.github-card;
304304
}
305305
306306
.dark .tpc-card {
@@ -376,6 +376,8 @@ function onUserClick(): void {
376376
}
377377
378378
.tpc-tag {
379+
@include github-styles.github-tag-dark-gen(#e06c63);
380+
379381
display: flex;
380382
align-items: center;
381383
justify-content: center;
@@ -387,19 +389,17 @@ function onUserClick(): void {
387389
&:hover {
388390
@include github-styles.github-tag-dark-gen(#00aeec);
389391
}
390-
391-
@include github-styles.github-tag-dark-gen(#e06c63);
392392
}
393393
394394
.tpc-reason {
395+
@include github-styles.github-tag-dark-gen(#d19a66);
396+
395397
display: flex;
396398
align-items: center;
397399
justify-content: center;
398400
padding: 0 4px;
399401
border-radius: 4px;
400402
gap: 4px;
401-
402-
@include github-styles.github-tag-dark-gen(#d19a66);
403403
}
404404
405405
.tpc-forum {

src/components/app/top-nameCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const bgImage = computed<string>(() => {
3939
@use "@styles/github.styles.scss" as github-styles;
4040
4141
.top-nc-box {
42+
@include github-styles.github-card-shadow;
43+
4244
width: 100%;
4345
height: 80px;
4446
border: 1px solid var(--common-shadow-1);
@@ -59,8 +61,6 @@ const bgImage = computed<string>(() => {
5961
&.grey:hover {
6062
filter: grayscale(0);
6163
}
62-
63-
@include github-styles.github-card-shadow;
6464
}
6565
6666
.dark .top-nc-box {

src/components/func/loading.vue

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,33 @@ async function displayBox(params: LoadingParams): Promise<void> {
7373
defineExpose({ displayBox });
7474
</script>
7575
<style lang="css" scoped>
76+
@keyframes ball-clip-rotate-pulse-rotate {
77+
0% {
78+
transform: translate(-50%, -50%) rotate(0deg);
79+
}
80+
81+
50% {
82+
transform: translate(-50%, -50%) rotate(180deg);
83+
}
84+
85+
100% {
86+
transform: translate(-50%, -50%) rotate(360deg);
87+
}
88+
}
89+
90+
@keyframes ball-clip-rotate-pulse-scale {
91+
0%,
92+
100% {
93+
opacity: 1;
94+
transform: translate(-50%, -50%) scale(1);
95+
}
96+
97+
30% {
98+
opacity: 0.3;
99+
transform: translate(-50%, -50%) scale(0.15);
100+
}
101+
}
102+
76103
.func-loading-outer-enter-active,
77104
.func-loading-outer-leave-active,
78105
.func-loading-inner-enter-active {
@@ -229,31 +256,4 @@ defineExpose({ displayBox });
229256
height: 16px;
230257
animation: ball-clip-rotate-pulse-scale 1s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite;
231258
}
232-
233-
@keyframes ball-clip-rotate-pulse-rotate {
234-
0% {
235-
transform: translate(-50%, -50%) rotate(0deg);
236-
}
237-
238-
50% {
239-
transform: translate(-50%, -50%) rotate(180deg);
240-
}
241-
242-
100% {
243-
transform: translate(-50%, -50%) rotate(360deg);
244-
}
245-
}
246-
247-
@keyframes ball-clip-rotate-pulse-scale {
248-
0%,
249-
100% {
250-
opacity: 1;
251-
transform: translate(-50%, -50%) scale(1);
252-
}
253-
254-
30% {
255-
opacity: 0.3;
256-
transform: translate(-50%, -50%) scale(0.15);
257-
}
258-
}
259259
</style>

src/components/pageAnno/ta-card.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ function getAnnoTime(content: string): string | false {
133133
@use "@styles/github.styles.scss" as github-styles;
134134
135135
.anno-card {
136+
@include github-styles.github-card;
137+
136138
position: relative;
137139
overflow: hidden;
138140
width: 100%;
139141
box-sizing: border-box;
140142
border-radius: 6px;
141-
142-
@include github-styles.github-card;
143143
}
144144
145145
.dark .anno-card {

src/components/pageHome/ph-comp-card.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ defineProps<{ append?: boolean }>();
1818
@use "@styles/github.styles.scss" as github-styles;
1919
2020
.thc-container {
21+
@include github-styles.github-card;
22+
2123
position: relative;
2224
min-height: 100px;
2325
box-sizing: border-box;
2426
padding: 24px 8px 8px;
2527
border-radius: 4px;
2628
margin-top: 24px;
27-
28-
@include github-styles.github-card;
2929
}
3030
3131
.dark .thc-container {

src/components/userAchi/tua-achi.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ async function setAchiStat(stat: boolean): Promise<void> {
9696
@use "@styles/github.styles.scss" as github-styles;
9797
9898
.achi-container {
99+
@include github-styles.github-card;
100+
99101
position: relative;
100102
display: flex;
101103
height: 60px;
@@ -105,15 +107,15 @@ async function setAchiStat(stat: boolean): Promise<void> {
105107
padding: 8px;
106108
border-radius: 4px;
107109
cursor: pointer;
108-
109-
@include github-styles.github-card;
110110
}
111111
112112
.dark .achi-container {
113113
@include github-styles.github-card("dark");
114114
}
115115
116116
.achi-version {
117+
@include github-styles.github-tag-dark-gen(#fb7299);
118+
117119
position: absolute;
118120
top: 0;
119121
left: 0;
@@ -125,8 +127,6 @@ async function setAchiStat(stat: boolean): Promise<void> {
125127
font-family: var(--font-title);
126128
font-size: 10px;
127129
text-align: center;
128-
129-
@include github-styles.github-tag-dark-gen(#fb7299);
130130
}
131131
132132
.achi-pre {
@@ -172,15 +172,15 @@ async function setAchiStat(stat: boolean): Promise<void> {
172172
}
173173
174174
&__progress {
175+
@include github-styles.github-tag-dark-gen(#00aeec);
176+
175177
display: flex;
176178
height: 21px;
177179
align-items: center;
178180
justify-content: center;
179181
padding: 0 4px;
180182
border-radius: 4px;
181183
font-size: 12px;
182-
183-
@include github-styles.github-tag-dark-gen(#00aeec);
184184
}
185185
}
186186

src/components/userAchi/tua-series.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function selectSeries(): void {
9999
@use "@styles/github.styles.scss" as github-styles;
100100
101101
.tuas-card {
102+
@include github-styles.github-card;
103+
102104
position: relative;
103105
display: flex;
104106
overflow: hidden;
@@ -127,19 +129,19 @@ function selectSeries(): void {
127129
}
128130
}
129131
}
130-
131-
@include github-styles.github-card;
132132
}
133133
134134
.dark .tuas-card {
135+
@include github-styles.github-card("dark");
136+
135137
&.tuas-selected {
136138
background: var(--box-bg-1);
137139
}
138-
139-
@include github-styles.github-card("dark");
140140
}
141141
142142
.tuas-version {
143+
@include github-styles.github-tag-dark-gen(#ffa726);
144+
143145
position: absolute;
144146
z-index: 3;
145147
right: 0;
@@ -151,8 +153,6 @@ function selectSeries(): void {
151153
font-family: var(--font-title);
152154
font-size: 10px;
153155
text-align: center;
154-
155-
@include github-styles.github-tag-dark-gen(#ffa726);
156156
}
157157
158158
.tuas-reward {

src/components/userAvatar/tua-avatar-box.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ function getWeaponTitle(): string {
138138
@use "@styles/github.styles.scss" as github-styles;
139139
140140
.tua-ab-box {
141+
@include github-styles.github-card;
142+
141143
position: relative;
142144
display: flex;
143145
flex-direction: column;
144146
padding: 4px;
145147
border-radius: 4px;
146148
cursor: pointer;
147149
row-gap: 4px;
148-
149-
@include github-styles.github-card;
150150
}
151151
152152
.dark .tua-ab-box {

src/components/userGacha/ug-his-card.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ function getBox(id: number): TItemBoxData {
141141
}
142142
143143
.ug-his-banner {
144+
@include github-styles.github-card-shadow;
145+
144146
width: 50vw;
145147
border-radius: 4px;
146148
cursor: pointer;
@@ -150,8 +152,6 @@ function getBox(id: number): TItemBoxData {
150152
scale: 0.95;
151153
transition: 0.5s ease-in-out;
152154
}
153-
154-
@include github-styles.github-card-shadow;
155155
}
156156
157157
.ug-his-info {
@@ -176,15 +176,15 @@ function getBox(id: number): TItemBoxData {
176176
}
177177
178178
.ug-his-tag {
179+
@include github-styles.github-tag-dark-gen(#e06c63);
180+
179181
display: flex;
180182
height: fit-content;
181183
align-items: center;
182184
justify-content: center;
183185
padding: 0 8px;
184186
border-radius: 4px;
185187
font-size: 16px;
186-
187-
@include github-styles.github-tag-dark-gen(#e06c63);
188188
}
189189
190190
.ug-his-sub {

src/components/userRecord/tur-role-info.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ defineProps<TurRoleInfoProps>();
2020
@use "@styles/github.styles.scss" as github-styles;
2121
2222
.tur-ri-box {
23+
@include github-styles.github-card;
24+
2325
position: relative;
2426
display: flex;
2527
height: 48px;
@@ -29,8 +31,6 @@ defineProps<TurRoleInfoProps>();
2931
padding: 4px 12px 4px 4px;
3032
border-radius: 24px;
3133
column-gap: 4px;
32-
33-
@include github-styles.github-card;
3434
}
3535
3636
.dark .tur-ri-box {

src/pages/User/Characters.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,10 @@ function handleSwitch(next: boolean): void {
487487
}
488488
489489
.uc-box-uid {
490+
@include github-styles.github-tag-dark-gen(#ffcd0c);
491+
490492
padding: 2px 4px;
491493
border-radius: 4px;
492-
493-
@include github-styles.github-tag-dark-gen(#ffcd0c);
494494
}
495495
496496
.uc-ov-item {

src/pages/User/Record.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ async function deleteRecord(): Promise<void> {
243243
}
244244
245245
.ur-box {
246+
@include github-styles.github-card-shadow;
247+
246248
position: relative;
247249
display: flex;
248250
box-sizing: border-box;
@@ -252,8 +254,6 @@ async function deleteRecord(): Promise<void> {
252254
border-radius: 4px;
253255
background: var(--app-page-bg);
254256
row-gap: 4px;
255-
256-
@include github-styles.github-card-shadow;
257257
}
258258
259259
.dark .ur-box {

0 commit comments

Comments
 (0)