-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
69 lines (54 loc) · 1.34 KB
/
index.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
:root {
--box-size: 200;
--incline: 10;
--box-size-px: calc(1px * var(--box-size));
--incline-px: calc(var(--box-size-px) / 100 * var(--incline));
--incline-perc: calc(1vw * var(--incline));
--margin-neg: calc(0px - (var(--incline-px) / 2));
}
body {
margin: 0;
}
.box {
background-position: center left;
background-repeat: no-repeat;
background-size: cover;
width: calc(50vw + (var(--incline-perc) / 2));
height: 100vh;
margin: 0;
padding: 0;
}
#container {
width: 100vw;
height: 100vh;
}
#left {
background-image: url("Images/rockmaraton.jpg");
float: left;
clip-path: polygon(0% 0%, calc(100% - var(--incline-perc)) 0%, 100% 100%, 0% 100%);
margin: 0 var(--margin-neg) 0 0;
z-index: 1;
}
#right {
background-image: url("Images/rendezvenynaptar.jpg");
float: right;
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, var(--incline-perc) 100%);
margin: 0 0 0 var(--margin-neg);
z-index: 2;
top: 0;
right: 0;
position: absolute;
}
#divider {
--width-init: calc(100vw / 25);
--width: calc(var(--incline-perc) + var(--width-init));
--left: calc(50vw - (var(--width) / 2));
clip-path: polygon(0% 0%, calc(100% - var(--incline-perc)) 0%, 100% 100%, calc(0% + var(--incline-perc)) 100%);
background-color: rgba(255, 51, 51, 1);
top: 0;
left: var(--left);
width: var(--width);
height: 100vh;
position: absolute;
z-index: 10;
}