-
Notifications
You must be signed in to change notification settings - Fork 0
/
button.css
98 lines (83 loc) · 1.68 KB
/
button.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
/* ~~~~~~~ INIT. BTN ~~~~~~~ */
.btn {
color: whitesmoke;
text-decoration: none;
text-align: center;
margin: 2px;
width: 550px;
padding: 10px;
font-size: 24px;
border: 2px solid rgb(82, 188, 126);
display: block;
/* letter-spacing: 0.5rem; */
margin-left: auto;
margin-right: auto;
font-weight: bold;
position: relative;
/* color: var(--inv); */
transition: all 500ms cubic-bezier(0.77, 0, 0.175, 1);
cursor: pointer;
user-select: none;
}
.btn:before, .btn:after {
content: '';
position: absolute;
transition: inherit;
z-index: -1;
}
.btn:hover {
color: var(--def);
transition-delay: .5s;
}
.btn:hover:before {
transition-delay: 0s;
}
.btn:hover:after {
background: var(--inv);
transition-delay: .35s;
}
/* From Left */
.from-left:before,
.from-left:after {
top: -1px;
width: 0;
height: 102%;
}
.from-left:before {
right: 0;
/* border: 3px solid var(--inv); */
border-left: 0;
border-right: 0;
}
.from-left:after {
left: -1px;
}
.from-left:hover:before,
.from-left:hover:after {
width: 100.5%;
}
/* ~~~~~~~~~~~~ GLOBAL SETTINGS ~~~~~~~~~~~~ */
*, *:before, *:after {
box-sizing: border-box;
}
body {
--def: whitesmoke;
--inv: rgb(82, 188, 126);
/*rgb(48, 116, 66)/*
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
/* height: 100vh; */
/* width: 100%; */
/* background-image: linear-gradient(-25deg, #616161 0%, #96B7C4 100%); */
}
html {
/* font-size: 12px; */
font-family: Verdana;
}
#botao {
margin-bottom: 3rem;
margin-top: 3rem;
}
#botao:last-child {margin-bottom: 48px;}