-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchipped.html
155 lines (140 loc) · 3.16 KB
/
chipped.html
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
<style>
body{
background-color: #000;
}
.container{
margin: 100px;
}
.chipped-button{
display: flex;
border-width: 1px;
border-style: solid;
padding: 10px;
}
.chipped-button button{
height: 30px;
border: 1px solid #25859f;
background-color: #25859f;
outline:none;
}
.triangle__top-left {
display:block;
width: 0px;
height: 0px;
border-style: solid;
border-width: 30px 30px 0 0;
border-color: #25859f transparent transparent transparent;
margin: 0px 0 0 0;
}
.triangle__top-right {
display:block;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 30px 30px 0;
border-color: transparent #25859f transparent transparent;
margin: 0px 0 0 -30px;
position: relative;
display: block;
}
.triangle__bottom-right {
display:block;
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 0 30px 30px;
border-color: transparent transparent #25859f transparent;
margin: 0px 0 0 -17px;
}
.triangle__bottom-left {
display:block;
width: 0px;
height: 0px;
border-style: solid;
border-width: 30px 0 0 30px;
border-color: transparent transparent transparent #25859f;
margin: 0px 0 0 0px;
}
.circle{
border-radius: 50%;
margin: auto;
box-sizing: border-box;
}
.circle1 {
left: 50%;
width: 100px;
height: 100px;
display: inline-block;
position: relative;
border: 12px solid;
border-color: #0000FF #0000FF transparent transparent;
animation: rotation 1.5s linear infinite;
}
.circle2, .circle3 {
box-sizing: border-box;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transform-origin: center center;
}
.circle2 {
width: 80px;
height: 80px;
border: 10px solid;
border-color: #0000FF #0000FF transparent transparent;
animation: rotation 1.5s linear infinite;
}
.circle3 {
width: 50px;
height: 50px;
border: 6px solid;
border-color: cyan cyan transparent transparent;
animation: rotationBack 0.5s linear infinite;
}
@keyframes rotation {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes rotationBack {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="chipped-button" style="border-color: blue;">
<button>triangle__top-left</button>
<div class="triangle__top-left"></div>
</div>
<div class="chipped-button" style="border-color:green;">
<div class="triangle__top-right"></div>
<button>triangle__top-right</button>
</div>
<div class="chipped-button" style="border-color:red;">
<div class="triangle__bottom-right"></div>
<button>triangle__bottom-right</button>
</div>
<div class="chipped-button" style="border-color:yellow;">
<button>triangle__bottom-left</button>
<div class="triangle__bottom-left"></div>
</div>
</div>
<div class="circle circle1">
<div class="circle circle2"></div>
<div class="circle circle3"></div>
</div>
</body>
</html>