mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 14:22:35 +00:00
fix(style): use calc function
This commit is contained in:
parent
f92d24e89c
commit
8e8fd2717e
1 changed files with 2 additions and 2 deletions
|
@ -450,7 +450,7 @@ ul#searchresults span.teaser em {
|
|||
z-index: -1;
|
||||
}
|
||||
[dir=rtl] #sidebar-toggle-anchor:not(:checked) ~ .sidebar {
|
||||
transform: translateX(var(--sidebar-width) + var(--sidebar-resize-indicator-width));
|
||||
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
|
||||
}
|
||||
.sidebar::-webkit-scrollbar {
|
||||
background: var(--sidebar-bg);
|
||||
|
@ -461,7 +461,7 @@ ul#searchresults span.teaser em {
|
|||
|
||||
/* sidebar-visible */
|
||||
#sidebar-toggle-anchor:checked ~ .page-wrapper {
|
||||
transform: translateX(var(--sidebar-width) + var(--sidebar-resize-indicator-width));
|
||||
transform: translateX(calc(var(--sidebar-width) + var(--sidebar-resize-indicator-width)));
|
||||
}
|
||||
[dir=rtl] #sidebar-toggle-anchor:checked ~ .page-wrapper {
|
||||
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));
|
||||
|
|
Loading…
Reference in a new issue