-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext.html
More file actions
64 lines (54 loc) · 1.93 KB
/
Copy pathtext.html
File metadata and controls
64 lines (54 loc) · 1.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<button class="goHeadBtn">前进</button>
<style>
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:900i&display=swap');
:root {
--border-width: 0.1875em;
}
* {
box-sizing: border-box;
}
body {
/* background: #003; */
margin: 2em;
font-family: 'Source Sans Pro', sans-serif;
text-align: center;
}
.goHeadBtn {
font-family: 'Source Sans Pro', sans-serif;
font-size: 1.25rem;
line-height: 1;
-moz-appearance: none;
-webkit-appearance: none;
vertical-align: middle;
display: inline-block;
color: #fff;
text-transform: uppercase;
font-weight: 900;
font-style: italic;
margin: 0 auto;
padding: 0.75em 1.5em;
background: linear-gradient(199deg, #f24a3e, #fb7f62, #ffad89, #ffd8b1);
background-clip: padding-box, border-box;
background-size: 100% 100%, calc(100% + var(--border-width) + var(--border-width)) calc(100% + var(--border-width) + var(--border-width));
background-position: 0 0, calc(var(--border-width) * -1) calc(var(--border-width) * -1);
border-radius: 0.875em;
border: var(--border-width) solid transparent;
box-shadow: 0 0.125em 0.25em #fb7f62, 0 0 2em #ffd8b1;
cursor: pointer;
transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
&:hover {
box-shadow: 0 0.25em 0.75em #f24a3e, 0 0.125em 2em #ffad89;
transform: translateY(-0.125em);
}
}
</style>
</body>
</html>