Skip to content

Commit 8deb66e

Browse files
committed
Move notices to top of page again
We moved it to the bottom because the publish page button was interfering with the growl messages, but this is too far away. Leaving them in the center but move them to the top again and elevate them so they are in the visible area of sers attention again.
1 parent 5b7cea5 commit 8deb66e

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

app/assets/builds/alchemy/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/builds/alchemy/light-theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/assets/builds/alchemy/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/javascript/alchemy_admin/growler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function build(message, flashType) {
77
${message}
88
</alchemy-message>
99
`)
10-
flashNotices.prepend(flashMessage)
10+
flashNotices.append(flashMessage)
1111
}
1212

1313
export function growl(message, style = "notice") {

app/stylesheets/alchemy/_themes.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@
330330
--dialog-header-color: var(--color-blue_dark);
331331
--dialog-header-text-color: var(--color-white);
332332
--dialog-box-shadow: 0 var(--spacing-2) var(--spacing-4)
333-
hsla(0deg, 0%, 14%, 0.5);
333+
hsla(0deg, 0%, 14%, 0.15);
334334
--dialog-overlay-color: hsla(0deg, 0%, 39%, 0.4);
335335
--dialog-background-color: var(--color-grey_very_light);
336336

app/stylesheets/alchemy/admin/flash.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ div#flash_notices {
44
transform: translateX(50%);
55
z-index: 400000;
66
width: 400px;
7-
bottom: var(--spacing-2);
7+
top: var(--spacing-1);
88

99
alchemy-message {
1010
font-weight: bold;
11-
margin: var(--spacing-1) var(--spacing-1) var(--spacing-2);
11+
margin: var(--spacing-4) 0;
1212
opacity: 0.95;
1313
transition-property: opacity, transform;
14-
transition-duration: 0.4s;
14+
transition-duration: var(--transition-duration);
15+
box-shadow: var(--dialog-box-shadow);
1516

1617
&.dismissed {
1718
display: block;
1819
opacity: 0;
19-
transform: translate3d(0, 100%, 0);
20+
transform: translate3d(0, -100%, 0);
2021
}
2122

2223
&[type="error"] {

0 commit comments

Comments
 (0)