marketing/src/styles/GlobalStyle.ts

74 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-09-02 06:41:12 +00:00
import {createGlobalStyle, css} from 'styled-components';
2026-08-24 10:07:16 +00:00
export const GlobalStyle = createGlobalStyle`
@font-face {
font-family: 'FallbackFont';
src: local('Helvetica');
size-adjust: 98.5%;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto', 'FallbackFont', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
2026-09-02 06:41:12 +00:00
color:#0C3B2E;
2026-08-24 10:07:16 +00:00
}
html {
overflow: hidden;
2026-09-02 06:41:12 +00:00
height: 100%;
2026-08-24 10:07:16 +00:00
}
body {
2026-09-02 06:41:12 +00:00
height: 100%;
2026-08-24 10:07:16 +00:00
background-color: ${({ theme }) => theme.colors.pageBg};
background-image: url('/images/background-raspberry.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: contain;
background-position: left top;
2026-09-05 18:48:01 +00:00
min-height: 100svh;
2026-09-02 06:41:12 +00:00
${({ theme }) => theme.media.mobile(css`
background-position: center 72%;
`)};
}
#root {
2026-09-05 19:34:12 +00:00
height: 100vh;
2026-09-02 06:41:12 +00:00
${({ theme }) => theme.media.mobile(css`
overflow: auto;
`)};
2026-08-24 10:07:16 +00:00
}
button {
-webkit-touch-callout: none;
user-select: none;
}
@keyframes opacityAnim {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
2026-09-04 15:57:54 +00:00
*::placeholder {
font-weight: 300;
font-size: 16px;
}
2026-08-24 10:07:16 +00:00
`;