mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-13 22:38:23 +00:00
css: fix tab icon/text baseline
the baseline for the text was seriously off, the text had (relatively) much more space below than above, which looks off for buttons with an actual background Instead of centering with margin/padding explicitly, do so with the flex layout model. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3b974606a6
commit
7d602ae678
@ -179,6 +179,30 @@ div.right-aligned {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Fix icon/text baseline */
|
||||
.x-tab-default {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.x-tab-default > span {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.x-tab-button {
|
||||
line-height: unset;
|
||||
}
|
||||
.x-tab-inner {
|
||||
display: unset;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
.x-tab-wrap {
|
||||
display: unset;
|
||||
}
|
||||
.x-tab-default-top {
|
||||
padding: 2px 6px 2px 6px;
|
||||
}
|
||||
|
||||
/* rules for the markdown content, prefix with the .pmx-md class */
|
||||
.pmx-md {
|
||||
font-size: 1.0em;
|
||||
|
Loading…
Reference in New Issue
Block a user