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.
126 lines (110 loc) • 2.08 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: #202124;
}
.avatar-placeholder, .avatar {
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 15px;
display: block;
background-color: #5f6368;
}
.avatar {
display: none;
}
.description {
font-size: 18px;
color: #e8eaed;
}
.subtitle {
font-size: 12px;
margin-bottom: 20px;
color: #9aa0a6;
}
.loading {
text-align: center;
padding: 30px;
border-radius: 8px;
animation: fadein 2s;
width: 400px;
max-width: 90%;
background-color: #303134;
box-shadow: 0 1px 3px rgba(0, 0, 0, 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: #8ab4f8;
}
.jump-url {
font-size: 18px;
display: block;
margin-top: 5px;
margin-bottom: 25px;
padding: 10px 15px;
border-radius: 4px;
border: 1px solid #5f6368;
background-color: #3c4043;
color: #e8eaed;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.countdown-text {
margin-top: 12px;
font-size: 12px;
color: #9aa0a6;
}
.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: #5f6368;
color: #e8eaed;
}
.confirm-button {
background-color: #8ab4f8;
color: #202124;
}
.progress-bar {
width: 100%;
border-radius: 4px;
overflow: hidden;
height: 8px;
margin-top: 20px;
background-color: #5f6368;
}
.progress {
width: 100%;
height: 100%;
transition: width 1s;
background-color: #8ab4f8;
}