Skip to content

Commit

Permalink
UI: Tweak the notices design and position
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 28, 2017
1 parent d1ee7a7 commit c575dd5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 0 additions & 4 deletions components/notice/style.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
.components-notice-list {
position: fixed;
top: 40px;
right: 0;
min-width: 300px;
max-width: 550px;
z-index: z-index( ".components-notice-list" );
}
2 changes: 1 addition & 1 deletion editor/edit-post/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ function Layout( { mode, isSidebarOpened } ) {
return (
<div className={ className }>
<DocumentTitle />
<EditorNotices />
<UnsavedChangesWarning />
<AutosaveMonitor />
<Header />
<div className="editor-layout__content" role="region" aria-label={ __( 'Editor content' ) } tabIndex="-1">
<EditorNotices />
<div className="editor-layout__editor">
{ mode === 'text' && <TextEditor /> }
{ mode === 'visual' && <VisualEditor /> }
Expand Down
17 changes: 14 additions & 3 deletions editor/edit-post/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@
position: relative;

.components-notice-list {
position: fixed;
top: 100px;
right: auto;
position: absolute;
top: 0;
left: 0;
right: 0;

.notice {
margin: 0 0 5px;
padding: 6px 12px;
min-height: $panel-header-height;

.notice-dismiss {
margin: 5px;
}
}
}
}

Expand Down

0 comments on commit c575dd5

Please sign in to comment.