-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
98 lines (85 loc) · 1.7 KB
/
style.css
File metadata and controls
98 lines (85 loc) · 1.7 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@import url(https://fonts.googleapis.com/css?family=Oswald:400,700);
.style-titolo {
font-family: 'Oswald', sans-serif;
font-size: 2.5em;
font-weight: 700;
color: #fff;
text-shadow: 0 0 0.5em #000;
text-align: center;
margin-bottom: 1em;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Oswald', sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #434750;
}
ul {
position: relative;
transform: skewY(-15deg);
transition: 0.5s;
}
ul li {
position: relative;
list-style: none;
width: 200px;
background: #3e3f46;
padding: 15px;
z-index: var(--i);
transition: 0.5s;
}
ul li:hover {
background: #33a3ee;
transform: translateX(50px);
}
ul li::before {
content: '';
position: absolute;
top: 0;
left: -40px;
width: 40px;
height: 100%;
background: #2e3133;
transform-origin: right;
transform: skewY(45deg);
transition: 0.5s;
}
ul li:hover::before {
background: #1f5378;
}
ul li::after {
content: '';
position: absolute;
top: -40px;
left: 0;
width: 100%;
height: 40px;
background: #35383e;
transform-origin: bottom;
transform: skewX(45deg);
transition: 0.5s;
}
ul li:hover::after {
background: #2982b9;
}
ul li a {
text-decoration: none;
color: #999;
display: block;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: 0.5s
}
ul li:hover a {
color: #fff;
}
ul li:last-child::after {
box-shadow: -100px 100px 20px rgba(0, 0, 0, 0.25);
}