question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[CSS HELP] How to move the breadcrumbs plugin down when banner is loaded (if possible)

See original GitHub issue

Hello! I hope it’s alright for me to ask this here, but I’ve been trying to figure out how to get the banner to play nicely with the breadcrumbs plugin for a while now. I’m very inexperienced with CSS so please bear with me if this is an obvious question;

I have two plugins that display at the top of my note: breadcrumbs and metatable. I managed to edit metatable’s css using a snippet found here to scoot it down when a banner is loaded, but I cannot figure out how to do the same for breadcrumbs.

This is my css edited snippet for my metatable plugin, and below are a couple screenshots showing the issue.

.code-block-wrap.obsidian-banner-wrapper {
	position: initial;
  margin-top: 200px;
  margin-bottom: 0;
}

The file w/o banner Obsidian_rEFEu6IO4X

Banner turned on, covering breadcrumbs but metatable was appropriately pushed down by banner image

Is there something I’m missing to affect breadcrumbs as well? If it’s impossible to mess with breadcrumbs, could the banner be scooted down a bit with css and have breadcrumbs accessible from above?

Thanks again, and if this doesn’t belong here I’ll gladly move it!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SlRvbcommented, Apr 26, 2022

@noatpad I’m think that it might actually have to be the Banner plugin at adds some class to the .markdown-preview-view selector. Since the breadcrumbs is up higher in the DOM than the banner, it would be pretty hard to maybe add a margin to the breadcrumbs trail to push it under the banner.

Maybe adding a class like .has-banner class onto the .markdown-preview-view would be the best way to go as you can just add this css to the .BC-trail selector that’s right below it and push the trail down under the banner:

.markdown-preview-view.has-banner .BC-trail {
    margin-top: var(--banner-height) !important;
}
1reaction
SkepticMysticcommented, Jan 9, 2022

@WychWitch @noatpad hey 😃 Thanks for noting this issue with Breadcrumbs. I don’t know CSS very well, so do you have recommendations on what I could do to accommodate? There are reasons I place the Breadcrumbs view where it is, but maybe that can be adjusted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breadcrumbs In Web Design: Examples And Best Practices
Clicking on a breadcrumb link takes you to that item's page, while clicking on the downward-pointing arrow opens additional options. MSDN has a ......
Read more >
Filters and breadcrumbs - Product Documentation | ServiceNow
A filter is a set of conditions applied to a table to help you find and work with a subset of the data...
Read more >
How to Display BreadCrumb Navigation Links in WordPress
Customize page and click on the Breadcrumbs menu. From there, you'll choose where you want your breadcrumbs to be displayed in the Header ......
Read more >
how to show and move breadcrumb under primary navigation
Hi, I'm trying to achieve this look on my blog category page with a banner on the very top with the page title...
Read more >
Handling common HTML and CSS problems - MDN Web Docs
This includes linting code, handling CSS prefixes, using browser dev tools to track down problems, using polyfills to add support into browsers, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found