mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 07:56:11 +02:00
ui: fix header waves being cut
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
import styled from "styled-components"
|
||||
import styled, { css } from "styled-components"
|
||||
import WavesBottom from "../../images/waves-bot.svg"
|
||||
import WavesTop from "../../images/waves-top.svg"
|
||||
|
||||
export const StyledWavesTop = styled(WavesTop)`
|
||||
const waves = css`
|
||||
opacity: 0.5;
|
||||
width: 100vw;
|
||||
max-width: 100%;
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
`
|
||||
|
||||
export const StyledWavesTop = styled(WavesTop)`
|
||||
${waves};
|
||||
top: 0;
|
||||
`
|
||||
|
||||
export const StyledWavesBottom = styled(WavesBottom)`
|
||||
opacity: 0.5;
|
||||
width: 100vw;
|
||||
max-width: 100%;
|
||||
position: absolute;
|
||||
${waves};
|
||||
bottom: 0;
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user