fix(style): use calc function

This commit is contained in:
Evgeny Chaban 2023-10-04 01:40:16 +03:00
parent f92d24e89c
commit 8e8fd2717e
1 changed files with 2 additions and 2 deletions

View File

@ -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)));