-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
78 lines (69 loc) · 1.39 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
height: 100vh;
background-image: repeating-radial-gradient(circle, transparent, #84b32f);
}
.center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
perspective: 1000px;
.box {
width: 330px;
height: 480px;
background-image: url(campo.avif);
background-position: center;
background-size: cover;
transition: 1s;
transform: rotateX(70deg);
transform-style: preserve-3d;
color: #000;
&::before {
content: '';
position: absolute;
width: 100.5%;
height: 50px;
background-color: currentColor;
top: -1.5rem;
left: 0;
transform: rotateX(90deg);
}
&::after {
content: '';
position: absolute;
width: 100.3%;
height: 50px;
bottom: -1.5rem;
background-color: currentColor;
transform: rotateX(90deg);
}
.left {
height: 100%;
top: 0px;
background-color: currentColor;
position: absolute;
width: 50px;
left: -25px;
transform: rotateY(90deg);
}
.right {
height: 100%;
top: 0px;
background-color: currentColor;
position: absolute;
width: 50px;
right: -26px;
transform: rotateY(90deg);
}
}
}
@media (width <= 1200px) {
.center {
transform: translate(-50%, -50%) scale(.6);
}
}