-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.css
More file actions
88 lines (69 loc) · 1.73 KB
/
button.css
File metadata and controls
88 lines (69 loc) · 1.73 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
/* Сдесь будут все кнопки и их настройки */
/* логично что это? */
/* .body {
background-color: rgba(161, 120, 120, 0);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: sans-serif;
} */
/* Сама кнопка и размер и тд */
.button {
padding: 20px 20px;
text-transform: uppercase;
color: #fff;
font-size: 23px;
background-color: rgb(66, 66, 66);
border: 2px solid goldenrod;
transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
transition: .3s;
outline: none;
margin-left: 100px;
background-color: rgba(161, 120, 120, 0);
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
}
/* Внутриности кнопки имено фон задний */
button:hover {
background-color: goldenrod;
}
/* анимка? */
button:before, button:after {
position: absolute;
content: "";
width: 20%;
height: 50%;
transition: .3s;
z-index: -1;
}
/* левая нижняя обводка */
button:before {
border-bottom: 5px solid goldenrod;
border-left: 5px solid goldenrod;
top: 60%;
left: -8%;
}
/* правая обводка */
button:after {
border-top: 5px solid goldenrod;
border-right: 5px solid goldenrod;
bottom: 60%;
right: -8%;
}
/* анимация левая нижней обводка */
button:active:before {
top: 70%;
left: -12%;
}
/* анимация правая верхния обводка */
button:active:after {
bottom: 70%;
right: -12%;
}
button:active:before, button:active:after{
width: 30%;
height: 60%;
}