Skip to content

Commit

Permalink
[default-layout] Improve CSS for UI consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Oct 6, 2020
1 parent 323179a commit 73b943c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
15 changes: 13 additions & 2 deletions packages/@sanity/default-layout/src/DefaultLayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
left: 0;
right: 0;
bottom: 0;
background: color(var(--gray) alpha(20%));
background: var(--backdrop-color);
pointer-events: none;
opacity: 0;
transition: 150ms opacity ease-in-out;
Expand All @@ -43,11 +43,22 @@
}
}

.navBar {
.navbar {
position: relative;
background-color: var(--main-navigation-color);
color: var(--main-navigation-color--inverted);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);

@nest &::after {
content: '';
display: block;
position: absolute;
left: 0;
right: 0;
bottom: 0;
border-bottom: 1px solid var(--hairline-color);
}
}

.loadingScreen {
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/default-layout/src/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class DefaultLayout extends React.PureComponent<Props, State> {
</div>
)}

<div className={styles.navBar}>
<div className={styles.navbar}>
<NavbarContainer
tools={tools}
createMenuIsOpen={createMenuIsOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
padding: 0;
font-size: inherit;
line-height: calc(17 / 16);
font-weight: 600;
font-weight: 700;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
Expand Down

0 comments on commit 73b943c

Please sign in to comment.