Template:Sfrac/styles.css:修订间差异
外观
删除的内容 添加的内容
enwiki>Beland fix problems with numerals colliding with horizontal bar 标签:已被回退 |
CaelLab-import(留言 | 贡献) huifu bei enwiki daoru dingti de banben (shangyiban zhwiki>A2569875) 标签:手工回退 |
||
| 第1行: | 第1行: | ||
/* {{pp|small=y}} */ |
|||
.sfrac { |
.sfrac { |
||
white-space: nowrap; |
white-space: nowrap; |
||
| 第10行: | 第9行: | ||
font-size: 85%; |
font-size: 85%; |
||
text-align: center; |
text-align: center; |
||
| ⚫ | |||
margin-right: .1em; |
|||
} |
} |
||
.sfrac .num |
.sfrac .num, |
||
.sfrac .den { |
|||
display: block; |
display: block; |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
.sfrac .den { |
.sfrac .den { |
||
| ⚫ | |||
display: block; |
|||
| ⚫ | |||
} |
} |
||
| 第27行: | 第25行: | ||
.sr-only { |
.sr-only { |
||
border: 0; |
border: 0; |
||
clip: rect(0, 0, 0, 0); |
clip: rect(0, 0, 0, 0); |
||
clip-path: polygon(0px 0px, 0px 0px, 0px 0px); |
|||
height: 1px; |
height: 1px; |
||
margin: -1px; |
margin: -1px; |
||
2026年11月19日 (四) 16:24的最新版本
.sfrac {
white-space: nowrap;
}
.sfrac.tion,
.sfrac .tion {
display: inline-block;
vertical-align: -0.5em;
font-size: 85%;
text-align: center;
}
.sfrac .num,
.sfrac .den {
display: block;
line-height: 1em;
margin: 0 0.1em;
}
.sfrac .den {
border-top: 1px solid;
}
/* [[Template:Screen reader-only]] is canonical implementation onwiki */
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
/* white-space: nowrap; /* already have nowrap above */
}