mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-23 07:11:31 +00:00
web/sidebar: redo padding on mobile & desktop
- accommodate space for scaling animation - replace static padding with variable in calculations - no more weird padding on mobile
This commit is contained in:
@@ -11,7 +11,12 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: calc(var(--padding) * 2 - 2px);
|
||||
padding: calc(var(--padding) * 2);
|
||||
|
||||
/* accommodate space for scaling animation */
|
||||
padding-bottom: calc(
|
||||
var(--padding) * 2 - var(--sidebar-inner-padding)
|
||||
);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 535px) {
|
||||
|
||||
Reference in New Issue
Block a user