-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
69 lines (63 loc) · 1.15 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
body{
overflow: hidden;
font-family: "Open Sans", sans-serif;
color: white;
background: #2d3436;
}
.text-input{
border: 2.2px solid #0984e3;
padding: 6px;
border-radius: 8px;
outline: none;
background: #81ecec;
color: #0984e3;
}
button{
border: none;
display: block;
position: relative;
padding: 0.7em 2.4em;
font-size: 12px;
background: transparent;
cursor: pointer;
user-select: none;
overflow: hidden;
color: royalblue;
z-index: 1;
font-family: inherit;
font-weight: 500;
}
button span{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: transparent;
z-index: -1;
border: 4px solid royalblue;
}
button span::before{
content: "";
display: block;
position: absolute;
width: 8%;
height: 400%;
background: var(--lightgray);
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(-60deg);
transition: all 0.3s;
}
button:hover span::before{
transform: translate(-50%, -50%) rotate(-90deg);
width: 100%;
background: royalblue;
}
button:hover{
color: white;
}
button:active span::before{
background: #2751cd;
}