# Conflicts: # craft/src/state/NoticeContext.tsx # craft/src/styles/editor.css
This commit is contained in:
commit
2180f9a776
16 files changed
+847
-228
No files matched your search
@@ -2143,3 +2143,44 @@ body {
|
||||
.topbar-command-item:disabled { opacity: 0.45; cursor: default; }
|
||||
.topbar-command-shortcut { font-size: 12px; opacity: 0.6; }
|
||||
.topbar-command-empty { padding: 8px 10px; font-size: 12px; opacity: 0.6; }
|
||||
/* Notice stack (state/NoticeContext + editor/NoticeHost): bottom-left, so it
|
||||
never collides with TopBar's bottom-right ErrorNotice. */
|
||||
.notice-host {
|
||||
position: fixed;
|
||||
left: 16px;
|
||||
bottom: 16px;
|
||||
z-index: 60;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-width: min(420px, calc(100vw - 32px));
|
||||
}
|
||||
.notice-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 12px;
|
||||
font-size: 12px;
|
||||
color: var(--color-text);
|
||||
background: var(--color-bg-elevated);
|
||||
border: 1px solid var(--color-border);
|
||||
border-left: 3px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
.notice-item.success { border-left-color: var(--color-success); }
|
||||
.notice-item.error { border-left-color: var(--color-danger); }
|
||||
.notice-text { flex: 1; word-break: break-word; }
|
||||
.notice-action, .notice-dismiss {
|
||||
background: none;
|
||||
border: none;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
padding: 0 4px;
|
||||
}
|
||||
.notice-action { font-weight: 600; text-decoration: underline; }
|
||||
@media (max-width: 768px) {
|
||||
.notice-host {
|
||||
bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px) + 12px);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user