Closed pryley closed 2 years ago
I realise that the first fix for the Kanban frame only works well if the Header Bar is not hidden. I've added my own implementation for hiding the header bar because I find the reveal movement a little jarring they way it is currently:
https://user-images.githubusercontent.com/134939/165161995-cfc8e1b5-4f10-46ca-b945-b837656ffc45.mp4
Also: In submitting these contributions I don't expect that you will necessarily use them as I'm sure you have your own direction in mind, but hopefully you will find them useful in some way.
:root {
--header-bar-duration: 300ms;
--header-bar-delay: 150ms;
--header-bar-translate-y: 29px;
--header-bar-target-translate-y: 18px;
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-header {
margin-top: calc(var(--header-bar-translate-y) * -1);
position: relative;
transition-property: transform;
transition-duration: var(--header-bar-duration);
transition-delay: var(--header-bar-delay);
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-header::before {
content: '';
position: absolute;
width: 100%;
top: 0;
left: 0;
bottom: calc(var(--header-bar-target-translate-y) * -1);
transition-property: transform;
transition-duration: var(--header-bar-duration);
transition-delay: var(--header-bar-delay);
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-content {
transition-property: transform;
transition-duration: var(--header-bar-duration);
transition-delay: var(--header-bar-delay);
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-header:is(:hover,:focus-within) {
transform: translateY(var(--header-bar-translate-y));
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-header:is(:hover,:focus-within)::before {
transform: translateY(var(--header-bar-target-translate-y));
}
body:not(.is-mobile):not(.plugin-sliding-panes-rotate-header) .workspace-split.mod-root .workspace-leaf .view-header:is(:hover,:focus-within) + .view-content {
transform: translateY(var(--header-bar-translate-y));
}
huh that looks good! However, it will take me a bit of time to look for such a big snippet (to check for all the potential side effects with certain combinations of settings, potential redundancies in the theme, etc.), just so you know
Hi! As you may have heard, the upcoming Obsidian update 0.16 has a massive amount of changes for theme development, necessitating a complete rewrite of Shimmering Focus. This means:
Basically, this is the reason why I am – for now – closing this issue. If your bug still exists / your feature request is still relevant in the upcoming version 3.0 of Shimmering Focus, please comment here and I will re-open it. 🙂
Type of Contribution
CSS Class(es)
Description
Fixes Kanban layout issues (see screen recording below)
Custom Tags for dark theme (probably suitable as a snippet?)
Screenshot
https://user-images.githubusercontent.com/134939/164992788-da5cbc54-7730-4c7d-acb0-f50998508eb6.mp4