ai tags: add buttons for quickly adding and removing tags on the /ai_tags page.

Add "Add" and "Remove" buttons beneath thumbnails on the /ai_tags page.
These let you add the tag to the post if it's correct, or remove it if
it's wrong.
This commit is contained in:
evazion
2022-06-26 00:34:50 -05:00
parent 7b1f6e42c1
commit e5879f0def
10 changed files with 92 additions and 11 deletions

View File

@@ -84,6 +84,27 @@ a, button, input[type="submit"] {
}
}
/* An outlined red button. */
&.button-outline-danger {
@extend %button;
color: var(--button-outline-danger-color);
background-color: transparent;
border: 1px solid var(--button-outline-danger-color);
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
&:hover:not([disabled]) {
color: var(--inverse-text-color);
background-color: var(--button-outline-danger-color);
}
&[disabled] {
color: var(--button-primary-disabled-color);
border: 1px solid var(--button-primary-disabled-color);
}
}
/* A small button. */
&.button-sm {
padding: 0.25em 1em;