This commit is contained in:
59
style.css
59
style.css
@@ -2,8 +2,18 @@ html,
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
||||
font-family:
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
Segoe UI,
|
||||
Roboto,
|
||||
Oxygen,
|
||||
Ubuntu,
|
||||
Cantarell,
|
||||
Fira Sans,
|
||||
Droid Sans,
|
||||
Helvetica Neue,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -38,6 +48,47 @@ a {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 彩虹标题效果 */
|
||||
.title {
|
||||
font-weight: 700;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
#ff3cac,
|
||||
#784ba0,
|
||||
#2b86c5,
|
||||
#00d4ff,
|
||||
#00ff8c,
|
||||
#ffd700,
|
||||
#ff3cac
|
||||
);
|
||||
background-size: 400% 400%;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent; /* for Safari */
|
||||
color: transparent;
|
||||
animation: rainbow 8s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rainbow {
|
||||
0% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
50% {
|
||||
background-position: 100% 50%;
|
||||
}
|
||||
100% {
|
||||
background-position: 0% 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* respect users who prefer reduced motion */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.title {
|
||||
animation: none;
|
||||
background-position: 50% 50% !important;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
margin: 4rem 0;
|
||||
line-height: 1.5;
|
||||
@@ -61,7 +112,9 @@ a {
|
||||
text-decoration: none;
|
||||
border: 1px solid #eaeaea;
|
||||
border-radius: 10px;
|
||||
transition: color 0.15s ease, border-color 0.15s ease;
|
||||
transition:
|
||||
color 0.15s ease,
|
||||
border-color 0.15s ease;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user