Compare commits

...

1 Commits

Author SHA1 Message Date
2837edef31 improve: css for change order 2024-12-29 19:30:46 +00:00
3 changed files with 25 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ const Footer = () => {
<a href="https://git.hangman-lab.top/hzhang/HangmanLab">git</a>
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;
v0.0.7
v0.0.8
</span>
)}</p>
{

View File

@@ -46,4 +46,23 @@
justify-content: space-between;
align-items: center;
width: 100%;
}
}
.move-forward {
background-color: #c0fff0 !important;
border-color: #c0fbc0 !important;
color: #b0ffa0 !important;
}
.move-forward:hover {
background-color: #a0ffa0;
border-color: #0afb0c;
}
.move-backward {
background-color: #a0a0ff !important;
border-color: #c0c0ff !important;
color: #0af0fc !important;
}
.move-backward:hover {
background-color: #a4a4f0;
border-color: #facaff;
}

View File

@@ -138,14 +138,14 @@ const PathNode = ({ path, isRoot = false }) => {
style={{marginLeft: "0.5rem"}}
>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-forward"
style={{height: "1rem", padding: "0.25rem"}}
onClick={() => handleMovePath(path, "forward")}
type="button"
>
</button>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-backward"
style={{height: "1rem", padding: "0.25rem"}}
onClick={() => handleMovePath(path, "backward")}
type="button"
@@ -177,14 +177,14 @@ const PathNode = ({ path, isRoot = false }) => {
<PermissionGuard rolesRequired={['admin']}>
<div className="control">
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-forward"
style={{ height: "1rem", padding: "0.25rem" }}
onClick={() => handleMoveMarkdown(markdown, "forward")}
type="button"
>
</button>
<button
className="button is-small is-primary mb-1"
className="button is-small mb-1 move-backward"
style={{ height: "1rem", padding: "0.25rem" }}
onClick={() => handleMoveMarkdown(markdown, "backward")}
type="button"