Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Sticky the editor header on mobile.
  • Loading branch information
jasmussen committed Jun 6, 2017
commit d77ed4a1d31846e51d788fbf27267b177d79618b
5 changes: 4 additions & 1 deletion editor/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
flex-direction: row;
align-items: center;
z-index: z-index( '.editor-header' );
top: $admin-bar-height-big;
left: 0;
right: 0;

top: 0;
position: sticky;

@include break-small() {
top: $admin-bar-height-big;
position: fixed;
}

Expand Down
6 changes: 5 additions & 1 deletion editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
width: 0;
white-space: nowrap;

top: $header-height + $admin-bar-height-big + $item-spacing;
top: $header-height + $item-spacing;

@include break-small() {
top: $header-height + $admin-bar-height-big + $item-spacing;
}

@include break-medium() {
top: $header-height + $admin-bar-height + $item-spacing;
Expand Down