Web:Components:Submenu styling for isMobileOnly.
This commit is contained in:
parent
813a484d72
commit
85b6c40bf1
@ -1,6 +1,7 @@
|
||||
import styled from "styled-components";
|
||||
import styled, { css } from "styled-components";
|
||||
|
||||
import { tablet } from "../utils/device";
|
||||
import { isMobileOnly } from "react-device-detect";
|
||||
|
||||
export const StyledSubmenu = styled.div`
|
||||
display: flex;
|
||||
@ -24,6 +25,13 @@ export const StyledSubmenu = styled.div`
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
${isMobileOnly &&
|
||||
css`
|
||||
.sticky {
|
||||
top: 52px;
|
||||
}
|
||||
`}
|
||||
|
||||
.sticky-indent {
|
||||
height: 15px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user