模板:标识符/styles.css:修订间差异
来自ANACHRONISM
更多操作
< 模板:标识符
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
.wiki-marker { | |||
/* 定位:给四角箭头做参照 */ | |||
. | |||
/* | |||
position: relative; | position: relative; | ||
/* | /* 布局:横向 flex,宽度撑满容器,永不换行 */ | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
gap: 0.5rem; | |||
width: 100%; | |||
min-height: 2.25rem; | |||
padding: 0.45rem 2.25rem; | |||
box-sizing: border-box; | |||
white-space: nowrap; | white-space: nowrap; | ||
overflow: hidden; | overflow: hidden; | ||
/* | /* 视觉:暗红渐变底色 + 圆角 */ | ||
border-radius: 0.4rem; | |||
background: linear-gradient(90deg, #56000d 0%, #8b1a2b 50%, #56000d 100%); | |||
color: #fff; | color: #fff; | ||
font-size: 0.88rem; | |||
font-size: 0. | line-height: 1.4; | ||
} | } | ||
/* | /* 四角箭头:纯装饰 */ | ||
. | .wiki-marker__corner { | ||
position: absolute; | position: absolute; | ||
display: inline-flex; | |||
font-size: | align-items: center; | ||
justify-content: center; | |||
width: 1.4rem; | |||
height: 1.4rem; | |||
font-size: 1.5rem; | |||
line-height: 1; | line-height: 1; | ||
color: rgba(255, 255, 255, 0.55); | |||
user-select: none; | user-select: none; | ||
} | } | ||
. | .wiki-marker__corner--tl { | ||
top: | top: 0; | ||
left: | left: 0; | ||
transform-origin: top left; | |||
} | } | ||
.wiki-marker__corner--tr { | |||
. | top: 0; | ||
top: | right: 0; | ||
right: | transform-origin: top right; | ||
transform: | transform: rotate(90deg); | ||
} | } | ||
.wiki-marker__corner--br { | |||
. | bottom: 0; | ||
bottom: | right: 0; | ||
transform-origin: bottom right; | |||
transform: | transform: rotate(180deg); | ||
} | } | ||
.wiki-marker__corner--bl { | |||
. | bottom: 0; | ||
bottom: | left: 0; | ||
transform-origin: bottom left; | |||
transform: | transform: rotate(-90deg); | ||
} | } | ||
/* | /* 说明文字(可点击) */ | ||
.wiki-marker__label { | |||
flex: 1 1 auto; | |||
min-width: 0; | |||
text-align: center; | |||
color: #fff; | |||
text-decoration: none; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | } | ||
.wiki-marker__label:hover { | |||
color: #ffd7dd; | |||
. | text-decoration: none; | ||
} | } | ||
/* | /* 作者栏 */ | ||
. | .wiki-marker__author { | ||
flex: 0 0 auto; | |||
padding-left: 0.75rem; | |||
border-left: 1px solid rgba(255, 255, 255, 0.35); | |||
color: rgba(255, 255, 255, 0.92); | |||
font-size: 0.82rem; | |||
} | } | ||
.wiki-marker__author a { | |||
color: #fff; | |||
. | text-decoration: underline; | ||
} | } | ||
/* | /* 夜间模式:加深一层底色,白字保持可读 */ | ||
html.skin-theme-clientpref-night .wiki-marker, | |||
html.skin-theme-clientpref-pureblack .wiki-marker { | |||
html.skin-theme-clientpref-night . | background: linear-gradient(90deg, #3a0008 0%, #6b1010 50%, #3a0008 100%); | ||
} | } | ||
2026年9月29日 (二) 20:51的版本
.wiki-marker {
/* 定位:给四角箭头做参照 */
position: relative;
/* 布局:横向 flex,宽度撑满容器,永不换行 */
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
min-height: 2.25rem;
padding: 0.45rem 2.25rem;
box-sizing: border-box;
white-space: nowrap;
overflow: hidden;
/* 视觉:暗红渐变底色 + 圆角 */
border-radius: 0.4rem;
background: linear-gradient(90deg, #56000d 0%, #8b1a2b 50%, #56000d 100%);
color: #fff;
font-size: 0.88rem;
line-height: 1.4;
}
/* 四角箭头:纯装饰 */
.wiki-marker__corner {
position: absolute;
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.4rem;
height: 1.4rem;
font-size: 1.5rem;
line-height: 1;
color: rgba(255, 255, 255, 0.55);
user-select: none;
}
.wiki-marker__corner--tl {
top: 0;
left: 0;
transform-origin: top left;
}
.wiki-marker__corner--tr {
top: 0;
right: 0;
transform-origin: top right;
transform: rotate(90deg);
}
.wiki-marker__corner--br {
bottom: 0;
right: 0;
transform-origin: bottom right;
transform: rotate(180deg);
}
.wiki-marker__corner--bl {
bottom: 0;
left: 0;
transform-origin: bottom left;
transform: rotate(-90deg);
}
/* 说明文字(可点击) */
.wiki-marker__label {
flex: 1 1 auto;
min-width: 0;
text-align: center;
color: #fff;
text-decoration: none;
overflow: hidden;
text-overflow: ellipsis;
}
.wiki-marker__label:hover {
color: #ffd7dd;
text-decoration: none;
}
/* 作者栏 */
.wiki-marker__author {
flex: 0 0 auto;
padding-left: 0.75rem;
border-left: 1px solid rgba(255, 255, 255, 0.35);
color: rgba(255, 255, 255, 0.92);
font-size: 0.82rem;
}
.wiki-marker__author a {
color: #fff;
text-decoration: underline;
}
/* 夜间模式:加深一层底色,白字保持可读 */
html.skin-theme-clientpref-night .wiki-marker,
html.skin-theme-clientpref-pureblack .wiki-marker {
background: linear-gradient(90deg, #3a0008 0%, #6b1010 50%, #3a0008 100%);
}