-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (113 loc) · 2.28 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
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.container {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(#e66465, #9198e5);
transition: background 0.2s ease;
}
.btn {
width: 50%;
position: relative;
display: inline-block;
padding: 10px 20px;
text-transform: uppercase;
border: 1px solid #ff6768;
border-radius: 5px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 18px;
color: #263859;
background-color: #6b778d;
cursor: pointer;
overflow: hidden;
transition: 0.3s;
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 2em;
height: 100%;
background-color: rgba(255, 255, 255, 0.3);
transform: translateX(-3.5em) skewX(-45deg);
}
.btn:hover {
color: #6798f2;
background-color: #3f4653;
}
.btn:active {
transform: scale(105%);
}
.btn:hover:before {
animation: moveLight 1s;
}
@keyframes moveLight {
from {
transform: translateX(-3.5em) skewX(-45deg);
}
to {
transform: translateX(10em) skewX(-45deg);
}
}
.block {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
.text {
width: 300px;
display: inline-block;
padding: 10px 28px;
margin-bottom: 20px;
border: 1px solid #17223b;
border-radius: 5px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: transparent;
color: #fff;
outline: transparent;
box-shadow: 0 0 5px 1px #fff;
transition: box-shadow 0.3s;
}
.text--active {
box-shadow: 0 0 5px 1px rgb(80 229 57);
}
.copy_btn {
position: absolute;
top: 6px;
right: 10px;
height: 25px;
width: 25px;
padding: 0;
border: none;
font: inherit;
color: inherit;
background-color: transparent;
cursor: pointer;
outline-color: #ff6768;
}
.copy_mark {
position: absolute;
display: block;
top: 7px;
left: 7px;
width: 20px;
height: 20px;
background-image: url('checkmark.svg');
background-repeat: no-repeat;
background-size: 12px;
opacity: 0;
transition: opacity 0.5s;
}
.copy_mark--active {
opacity: 1;
}
.copy_svg {
fill: rgb(80 229 57);
}