fix: save button
This commit is contained in:
@@ -32,12 +32,15 @@ $resolveToneClass = static function (string $tone, string $detailActionKind, str
|
||||
if (in_array($normalizedActionKind, ['delete', 'danger', 'purge', 'revoke'], true)) {
|
||||
return 'app-action-danger';
|
||||
}
|
||||
if (in_array($normalizedActionKind, ['save', 'save-close', 'create', 'create-close'], true)) {
|
||||
return 'app-action-success';
|
||||
}
|
||||
|
||||
$normalizedName = strtolower(trim($name));
|
||||
$normalizedValue = strtolower(trim($value));
|
||||
if (
|
||||
$normalizedName === 'action'
|
||||
&& in_array($normalizedValue, ['create', 'create_close', 'save_close'], true)
|
||||
&& in_array($normalizedValue, ['create', 'create_close', 'save', 'save_close'], true)
|
||||
) {
|
||||
return 'app-action-success';
|
||||
}
|
||||
|
||||
@@ -43,12 +43,15 @@ $resolveToneClass = static function (string $tone, string $detailActionKind, str
|
||||
if (in_array($normalizedActionKind, ['delete', 'danger', 'purge', 'revoke'], true)) {
|
||||
return 'app-action-danger';
|
||||
}
|
||||
if (in_array($normalizedActionKind, ['save', 'save-close', 'create', 'create-close'], true)) {
|
||||
return 'app-action-success';
|
||||
}
|
||||
|
||||
$normalizedName = strtolower(trim($name));
|
||||
$normalizedValue = strtolower(trim($value));
|
||||
if (
|
||||
$normalizedName === 'action'
|
||||
&& in_array($normalizedValue, ['create', 'create_close', 'save_close'], true)
|
||||
&& in_array($normalizedValue, ['create', 'create_close', 'save', 'save_close'], true)
|
||||
) {
|
||||
return 'app-action-success';
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
small {
|
||||
--app-font-size: 0.875em;
|
||||
line-height: 1.9;
|
||||
}
|
||||
|
||||
div#debugger-bar {
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
justify-content: space-between;
|
||||
gap: var(--app-sidebar-gap);
|
||||
padding: var(--app-spacing);
|
||||
margin-bottom: var(--app-spacing);
|
||||
}
|
||||
|
||||
.app-sidebar .app-sidebar-tenant-logo a:hover {
|
||||
@@ -177,7 +178,7 @@
|
||||
.app-sidebar a {
|
||||
color: inherit;
|
||||
display: block;
|
||||
padding: 5px var(--app-spacing);
|
||||
padding: 3px var(--app-spacing);
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
border-left: var(--app-sidebar-border-width) solid transparent;
|
||||
@@ -229,6 +230,13 @@
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.app-sidebar
|
||||
.app-sidebar-group
|
||||
details[open]
|
||||
> summary:not([role]):not(:focus) {
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
nav#aside-panel-people {
|
||||
margin-top: var(--app-spacing);
|
||||
}
|
||||
@@ -257,7 +265,7 @@
|
||||
}
|
||||
|
||||
.app-sidebar #aside-panel-admin .app-sidebar-admin-group {
|
||||
margin-bottom: 15px;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -286,5 +294,4 @@
|
||||
aside.app-sidebar li.app-sidebar-group {
|
||||
margin-bottom: var(--app-spacing);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user