⭐前言:
给你的子比主题加上一个好看的文章过期提示
使用方法:
第一步:在 functions.php 中添加过期提示函数
将以下代码添加到您的子比主题 functions.php 文件末尾(或子主题的 functions.php):
记得修改你自己的信息
第二步:在子比后台处-自定义CSS样式添加CSS样式
🧩样式:
风格一:极简线性边框
CSS代码:
/* 极简线性边框风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
padding: 12px 16px;
margin-bottom: 25px;
border-left: 4px solid #ff9800;
background: transparent;
border-radius: 0;
box-shadow: none;
transition: border-color 0.2s;
}
.article-timeout-notice:hover {
border-left-color: #e65100;
}
.timeout-icon {
font-size: 20px;
color: #ff9800;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.5;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #555;
}
.timeout-body code {
background: #f5f5f5;
padding: 2px 8px;
border-radius: 3px;
color: #c7791e;
font-weight: 600;
}
.timeout-body a {
color: #ff7e00;
font-weight: 600;
}
风格二:彩色徽章 + 柔和底色
/* 彩色徽章 + 柔和底色风格 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
background: #fef9f0;
padding: 18px 20px 14px 20px;
margin-bottom: 25px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(255, 152, 0, 0.12);
border: 1px solid #ffe0b2;
}
/* 徽章 */
.article-timeout-notice::before {
content: "🔄 提示";
position: absolute;
top: -10px;
left: 20px;
background: #ff9800;
color: #fff;
font-size: 12px;
font-weight: 700;
padding: 2px 14px;
border-radius: 20px;
letter-spacing: 0.5px;
box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}
.timeout-icon {
display: none; /* 隐藏原有图标,用徽章替代 */
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #4e342e;
margin-top: 8px;
}
.timeout-body code {
background: rgba(255, 152, 0, 0.15);
padding: 2px 10px;
border-radius: 4px;
color: #bf6a00;
font-weight: 600;
}
.timeout-body a {
color: #e65100;
font-weight: 600;
text-decoration: none;
}
.timeout-body a:hover {
text-decoration: underline;
}
风格三:卡片毛玻璃效果
/* 毛玻璃卡片风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid rgba(255, 152, 0, 0.2);
border-radius: 16px;
padding: 18px 22px;
margin-bottom: 25px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
transition: all 0.3s ease;
}
.article-timeout-notice:hover {
box-shadow: 0 12px 32px rgba(255, 152, 0, 0.15);
border-color: #ffb74d;
}
.timeout-icon {
font-size: 28px;
color: #ff9800;
margin-right: 18px;
flex-shrink: 0;
line-height: 1.2;
}
.timeout-body {
font-size: 15px;
line-height: 1.7;
color: #3e3e3e;
}
.timeout-body code {
background: rgba(255, 152, 0, 0.2);
padding: 3px 10px;
border-radius: 6px;
color: #b85e00;
font-weight: 600;
}
.timeout-body a {
color: #ff6f00;
font-weight: 600;
border-bottom: 1px dashed rgba(255, 111, 0, 0.3);
text-decoration: none;
}
.timeout-body a:hover {
border-bottom-color: #ff6f00;
}
风格四:时间线式
/* 时间线式 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
padding: 16px 20px 16px 32px;
margin-bottom: 30px;
background: #fafafa;
border-radius: 0;
border-left: none;
box-shadow: none;
}
.article-timeout-notice::before {
content: '';
position: absolute;
left: 12px;
top: 8px;
bottom: 8px;
width: 2px;
background: #d4a373;
border-radius: 2px;
}
.article-timeout-notice::after {
content: '';
position: absolute;
left: 8px;
top: 16px;
width: 10px;
height: 10px;
background: #d4a373;
border-radius: 50%;
border: 2px solid #fafafa;
box-shadow: 0 0 0 2px #d4a373;
}
.timeout-icon {
font-size: 18px;
color: #b08968;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.6;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #4a3b32;
}
.timeout-body code {
background: #efe5dc;
padding: 2px 8px;
border-radius: 3px;
color: #7f5a3c;
}
.timeout-body a {
color: #b08968;
font-weight: 600;
border-bottom: 1px dotted #d4a373;
text-decoration: none;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
风格五:霓虹警告灯
/* 霓虹警告灯风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #1a1a1a;
border: 2px solid #ff4444;
border-radius: 12px;
padding: 16px 22px;
margin-bottom: 25px;
box-shadow: 0 0 20px rgba(255, 68, 68, 0.3), inset 0 0 15px rgba(255, 68, 68, 0.05);
animation: neon-pulse 2s infinite alternate;
}
@keyframes neon-pulse {
0% { border-color: #ff4444; box-shadow: 0 0 20px rgba(255,68,68,0.3); }
100% { border-color: #ff8800; box-shadow: 0 0 35px rgba(255,136,0,0.6); }
}
.timeout-icon {
font-size: 28px;
color: #ff4444;
margin-right: 18px;
flex-shrink: 0;
line-height: 1.2;
animation: icon-blink 1.2s infinite;
}
@keyframes icon-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.timeout-body {
font-size: 15px;
line-height: 1.7;
color: #eee;
}
.timeout-body code {
background: rgba(255, 68, 68, 0.25);
padding: 2px 10px;
border-radius: 4px;
color: #ff8888;
font-weight: 600;
}
.timeout-body a {
color: #ffaa66;
font-weight: 600;
text-decoration: underline wavy rgba(255, 170, 102, 0.4);
}
.timeout-body a:hover {
text-decoration-color: #ffaa66;
}
风格六:折叠便签纸
/* 折叠便签纸风格 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
background: #fffae6;
padding: 18px 22px 14px 22px;
margin-bottom: 30px;
border-radius: 0 0 0 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.04);
border: 1px solid #f0e5c6;
}
.article-timeout-notice::before {
content: '';
position: absolute;
top: 0;
right: 0;
border-top: 30px solid #f0e5c6;
border-right: 30px solid transparent;
border-left: 0 solid transparent;
border-bottom: 0 solid transparent;
border-radius: 0 0 0 12px;
}
.article-timeout-notice::after {
content: '';
position: absolute;
top: 4px;
right: 4px;
border-top: 26px solid #fffae6;
border-right: 26px solid transparent;
border-left: 0 solid transparent;
border-bottom: 0 solid transparent;
border-radius: 0 0 0 10px;
}
.timeout-icon {
font-size: 22px;
color: #c9a86c;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #5a4e3c;
font-family: 'Georgia', serif;
}
.timeout-body code {
background: #f5edd9;
padding: 2px 8px;
border-radius: 2px;
font-family: 'Georgia', serif;
color: #8b7355;
}
.timeout-body a {
color: #b8860b;
font-weight: 600;
text-decoration: none;
border-bottom: 1px dashed #d4b68a;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
风格七:科技感数据面板
/* 科技感数据面板风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 8px;
padding: 16px 20px;
margin-bottom: 25px;
box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
font-family: 'Fira Code', 'Consolas', monospace;
}
.timeout-icon {
font-size: 22px;
color: #58a6ff;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.5;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #c9d1d9;
}
.timeout-body code {
background: #21262d;
padding: 2px 10px;
border-radius: 4px;
color: #f0883e;
font-weight: 400;
font-size: 13px;
}
.timeout-body a {
color: #58a6ff;
font-weight: 400;
text-decoration: none;
border-bottom: 1px dotted #58a6ff;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
风格八:极简空气泡
/* 极简空气泡风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #f2f6fc;
border-radius: 30px 30px 30px 8px;
padding: 14px 24px;
margin-bottom: 20px;
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.timeout-icon {
font-size: 20px;
color: #7b8fa1;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.6;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #334e68;
}
.timeout-body code {
background: #e1e8f0;
padding: 2px 10px;
border-radius: 20px;
color: #2c3e50;
font-weight: 500;
}
.timeout-body a {
color: #3b6ea5;
font-weight: 500;
text-decoration: none;
}
.timeout-body a:hover {
text-decoration: underline;
}
风格九:渐变色大边框
/* 渐变色大边框风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 16px;
padding: 18px 26px;
margin-bottom: 30px;
box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}
.timeout-icon {
font-size: 30px;
color: rgba(255,255,255,0.9);
margin-right: 20px;
flex-shrink: 0;
line-height: 1.2;
}
.timeout-body {
font-size: 15px;
line-height: 1.8;
color: #fff;
}
.timeout-body code {
background: rgba(255,255,255,0.2);
padding: 2px 12px;
border-radius: 6px;
color: #fff;
font-weight: 600;
}
.timeout-body a {
color: #ffd54f;
font-weight: 600;
text-decoration: none;
border-bottom: 2px solid rgba(255, 213, 79, 0.3);
}
.timeout-body a:hover {
border-bottom-color: #ffd54f;
}
风格十:日系和风
/* 日系和风 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #fcf8f0;
background-image:
linear-gradient(0deg, transparent 24%, rgba(210, 180, 140, 0.08) 25%, rgba(210, 180, 140, 0.08) 26%, transparent 27%, transparent 74%, rgba(210, 180, 140, 0.08) 75%, rgba(210, 180, 140, 0.08) 76%, transparent 77%),
linear-gradient(90deg, transparent 24%, rgba(210, 180, 140, 0.08) 25%, rgba(210, 180, 140, 0.08) 26%, transparent 27%, transparent 74%, rgba(210, 180, 140, 0.08) 75%, rgba(210, 180, 140, 0.08) 76%, transparent 77%);
background-size: 40px 40px;
border: 1px solid #e6d8c5;
border-radius: 4px;
padding: 18px 22px;
margin-bottom: 28px;
box-shadow: 0 2px 4px rgba(0,0,0,0.02), inset 0 0 30px rgba(210, 180, 140, 0.1);
position: relative;
}
.article-timeout-notice::before {
content: '✽';
position: absolute;
top: -8px;
left: 20px;
color: #b8a08a;
font-size: 22px;
background: #fcf8f0;
padding: 0 6px;
}
.timeout-icon {
font-size: 20px;
color: #a68b77;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.6;
}
.timeout-body {
font-size: 14px;
line-height: 1.9;
color: #4d3e33;
font-family: 'Georgia', 'Hiragino Mincho ProN', serif;
}
.timeout-body code {
background: #ede5d8;
padding: 2px 10px;
border-radius: 2px;
color: #7f6652;
font-family: inherit;
}
.timeout-body a {
color: #b8860b;
font-weight: 600;
text-decoration: none;
border-bottom: 1px dotted #d4b896;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
风格十一:杂志卡片
/* 杂志卡片风格 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
background: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 22px 24px 18px 24px;
margin-bottom: 30px;
box-shadow: 0 4px 12px rgba(0,0,0,0.04);
transition: box-shadow 0.3s;
}
.article-timeout-notice:hover {
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.article-timeout-notice::before {
content: '⏳ 信息更新';
position: absolute;
top: -12px;
left: 20px;
background: #ff6b6b;
color: #fff;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.5px;
padding: 3px 16px;
border-radius: 20px;
box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}
.timeout-icon {
font-size: 24px;
color: #ff6b6b;
margin-right: 18px;
flex-shrink: 0;
line-height: 1.3;
margin-top: 4px;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #333;
}
.timeout-body code {
background: #f0f0f0;
padding: 2px 10px;
border-radius: 6px;
color: #d63031;
font-weight: 600;
}
.timeout-body a {
color: #e17055;
font-weight: 600;
text-decoration: none;
border-bottom: 1px solid rgba(225, 112, 85, 0.2);
}
.timeout-body a:hover {
border-bottom-color: #e17055;
}
风格十二:立体浮雕
/* 立体浮雕风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: linear-gradient(145deg, #ececec, #f5f5f5);
border-radius: 16px;
padding: 18px 24px;
margin-bottom: 28px;
box-shadow:
8px 8px 16px #d1d1d1,
-8px -8px 16px #ffffff,
inset 2px 2px 4px #ffffff,
inset -2px -2px 4px #d1d1d1;
border: none;
}
.timeout-icon {
font-size: 26px;
color: #7f8c8d;
margin-right: 18px;
flex-shrink: 0;
line-height: 1.3;
text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #2c3e50;
}
.timeout-body code {
background: #dfe6e9;
padding: 2px 12px;
border-radius: 8px;
color: #d35400;
font-weight: 600;
box-shadow: inset 1px 1px 2px #bdc3c7, inset -1px -1px 2px #fff;
}
.timeout-body a {
color: #2980b9;
font-weight: 600;
text-decoration: none;
border-bottom: 2px solid #bdc3c7;
transition: border-color 0.2s;
}
.timeout-body a:hover {
border-bottom-color: #2980b9;
}
风格十三:极简圆点装饰
/* 极简圆点装饰 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
padding: 14px 16px 14px 20px;
margin-bottom: 22px;
background: transparent;
border-left: 0;
border-radius: 0;
box-shadow: none;
position: relative;
}
.article-timeout-notice::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 6px;
height: 6px;
background: #cbd5e1;
border-radius: 50%;
box-shadow:
0 12px 0 #cbd5e1,
0 -12px 0 #cbd5e1;
}
.timeout-icon {
font-size: 18px;
color: #94a3b8;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.6;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #475569;
}
.timeout-body code {
background: #f1f5f9;
padding: 2px 8px;
border-radius: 4px;
color: #64748b;
font-weight: 500;
}
.timeout-body a {
color: #3b82f6;
font-weight: 500;
text-decoration: none;
}
.timeout-body a:hover {
text-decoration: underline;
}
风格十四:动态渐变背景-推广!
/* 动态渐变背景 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: linear-gradient(-45deg, #ffecd2, #fcb69f, #ffecd2, #a1c4fd);
background-size: 400% 400%;
animation: gradientShift 8s ease infinite;
border-radius: 16px;
padding: 18px 24px;
margin-bottom: 28px;
box-shadow: 0 8px 20px rgba(252, 182, 159, 0.25);
border: none;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.timeout-icon {
font-size: 26px;
color: rgba(255,255,255,0.9);
margin-right: 18px;
flex-shrink: 0;
line-height: 1.3;
text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.timeout-body {
font-size: 15px;
line-height: 1.8;
color: #2d1b14;
font-weight: 500;
}
.timeout-body code {
background: rgba(255,255,255,0.4);
padding: 2px 12px;
border-radius: 8px;
color: #4a2518;
font-weight: 700;
backdrop-filter: blur(4px);
}
.timeout-body a {
color: #fff;
font-weight: 700;
text-decoration: none;
border-bottom: 2px solid rgba(255,255,255,0.4);
}
.timeout-body a:hover {
border-bottom-color: #fff;
}
风格十五:拟物化信封
/* 拟物化信封 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
background: #fbf7f0;
border: 2px solid #dac5a6;
border-radius: 6px;
padding: 20px 24px 16px 24px;
margin-bottom: 30px;
box-shadow:
0 4px 0 #b8a084,
0 6px 12px rgba(0,0,0,0.06);
}
.article-timeout-notice::before {
content: '✉';
position: absolute;
top: -14px;
right: 20px;
font-size: 28px;
background: #fbf7f0;
padding: 0 6px;
color: #b8a084;
}
.article-timeout-notice::after {
content: '';
position: absolute;
bottom: 0;
left: 20px;
right: 20px;
height: 2px;
background: repeating-linear-gradient(90deg, #dac5a6, #dac5a6 6px, transparent 6px, transparent 10px);
}
.timeout-icon {
font-size: 22px;
color: #b8a084;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #4a3e32;
}
.timeout-body code {
background: #e9dfd2;
padding: 2px 10px;
border-radius: 3px;
color: #8b7355;
}
.timeout-body a {
color: #a67c52;
font-weight: 600;
text-decoration: none;
border-bottom: 1px dotted #dac5a6;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
风格十六:柔和呼吸光晕
/* 柔和呼吸光晕 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 215, 0, 0.3);
border-radius: 20px;
padding: 18px 24px;
margin-bottom: 28px;
box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
0%, 100% { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1), 0 0 0 0 rgba(255, 215, 0, 0.05); }
50% { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25), 0 0 20px 8px rgba(255, 215, 0, 0.08); }
}
.timeout-icon {
font-size: 24px;
color: #f0a500;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
}
.timeout-body {
font-size: 15px;
line-height: 1.7;
color: #333;
}
.timeout-body code {
background: rgba(255, 215, 0, 0.15);
padding: 2px 10px;
border-radius: 6px;
color: #b87c00;
}
.timeout-body a {
color: #e69500;
font-weight: 600;
text-decoration: none;
border-bottom: 1px solid rgba(230, 149, 0, 0.3);
}
.timeout-body a:hover {
border-bottom-color: #e69500;
}
/* 移动端适配 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 14px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
line-height: 1.6;
}
}
风格十七:呼吸渐变边框
/* 呼吸渐变边框 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #0d0d0d;
border-radius: 16px;
padding: 18px 24px;
margin-bottom: 28px;
position: relative;
border: 2px solid transparent;
background-clip: padding-box;
box-shadow: 0 0 20px rgba(0,0,0,0.6);
}
.article-timeout-notice::before {
content: '';
position: absolute;
inset: -2px;
border-radius: 16px;
padding: 2px;
background: conic-gradient(from 0deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
animation: borderSpin 6s linear infinite, borderPulse 2s ease-in-out infinite;
}
@keyframes borderSpin {
to { transform: rotate(360deg); }
}
@keyframes borderPulse {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
.timeout-icon {
font-size: 24px;
color: #ffd93d;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
z-index: 1;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #eee;
z-index: 1;
}
.timeout-body code {
background: rgba(255,255,255,0.08);
padding: 2px 10px;
border-radius: 4px;
color: #ffd93d;
}
.timeout-body a {
color: #6bcb77;
font-weight: 600;
text-decoration: none;
border-bottom: 1px dotted #6bcb77;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
/* 移动端适配 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 12px;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格十八:气泡呼吸-推广!
/* 气泡呼吸风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: rgba(230, 242, 255, 0.7);
backdrop-filter: blur(6px);
border: 1px solid rgba(100, 149, 237, 0.25);
border-radius: 50px;
padding: 14px 24px;
margin-bottom: 25px;
box-shadow: 0 4px 12px rgba(100, 149, 237, 0.08);
animation: breatheBubble 4s ease-in-out infinite;
}
@keyframes breatheBubble {
0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(100,149,237,0.08); }
50% { transform: scale(1.02); box-shadow: 0 8px 24px rgba(100,149,237,0.2); }
}
.timeout-icon {
font-size: 22px;
color: #4d7cdb;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.5;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #1a2a4a;
}
.timeout-body code {
background: rgba(77, 124, 219, 0.12);
padding: 2px 10px;
border-radius: 20px;
color: #2a5bbf;
}
.timeout-body a {
color: #3a6fd1;
font-weight: 600;
text-decoration: none;
}
.timeout-body a:hover {
text-decoration: underline;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 12px 18px;
border-radius: 30px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 18px;
margin-right: 10px;
}
.timeout-body {
font-size: 13px;
}
}
风格十九:呼吸阴影浮动
/* 浮动呼吸阴影 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #ffffff;
border-radius: 18px;
padding: 18px 24px;
margin-bottom: 30px;
box-shadow: 0 8px 20px rgba(0,0,0,0.04);
border: 1px solid #eceff1;
transition: all 0.3s;
animation: floatShadow 4s ease-in-out infinite;
}
@keyframes floatShadow {
0%, 100% { transform: translateY(0px); box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
50% { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
}
.timeout-icon {
font-size: 24px;
color: #ff7043;
margin-right: 18px;
flex-shrink: 0;
line-height: 1.3;
}
.timeout-body {
font-size: 14px;
line-height: 1.8;
color: #37474f;
}
.timeout-body code {
background: #f5f5f5;
padding: 2px 10px;
border-radius: 6px;
color: #e64a19;
}
.timeout-body a {
color: #ff5722;
font-weight: 600;
text-decoration: none;
border-bottom: 2px solid #ffccbc;
}
.timeout-body a:hover {
border-bottom-color: #ff5722;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 14px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十:暗色系呼吸渐变
/* 暗色呼吸渐变 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
background-size: 200% 200%;
animation: darkGradient 8s ease infinite;
border-radius: 16px;
padding: 18px 24px;
margin-bottom: 28px;
box-shadow: 0 8px 24px rgba(0,0,0,0.5);
border: 1px solid rgba(255,255,255,0.05);
}
@keyframes darkGradient {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.timeout-icon {
font-size: 24px;
color: #e94560;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
text-shadow: 0 0 15px rgba(233,69,96,0.3);
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #e0e0e0;
}
.timeout-body code {
background: rgba(255,255,255,0.06);
padding: 2px 10px;
border-radius: 4px;
color: #ff6b81;
}
.timeout-body a {
color: #ffd93d;
font-weight: 600;
text-decoration: none;
border-bottom: 1px solid rgba(255,217,61,0.2);
}
.timeout-body a:hover {
border-bottom-color: #ffd93d;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 12px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十一:多彩呼吸线框
/* 多彩呼吸线框 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #1e1e2f;
border: 2px solid;
border-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b) 1;
border-image-slice: 1;
border-radius: 12px;
padding: 18px 24px;
margin-bottom: 28px;
animation: borderBreathe 3s ease-in-out infinite;
}
@keyframes borderBreathe {
0%, 100% { border-image: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b) 1; opacity: 0.7; }
50% { border-image: linear-gradient(225deg, #ff9ff3, #48dbfb, #feca57, #ff6b6b, #ff9ff3) 1; opacity: 1; }
}
.timeout-icon {
font-size: 24px;
color: #feca57;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #eee;
}
.timeout-body code {
background: rgba(255,255,255,0.06);
padding: 2px 10px;
border-radius: 4px;
color: #feca57;
}
.timeout-body a {
color: #48dbfb;
font-weight: 600;
text-decoration: none;
border-bottom: 1px dotted #48dbfb;
}
.timeout-body a:hover {
border-bottom-style: solid;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 10px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十二:柔和霓虹(粉紫调)
/* 柔和霓虹粉紫 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: linear-gradient(-45deg, #ffdde1, #ee9ca7, #d6a4c4, #b8a9c9);
background-size: 300% 300%;
animation: softNeon 6s ease infinite;
border-radius: 20px;
padding: 18px 24px;
margin-bottom: 28px;
box-shadow: 0 8px 24px rgba(238, 156, 167, 0.3);
border: none;
}
@keyframes softNeon {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.timeout-icon {
font-size: 26px;
color: rgba(255,255,255,0.9);
margin-right: 18px;
flex-shrink: 0;
line-height: 1.3;
text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.timeout-body {
font-size: 15px;
line-height: 1.8;
color: #2d1b2b;
font-weight: 500;
}
.timeout-body code {
background: rgba(255,255,255,0.3);
padding: 2px 12px;
border-radius: 10px;
color: #6b2e5a;
backdrop-filter: blur(2px);
}
.timeout-body a {
color: #fff;
font-weight: 700;
text-decoration: none;
border-bottom: 2px solid rgba(255,255,255,0.4);
}
.timeout-body a:hover {
border-bottom-color: #fff;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 16px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 22px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十三:简约呼吸下划线-推广
/* 简约呼吸下划线 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: transparent;
padding: 8px 0 16px 0;
margin-bottom: 20px;
border-bottom: 2px solid #e0e0e0;
position: relative;
}
.article-timeout-notice::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
background-size: 300% 100%;
animation: lineBreathe 4s ease infinite;
}
@keyframes lineBreathe {
0%, 100% { background-position: 0% 0%; width: 60%; }
50% { background-position: 100% 0%; width: 100%; }
}
.timeout-icon {
font-size: 20px;
color: #ff6b6b;
margin-right: 14px;
flex-shrink: 0;
line-height: 1.5;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #333;
}
.timeout-body code {
background: #f5f5f5;
padding: 2px 8px;
border-radius: 3px;
color: #d63031;
}
.timeout-body a {
color: #0984e3;
font-weight: 500;
text-decoration: none;
}
.timeout-body a:hover {
text-decoration: underline;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 6px 0 14px 0;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 18px;
margin-right: 10px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十四:玻璃态呼吸
/* 玻璃态呼吸漂浮 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-radius: 24px;
padding: 18px 24px;
margin-bottom: 28px;
border: 1px solid rgba(255,255,255,0.3);
box-shadow: 0 8px 32px rgba(0,0,0,0.08);
animation: glassFloat 5s ease-in-out infinite;
}
@keyframes glassFloat {
0%, 100% { transform: translateY(0px) scale(1); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
50% { transform: translateY(-8px) scale(1.01); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
}
.timeout-icon {
font-size: 24px;
color: #2d3436;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.4;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #2d3436;
}
.timeout-body code {
background: rgba(0,0,0,0.06);
padding: 2px 10px;
border-radius: 8px;
color: #e17055;
}
.timeout-body a {
color: #0984e3;
font-weight: 600;
text-decoration: none;
border-bottom: 1px solid rgba(9,132,227,0.2);
}
.timeout-body a:hover {
border-bottom-color: #0984e3;
}
/* 移动端 */
@media (max-width: 768px) {
.article-timeout-notice {
padding: 14px 16px;
border-radius: 18px;
flex-wrap: wrap;
}
.timeout-icon {
font-size: 20px;
margin-right: 12px;
}
.timeout-body {
font-size: 13px;
}
}
风格二十五:复古报纸
/* 复古报纸风格 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #f5efe0;
border: 2px solid #d2bba0;
border-radius: 0;
padding: 16px 22px;
margin-bottom: 28px;
box-shadow: 4px 4px 0 #b8a084;
font-family: 'Times New Roman', serif;
}
.timeout-icon {
font-size: 22px;
color: #8b6f4c;
margin-right: 16px;
flex-shrink: 0;
line-height: 1.5;
}
.timeout-body {
font-size: 15px;
line-height: 1.8;
color: #3d2c1e;
}
.timeout-body code {
background: #e3d5c0;
padding: 2px 8px;
color: #5d4037;
}
.timeout-body a {
color: #8d6e3f;
font-weight: 700;
text-decoration: underline wavy #b8a084;
}
@media (max-width:768px){
.article-timeout-notice{padding:12px 16px;flex-wrap:wrap}
.timeout-icon{font-size:18px;margin-right:10px}
.timeout-body{font-size:13px}
}
风格二十六:多彩圆点背景
/* 多彩圆点背景 */
.article-timeout-notice {
display: flex;
align-items: flex-start;
background: #f8f9fa;
background-image: radial-gradient(circle, #ff6b6b 1px, transparent 1px), radial-gradient(circle, #feca57 1px, transparent 1px), radial-gradient(circle, #48dbfb 1px, transparent 1px);
background-size: 30px 30px, 30px 30px, 30px 30px;
background-position: 0 0, 15px 15px, 0 15px;
border-radius: 16px;
padding: 18px 24px;
margin-bottom: 28px;
border: 1px solid #dee2e6;
}
.timeout-icon {
font-size: 24px;
color: #ff6b6b;
margin-right: 16px;
flex-shrink: 0;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #212529;
}
.timeout-body code {
background: #e9ecef;
padding: 2px 10px;
border-radius: 4px;
}
.timeout-body a {
color: #0d6efd;
font-weight: 600;
}
@media (max-width:768px){
.article-timeout-notice{padding:14px 16px;flex-wrap:wrap}
.timeout-icon{font-size:20px;margin-right:12px}
.timeout-body{font-size:13px}
}
风格二十七:折纸风格
/* 折纸立体折角 */
.article-timeout-notice {
position: relative;
display: flex;
align-items: flex-start;
background: #ffffff;
border-radius: 8px 8px 8px 0;
padding: 18px 24px;
margin-bottom: 30px;
box-shadow: 0 4px 8px rgba(0,0,0,0.06);
border: 1px solid #eaeaea;
}
.article-timeout-notice::before {
content: '';
position: absolute;
bottom: 0;
right: 0;
border-style: solid;
border-width: 20px 20px 0 0;
border-color: #f0f0f0 transparent transparent transparent;
}
.article-timeout-notice::after {
content: '';
position: absolute;
bottom: 0;
right: 0;
border-style: solid;
border-width: 20px 20px 0 0;
border-color: #ffffff transparent transparent transparent;
margin-right: 1px;
}
.timeout-icon {
font-size: 22px;
color: #6c5ce7;
margin-right: 16px;
flex-shrink: 0;
}
.timeout-body {
font-size: 14px;
line-height: 1.7;
color: #2d3436;
}
.timeout-body code {
background: #f1f2f6;
padding: 2px 10px;
border-radius: 4px;
}
.timeout-body a {
color: #6c5ce7;
font-weight: 600;
}
@media (max-width:768px){
.article-timeout-notice{padding:14px 16px;flex-wrap:wrap}
.timeout-icon{font-size:18px;margin-right:10px}
.timeout-body{font-size:13px}
}
© 版权声明
THE END










![表情[ganga]-影呓客栈](https://www.yxqi.top/wp-content/themes/yykz/img/smilies/ganga.gif)


暂无评论内容