menu layout style fixed; margin bottom moved to outer component
This commit is contained in:
1 parent
37bb74ac51
commit
1181bd61fd
2 files changed
+13
-9
No files matched your search
@@ -35,7 +35,9 @@ export const App: React.FC<IAppProps> = props => {
|
||||
<Wrapper
|
||||
header={(
|
||||
<header>
|
||||
<Navigation />
|
||||
<Navigation style={{
|
||||
marginBottom: 'var(--size-m)',
|
||||
}} />
|
||||
{hideBreadcrumbs || !props.breadcrumbs ? null : (
|
||||
<Block direction={'horizontal'} style={blockStyle}>
|
||||
<Content wide={wide}>
|
||||
|
||||
@@ -6,6 +6,14 @@
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.menu.desktop {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.menu.mobile {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.menuItem {
|
||||
position: relative;
|
||||
border-top: var(--menu-mark-thickness) solid rgba(0, 0, 0, 0);
|
||||
@@ -14,10 +22,10 @@
|
||||
/* MOBILE */
|
||||
|
||||
.menuItem.mobile {
|
||||
flex-direction: column;
|
||||
|
||||
font-size: 1.25em;
|
||||
color: var(--color-text-opposite);
|
||||
|
||||
padding: var(--size-xs) var(--size-s);
|
||||
}
|
||||
|
||||
.menuItem.mobile.selected {
|
||||
@@ -28,12 +36,6 @@
|
||||
|
||||
.menuItem.desktop {
|
||||
padding: var(--size-xs) var(--size-s);
|
||||
margin-bottom: var(--size-s);
|
||||
margin-right: var(--size-s);
|
||||
}
|
||||
|
||||
.menuItem.desktop:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.menuItem.desktop.selected {
|
||||
|
||||
Reference in new issue
Block a user