mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -05:00
fix(details): fixed for glass header
This commit is contained in:
parent
675992bbc1
commit
672b657f58
1 changed files with 8 additions and 1 deletions
|
@ -1,13 +1,20 @@
|
||||||
import styled, { css } from "styled-components";
|
import styled, { css } from "styled-components";
|
||||||
|
|
||||||
|
import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice";
|
||||||
|
|
||||||
export default styled.details<{ sticky?: boolean; large?: boolean }>`
|
export default styled.details<{ sticky?: boolean; large?: boolean }>`
|
||||||
summary {
|
summary {
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.sticky &&
|
props.sticky &&
|
||||||
css`
|
css`
|
||||||
top: -1px;
|
top: 48px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
${() =>
|
||||||
|
isTouchscreenDevice &&
|
||||||
|
css`
|
||||||
|
top: 56px;
|
||||||
|
`}
|
||||||
`}
|
`}
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
|
|
Loading…
Reference in a new issue