Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 367ffca

Browse files
committedMar 21, 2023
remove unnecessary "span.color .svg {}"
1 parent 6d93d55 commit 367ffca

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed
 

‎web_src/css/base.css

-12
Original file line numberDiff line numberDiff line change
@@ -2420,18 +2420,6 @@ a.ui.basic.label:hover {
24202420
height: 2.1666em !important;
24212421
}
24222422

2423-
span.green .svg {
2424-
color: var(--color-green);
2425-
}
2426-
2427-
span.red .svg {
2428-
color: var(--color-red);
2429-
}
2430-
2431-
span.purple .svg {
2432-
color: var(--color-purple);
2433-
}
2434-
24352423
.migrate .svg.gitea-git {
24362424
color: var(--color-git);
24372425
}

‎web_src/js/components/ActionRunStatus.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
2-
<SvgIcon name="octicon-check-circle-fill" class="green" :size="size" :class-name="className" v-if="status === 'success'"/>
2+
<SvgIcon name="octicon-check-circle-fill" class="ui text green" :size="size" :class-name="className" v-if="status === 'success'"/>
33
<SvgIcon name="octicon-skip" class="ui text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
44
<SvgIcon name="octicon-clock" class="ui text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
55
<SvgIcon name="octicon-blocked" class="ui text yellow" :size="size" :class-name="className" v-else-if="status === 'blocked'"/>
66
<SvgIcon name="octicon-meter" class="ui text yellow" :size="size" :class-name="'job-status-rotate ' + className" v-else-if="status === 'running'"/>
7-
<SvgIcon name="octicon-x-circle-fill" class="red" :size="size" v-else/>
7+
<SvgIcon name="octicon-x-circle-fill" class="ui text red" :size="size" v-else/>
88
</template>
99

1010
<script>

‎web_src/js/components/ContextPopup.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div v-if="loading" class="ui active centered inline loader"/>
44
<div v-if="!loading && issue !== null">
55
<p><small>{{ issue.repository.full_name }} on {{ createdAt }}</small></p>
6-
<p><svg-icon :name="icon" :class="[color]" /> <strong>{{ issue.title }}</strong> #{{ issue.number }}</p>
6+
<p><svg-icon :name="icon" :class="['text', color]" /> <strong>{{ issue.title }}</strong> #{{ issue.number }}</p>
77
<p>{{ body }}</p>
88
<div>
99
<div

0 commit comments

Comments
 (0)
Please sign in to comment.