hexo-safego-theme-switcher
Version:
✨ A Hexo plugin for safe external link redirection with base64 encoding, domain whitelisting, and support for a custom redirect page, now with light and dark mode switching.
132 lines (115 loc) • 2.11 kB
CSS
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
font-family: 'Roboto', Arial, sans-serif;
overflow: hidden;
flex-direction: column;
background-color: #f5f5f5;
}
.avatar-placeholder,
.avatar {
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 15px;
display: block;
background-color: #e0e0e0;
}
.avatar {
display: none;
}
.description {
font-size: 18px;
color: #202124;
}
.subtitle {
font-size: 12px;
margin-bottom: 20px;
color: #5f6368;
}
.loading {
text-align: center;
padding: 30px;
border-radius: 8px;
animation: fadein 2s;
width: 400px;
max-width: 90%;
background-color: #ffffff;
box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.content {
margin-bottom: 20px;
}
.url-text {
margin-bottom: 10px;
font-size: 16px;
letter-spacing: 1px;
color: #1a73e8;
}
.jump-url {
font-size: 18px;
display: block;
margin-top: 5px;
margin-bottom: 25px;
padding: 10px 15px;
border-radius: 4px;
border: 1px solid #dadce0;
background-color: #f8f9fa;
color: #202124;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.countdown-text {
margin-top: 12px;
font-size: 12px;
color: #5f6368;
}
.button-container {
display: flex;
justify-content: center;
gap: 10%;
margin-top: 20px;
}
.button {
padding: 10px 20px;
border-radius: 8px;
border: none;
cursor: pointer;
font-size: 16px;
width: 120px;
height: 40px;
}
.cancel-button {
background-color: #e8eaed;
color: #202124;
}
.confirm-button {
background-color: #1a73e8;
color: #ffffff;
}
.progress-bar {
width: 100%;
border-radius: 4px;
overflow: hidden;
height: 8px;
margin-top: 20px;
background-color: #e0e0e0;
}
.progress {
width: 100%;
height: 100%;
transition: width 1s;
background-color: #1a73e8;
}