模板:License unknown/styles.css
来自星砂岛百科
更多操作
/* 适配 Citizen 皮肤的版权不明确模板样式 */
.license-unknown-container {
display: flex;
align-items: center;
gap: 16px;
background-color: var(--background-color-subtle);
border: 1px solid var(--border-color-base);
border-radius: var(--border-radius-base);
padding: 12px 20px;
margin: 1em 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
max-width: 100%;
box-sizing: border-box;
/* 给左侧加一条警告色的边框强调,增强提示感 */
border-left: 4px solid var(--color-warning);
}
.license-unknown-icon {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
/* 使用 Citizen 的警告色透明背景 */
background-color: var(--color-warning-transparent, rgba(255, 170, 0, 0.15));
border-radius: 50%;
/* 使用 Citizen 的警告色 */
color: var(--color-warning, #ffaa00);
}
/* 使用 Mask 引入疑问/未知状态的 SVG 图标 */
.license-unknown-icon-svg {
width: 24px;
height: 24px;
background-color: currentColor;
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center;
/* 圆圈加上问号的 Data URI */
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'%3E%3C/path%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'%3E%3C/path%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E");
}
.license-unknown-content {
flex-grow: 1;
line-height: 1.5;
}
.license-unknown-header {
font-weight: bold;
font-size: 1.1em;
color: var(--color-base);
margin-bottom: 2px;
}
.license-unknown-text {
font-size: 0.9em;
color: var(--color-base--subtle);
}
/* 移动端适配 */
@media (max-width: 640px) {
.license-unknown-container {
padding: 10px 14px;
gap: 12px;
}
.license-unknown-icon {
width: 32px;
height: 32px;
}
.license-unknown-icon-svg {
width: 20px;
height: 20px;
}
}