generated from drawwithcode/P5-empty-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (99 loc) · 1.84 KB
/
style.css
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
@font-face {
font-family: "TexGyreHerosRegular";
src: url("./assets/fonts/texgyreheros-regular.otf") format("opentype");
}
* {
/* behavioral settings */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
/* fonts */
font-family: "TexGyreHerosRegular";
font-size: small;
line-height: 120%;
}
html,
body {
/* position, dimensions */
position: absolute;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
/* behavioral settings */
overflow: hidden;
/* styles, colours */
background-color: black;
}
canvas {
/* behavioral settings */
display: block;
}
.loadingclass {
/* position, dimensions */
position: absolute;
width: 100%;
height: 100%;
/* behavioral settings */
overflow: hidden;
/* styles, colours */
background-color: transparent;
}
#container {
/* position, dimensions */
position: absolute;
width: 100%;
height: 100%;
/* behavioral settings */
display: flex;
align-items: center;
justify-content: center;
}
.header {
/* position, dimensions */
position: absolute;
left: 0;
right: 0;
top: 0;
margin: 0px;
padding: 10px;
/* styles, colours */
background: transparent;
}
.footer {
/* position, dimensions */
position: absolute;
left: 0;
right: 0;
bottom: 0;
margin: 0px;
padding: 10px;
/* styles, colours */
background: transparent;
}
.item {
/* position, dimensions */
border: none;
padding: 5px;
/* behavioral settings */
cursor: pointer;
/* styles, colours */
background: transparent;
color: #808080;
mix-blend-mode: difference;
/* fonts */
text-align: left;
}
.item:hover {
color: white;
}
/* responsiveness */
@media only screen and (max-device-width: 480px) {
.header,
.footer {
/* behavioral settings */
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 0px;
}
}