forked from PavelDoGreat/WebGL-Fluid-Simulation
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfluid-overlay-styles.css
More file actions
83 lines (76 loc) · 1.75 KB
/
fluid-overlay-styles.css
File metadata and controls
83 lines (76 loc) · 1.75 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
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
user-select: none; /* prevents all text from being selected */
}
html,
body {
margin: 0;
padding: 0;
height: auto; /* let body grow with content */
background-color: #ffffff;
overflow: auto; /* allow scrolling */
}
/* The animated region */
canvas {
width: 100%;
height: 100vh; /* full viewport height */
display: block;
position: relative; /* allow content below the canvas */
z-index: 0;
}
/* The main heading of the website in the centre of the animation */
.overlay-heading {
font-family: "Segoe UI", "Open Sans", "Helvetica Neue", sans-serif;
font-weight: bold;
margin: 0;
position: absolute;
text-align: center;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgb(0, 0, 0);
font-size: 75px;
z-index: 1; /* above canvas */
pointer-events: none; /* this is important as it ensures that the effect works under the heading */
}
/* Content below the animation canvas */
.page-content {
padding: 20px;
color: black;
background-color: transparent;
}
.read_me {
display: inline-block;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.5);
color: #000000;
font-family: "Segoe UI", "Open Sans", "Helvetica Neue", sans-serif;
text-decoration: none;
border-radius: 6px;
font-weight: bold;
z-index: 1;
position: fixed;
bottom: 20px;
left: 20px;
border-radius: 50px;
cursor: pointer;
overflow: hidden;
backdrop-filter: blur(10px);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
/* Landscape orientation */
@media (orientation: landscape) {
.overlay-heading {
font-size: 6vw;
}
}
/* Portrait orientation */
@media (orientation: portrait) {
.overlay-heading {
font-size: 12vw;
}
}