-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
88 lines (75 loc) · 1.45 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
* {
margin: 0;
padding: 0;
user-select: none;
box-sizing: border-box;
}
body {
height: 300vh;
background: url(images/bg.jpg);
background-position: center !important;
background-size: cover !important;
background-attachment: fixed !important;
}
section {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
}
section .side {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
section .side#side1 {
background: rgb(82, 182, 43);
clip-path: inset(0 60% 0 0);
display: flex;
align-items: center;
}
section .side#side2 {
background: rgb(245, 14, 33);
clip-path: inset(0 0 0 40%);
}
.herb {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 50px;
left: 50px;
background: url(images/armillary-sphere.png);
background-size: cover;
width: 502px;
height: 502px;
}
.herb img {
width: 275px;
height: 275px;
}
@media screen and (min-width: 300px) and (max-width: 800px) {
section .side#side1 {
clip-path: inset(0 50% 0 0);
}
section .side#side2 {
clip-path: inset(0 0 0 50%);
}
.herb {
position: relative;
top: 1%;
left: 2px;
width: 170px;
height: 170px;
}
.herb img {
width: 105px;
height: 105px;
}
body {
background: url(images/bg2.jpg);
}
}