Skip to content

Commit

Permalink
Add problem list style && Add delete button style (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvw666 committed Sep 7, 2023
1 parent 1f1da88 commit 048ba94
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/ui-default/components/problem/tag.page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
word-break: keep-all
display: flex
flex-wrap: wrap
border-radius: 16px
// background: #8BA5FF

.problem__tag
Expand Down Expand Up @@ -36,7 +35,8 @@
max-width: rem(250px)
line-height: rem($table-lh)
height: rem($table-lh)
// background: #8BA5FF
background: #8BA5FF
border-radius: 16px
color: #fff !important
font-size: 12px
font-weight: 500
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-default/components/table/table.page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
border-top: none

&:nth-child(even)
background: $table-alternate-bg-color
// background: $table-alternate-bg-color

&.highlight
background: lighten($highlight-color, 85%)
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-default/misc/tailwindstylus.styl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
background-color: #888

.bg-red
background-color: #F00
background-color: #F00 !important

.bg-green
background-color: #0F0
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-default/templates/problem_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{{ _('Update') }}
</button>
{% if handler.user.own(pdoc, perm.PERM_EDIT_PROBLEM_SELF) or handler.user.hasPerm(perm.PERM_EDIT_PROBLEM) %}
<button name="operation" value="delete" type="submit" class="rounded button">
<button name="operation" value="delete" type="submit" class="rounded button bg-red text-white">
{{ _('Delete') }}
</button>
{% endif %}
Expand Down

0 comments on commit 048ba94

Please sign in to comment.