forked from DustinBrett/daedalOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlobalStyle.ts
More file actions
84 lines (72 loc) · 1.61 KB
/
GlobalStyle.ts
File metadata and controls
84 lines (72 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import * as styled from "styled-components";
const GlobalStyle = styled.createGlobalStyle`
*,
*::before,
*::after {
border: 0;
box-sizing: border-box;
cursor: default;
font-variant-numeric: tabular-nums;
margin: 0;
outline: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
text-rendering: optimizeLegibility;
-webkit-touch-callout: none;
user-select: none;
}
body,
html {
font-family: ${({ theme }) => theme.formats.systemFont};
}
body {
height: 100%;
overflow: hidden;
position: fixed;
text-size-adjust: none;
}
html {
background-color: ${({ theme }) => theme.colors.background};
/* stylelint-disable value-no-vendor-prefix */
height: -webkit-fill-available;
height: -moz-available;
/* stylelint-enable value-no-vendor-prefix */
&::before,
&::after {
background-blend-mode: var(--background-blend-mode);
background-position: center;
content: "";
height: 100%;
position: absolute;
transition: opacity 1.25s ease-in-out;
width: 100%;
z-index: -1;
}
&::before {
background: var(--before-background);
opacity: var(--before-background-opacity);
}
&::after {
background: var(--after-background);
opacity: var(--after-background-opacity);
}
}
input::selection,
textarea::selection {
background-color: rgb(0, 120, 215);
color: #fff;
}
input,
textarea {
cursor: text;
user-select: text;
}
picture > img {
display: block;
}
ol,
ul {
list-style: none;
}
`;
export default GlobalStyle;