Skip to content

Commit

Permalink
remove unnecessary "span.color .svg {}"
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang committed Mar 21, 2023
1 parent 6d93d55 commit 367ffca
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions web_src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -2420,18 +2420,6 @@ a.ui.basic.label:hover {
height: 2.1666em !important;
}

span.green .svg {
color: var(--color-green);
}

span.red .svg {
color: var(--color-red);
}

span.purple .svg {
color: var(--color-purple);
}

.migrate .svg.gitea-git {
color: var(--color-git);
}
Expand Down
4 changes: 2 additions & 2 deletions web_src/js/components/ActionRunStatus.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<SvgIcon name="octicon-check-circle-fill" class="green" :size="size" :class-name="className" v-if="status === 'success'"/>
<SvgIcon name="octicon-check-circle-fill" class="ui text green" :size="size" :class-name="className" v-if="status === 'success'"/>
<SvgIcon name="octicon-skip" class="ui text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
<SvgIcon name="octicon-clock" class="ui text yellow" :size="size" :class-name="className" v-else-if="status === 'waiting'"/>
<SvgIcon name="octicon-blocked" class="ui text yellow" :size="size" :class-name="className" v-else-if="status === 'blocked'"/>
<SvgIcon name="octicon-meter" class="ui text yellow" :size="size" :class-name="'job-status-rotate ' + className" v-else-if="status === 'running'"/>
<SvgIcon name="octicon-x-circle-fill" class="red" :size="size" v-else/>
<SvgIcon name="octicon-x-circle-fill" class="ui text red" :size="size" v-else/>
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion web_src/js/components/ContextPopup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div v-if="loading" class="ui active centered inline loader"/>
<div v-if="!loading && issue !== null">
<p><small>{{ issue.repository.full_name }} on {{ createdAt }}</small></p>
<p><svg-icon :name="icon" :class="[color]" /> <strong>{{ issue.title }}</strong> #{{ issue.number }}</p>
<p><svg-icon :name="icon" :class="['text', color]" /> <strong>{{ issue.title }}</strong> #{{ issue.number }}</p>
<p>{{ body }}</p>
<div>
<div
Expand Down

0 comments on commit 367ffca

Please sign in to comment.