UNPKG

halo-theme-dream2.0-plus

Version:

梦之城,童话梦境,动漫类型博客主题。

158 lines (141 loc) 3.95 kB
.popup-notice { position: fixed; display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 10000; overscroll-behavior: contain; .countdown { padding: 0.5rem 0.5rem 0; text-align: center; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; align-items: baseline; font-weight: unset; color: var(--main); border-top: 1px solid var(--light-x); &.padding { padding: 25px 1rem 0 !important; } i { color: #FF9800; font-size: 1.15rem; } } #countdown { color: var(--theme); font-weight: bold; } .notice-content { text-align: center; padding: 25px; border-radius: 10px; animation: fadein 0.3s ease-out; width: 400px; max-width: 60%; height: auto; max-height: 400px; border: 2px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2); position: relative; margin: 20px 0; /* 添加上下边距 */ display: flex; flex-direction: column; &::before { content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 10px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%); z-index: -1; } } .others-tip { display: block; padding: 20px; font-size: 1rem; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--main); overflow-y: auto; /* 允许垂直滚动 */ word-wrap: break-word; } .content-title { margin-bottom: 25px; font-size: 1.2rem; font-weight: bold; word-wrap: break-word; color: var(--dark-c); } .others-end { display: flex; justify-content: center; gap: 20%; margin-top: 25px; button { padding: 10px 20px; border-radius: 16px; border: none; cursor: pointer; font-size: 1rem; text-align: center; text-decoration: none; background-color: var(--theme); color: #f8f8f8; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(var(--theme), 0.2); line-height: 1em; &:hover { background: var(--theme); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--theme), 0.3); } } } @keyframes fadein { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @media (max-width: 768px) { .notice-content { width: 75% !important; max-width: 400px !important; } } } .night { .popup-notice { .notice-content { background: rgba(57, 62, 70, 0.6); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); } .others-tip { background: rgba(51, 51, 51, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); } } }