-
Notifications
You must be signed in to change notification settings - Fork 0
/
css.css
93 lines (82 loc) · 1.83 KB
/
css.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
html, body {
margin: 0;
padding: 0;
background: #f5f5f5;
}
.circle-menu {
position: relative;
width: 400px;
height: 400px;
margin: 50px auto;
background: white;
box-shadow: 0 0 3px #ccc;
}
.circle-menu ul {
position: absolute;
width: 300px;
height: 300px;
margin: 50px;
padding: 0;
list-style: none;
border-radius: 50%;
overflow: hidden;
}
.circle-menu .center{
position: absolute;
top: 195px;
left: 195px;
z-index: 1000;
border: 5px solid #34495e;
border-radius: 50%;
box-shadow: 0 0 3px #ccc;
}
.circle-menu li {
position: absolute;
top: -10px;
left: -10px;
width: 160px;
height: 160px;
transform-origin: 100% 100%;
overflow: hidden;
}
.circle-menu li:nth-child(1) {
transform: rotate(0deg) skew(30deg);
}
.circle-menu li:nth-child(2) {
transform: rotate(60deg) skew(30deg);
}
.circle-menu li:nth-child(3) {
transform: rotate(120deg) skew(30deg);
}
.circle-menu li a{
display: block;
width: 160px;
height: 160px;
margin-top: 40px;
margin-left: 40px;
background: rgba(241, 196, 15, 0.5) url('monitor-4x.png') no-repeat 50% 40%;
transform: skew(-30deg) rotate(-60deg);
transition: background-color 0.5s;
}
.circle-menu li:nth-child(even) a {
background-color: rgba(241, 196, 15, 0.75);
}
.circle-menu li a:hover {
background-color: rgba(241, 196, 15, 1);
}
/* Иконки */
.circle-menu li:nth-child(2) a {
background-image: url('aperture-4x.png');
}
.circle-menu li:nth-child(3) a {
background-image: url('audio-4x.png');
}
.circle-menu li:nth-child(4) a {
background-image: url('battery-empty-4x.png');
}
.circle-menu li:nth-child(5) a {
background-image: url('bluetooth-4x.png');
}
.circle-menu li:nth-child(6) a {
background-image: url('browser-4x.png');
}