-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (112 loc) · 2.63 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Major+Mono+Display&display=swap');
/* TUTTO */
.container-fluid {
background-image: url(./res/background_darker.jpg);
font-family: 'Major Mono Display', monospace;
color: white;
}
/* CUBO */
.logo {
max-width: 400px;
margin: auto;
}
body {
perspective: 400px;
perspective-origin: 15rem 5rem;
}
.cube {
width: 10rem;
height: 10rem;
margin: 5rem;
transform-style: preserve-3d;
animation-name: cuberotate;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes cuberotate {
0% {transform: rotateY(0deg) rotateX(0deg);}
100% {transform: rotateY(360deg) rotateX(360deg); }
}
.side {
width: 10rem;
height: 10rem;
background-size: cover;
background-position: center;
opacity: 1;
border: 2px solid white;
background: rgba(0, 0, 0, .65);
background-blend-mode: darken;
font-size: 3rem;
font-family: 'IBM Plex Mono', monospace;
text-align: center;
padding-top: 1.6rem;
}
.side:hover {
border: 4px solid rgb(53, 199, 53);
color: rgb(53, 199, 53);
}
.one {
transform: translateZ(-5rem) rotateY(360deg);
}
.two {
transform: translateY(-15rem) rotateX(90deg);
}
.three {
transform: translateY(-20rem) translateX(5rem) rotateY(90deg);
}
.four {
transform: translateY(-30rem) translateX(-5rem) rotateY(-90deg);
}
.five {
transform: translateY(-35rem) rotateX(-90deg);
}
.six {
transform: translateY(-50rem) translateZ(5rem);
}
/* TITOLO */
.title {
font-size: 36pt;
}
/* SOTTOTITOLO */
.subtitle {
font-size: 20pt;
}
/* CONTENUTO */
.box {
height: 400px;
background-blend-mode: darken;
border: 1px gray solid;
box-shadow: 24px 24px 24px 0 rgb(0, 0, 0);
/* margin: 10px; */
transition: 1s;
}
.box:hover {
box-shadow:
0 0 2px 2px #fff, /* inner white */
0 0 3px 3px #f0f, /* middle magenta */
0 0 4px 4px #0ff; /* outer cyan */
}
.description {
text-align: center;
margin: auto;
padding: 20px;
font-size: 20pt;
}
#me {
background: rgba(0, 0, 0, .65) url('./res/pfp.webp');
background-position: center;
}
#work {
background: rgba(0, 0, 0, 0.3) url('./res/coding.gif');
background-position: center;
}
#social {
background: rgba(0, 0, 0, .65) url('./res/giphy.gif');
background-position: center;
}
#other {
background: rgba(0, 0, 0, .65) url('./res/butterfly.webp');
background-position: center;
}