Web:Components:Submenu styling for isMobileOnly.

This commit is contained in:
Vlada Gazizova 2022-05-04 17:52:58 +03:00
parent 813a484d72
commit 85b6c40bf1

View File

@ -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;
}