Style undo button

This commit is contained in:
Jason Zimdars
2025-05-06 17:32:45 -05:00
parent 521351da16
commit 10890df97f
3 changed files with 19 additions and 3 deletions
+2
View File
@@ -153,8 +153,10 @@
}
.btn--plain {
--btn-background: transparent;
--btn-border-radius: 0.5em;
--btn-border-size: 0;
--btn-color: inherit;
--btn-icon-size: 100%;
--btn-padding: 0;
--hover-size: 0;
+14
View File
@@ -40,6 +40,20 @@
}
}
.terminal__button {
--btn-color: var(--color-terminal-text);
--btn-border-radius: 1em;
--btn-border-color: var(--color-terminal-text);
--btn-padding: 0.1em 0.7em;
--btn-border-size: 1px;
--hover-color: var(--color-terminal-text);
--hover-size: 2px;
font-family: var(--font-mono);
font-size: var(--text-x-small);
white-space: nowrap;
}
.terminal__link {
--hover-size: 0;
+3 -3
View File
@@ -1,7 +1,7 @@
<li class="min-width overflow-ellipsis flex">
<%= command.title %>
<li class="min-width flex gap-half">
<span class="overflow-ellipsis"><%= command.title %></span>
<% if command.undoable? %>
<%= button_to "Undo", command_undo_path(command), class: "btn btn--remove", data: { turbo_confirm: "Are you sure you want to undo '#{command.title}'?", turbo_frame: "_top" } %>
<%= button_to "Undo", command_undo_path(command), class: "btn btn--plain terminal__button", data: { turbo_confirm: "Are you sure you want to undo '#{command.title}'?", turbo_frame: "_top" } %>
<% end %>
</li>