Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: @rjen on September 13, 2022, 11:20:05 PM

Title: Remixed Breadcrumbs
Post by: @rjen on September 13, 2022, 11:20:05 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4344)

Remixed Breadcrumbs

A modification for Simple Machines Forum 2.1 that changes the layout of the Breadcrumbs (linktree) in Curve2 to a fancier display.

This modification is created from the "Remixed Breadcrumbs" Tips&Tricks topic: https://www.simplemachines.org/community/index.php?topic=580159.0 by TwitchisMental

Settings

There are no settings for this mod.

The layout and colors are based on the Curve2 theme and is using the new css file: RemixedBreadcrumbs.css: the mod can also update other themes if these are curve2 variations. If needed a copy of the RemixedBreadcrumbs.css can be placed in the other theme css folder and adapted to suit the specific theme color requirements.

License

Remixed Breadcrumbs is released under the MIT License. A full copy of this license is included in the package file.


Changelog

Version 2.0:

Version 1.0:
Title: Re: Remixed Breadcrumbs
Post by: TwitchisMental on September 14, 2022, 12:29:43 PM
Nice mod, thank you for your contribution :).
Title: Re: Remixed Breadcrumbs
Post by: Shades. on February 20, 2023, 05:22:00 PM
Nice mod!

I'm still getting that line in the middle talked about here (https://www.simplemachines.org/community/index.php?msg=4134880).

breadcrumb.png

And I've tried @TwitchisMental suggestion here (https://www.simplemachines.org/community/index.php?msg=4134902) but no joy! :(

Any ideas?

Thanks,
Shades 8)
Title: Re: Remixed Breadcrumbs
Post by: Diego Andrés on February 20, 2023, 05:30:03 PM
Is there a live site where we can see the issue?
Title: Re: Remixed Breadcrumbs
Post by: Shades. on February 20, 2023, 05:35:13 PM
Quote from: Diego Andrés on February 20, 2023, 05:30:03 PMIs there a live site where we can see the issue?
ganderzone.com
Title: Re: Remixed Breadcrumbs
Post by: Diego Andrés on February 20, 2023, 05:42:26 PM
I can't spot the issue on Firefox nor Chrome  :-\
Try using left: 100%; in .navigate_section ul li::after, along with right: auto;
Title: Re: Remixed Breadcrumbs
Post by: Shades. on February 20, 2023, 05:57:59 PM
Well, that didn't work! I tried it in Chrome & Edge and it looks the same with or without the edits even after clearing smf & browser cache and I have the Minimize CSS and JavaScript files turned off too at the moment.
Title: Re: Remixed Breadcrumbs
Post by: TwitchisMental on February 20, 2023, 06:45:45 PM
Quote from: Shades. on February 20, 2023, 05:22:00 PMNice mod!

I'm still getting that line in the middle talked about here (https://www.simplemachines.org/community/index.php?msg=4134880).

[url="https://www.simplemachines.org/community/index.php?action=dlattach;attach=285771;type=preview;file"]breadcrumb.png[/url]

And I've tried @TwitchisMental suggestion here (https://www.simplemachines.org/community/index.php?msg=4134902) but no joy! :(

Any ideas?

Thanks,
Shades 8)
Yeah it looks like you are getting a problem that seems to happen in Chrome based browsers. Some times you just need to adjust the :before and :after sections right property.

The overall cause seems to be caused by the body class font: 83.33%/100%...Sometimes just adjusting the right: works.. other times not so much.

Try this -
Find
.navigate_section ul li:before {
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid var(--breadcrumb_bg);
    content: "";
    position: absolute;
    top: 0;
    right: -1.25em;
    z-index: 1;
}

Replace with

.navigate_section ul li:before {
    border-top: 1em solid transparent;
    border-bottom: 1em solid transparent;
    border-left: 1em solid var(--breadcrumb_bg);
    content: "";
    position: absolute;
    top: 0;
    right: -1.15em;
    z-index: 1;
}

Title: Re: Remixed Breadcrumbs
Post by: Shades. on February 20, 2023, 08:01:13 PM
Yep, that fixed it...thanks a million! 8)
Title: Re: Remixed Breadcrumbs
Post by: Shades. on March 02, 2023, 04:35:03 PM
I have been trying to figure out how to have this work only in certain Themes I choose and my best solution is to just remove the "RemixedBreadcrumbs.css" from the default Theme and put it in each "whatever themes" CSS folder. Is this the correct way to do it or will it cause problems I'm not seeing yet?

I think that is the correct way but wanted to be sure, and also leave this tip for someone else that might be wondering how to do it.

Thanks,
Shades 8)
Title: Re: Remixed Breadcrumbs
Post by: @rjen on March 02, 2023, 05:05:50 PM
Pretty sure that way is harmless. Would need to check the mod to be sure though
Title: Re: Remixed Breadcrumbs
Post by: Shades. on July 18, 2023, 10:54:02 PM
How can I disable this mod on mobile? Looks good on my site on desktop but not on mobile.

Thanks,
Shades 8)
Title: Re: Remixed Breadcrumbs
Post by: TwitchisMental on July 19, 2023, 01:14:11 AM
Quote from: Shades. on July 18, 2023, 10:54:02 PMHow can I disable this mod on mobile? Looks good on my site on desktop but not on mobile.

Thanks,
Shades 8)
What is it that you do not like, it maybe an easy fix :).
Title: Re: Remixed Breadcrumbs
Post by: Shades. on July 19, 2023, 11:17:26 AM
I adjusted the colors to match my site and looks good on desktop just not on mobile. (See below)

Looks good:
desktop.png

Not so good:
mobile.png
Title: Re: Remixed Breadcrumbs
Post by: Kindred on July 19, 2023, 11:30:40 AM
take a look at the CSS I used on test2.turtleshellprod.com -- I think the mod version of this assumes the BG for the entire bar, which is why you have that look....   my variation only highlights the BG for the arrow itself

.navigate_section li::before {
  border-top: 1em solid transparent;
  border-bottom: 1em solid transparent;
  border-left: 1em solid #fff;
  content: "";
  position: absolute;
  top: 0;
  right: -1.25em;
  z-index: 1;
}

with *NO* background defined for the .navigate_section itself.
Title: Re: Remixed Breadcrumbs
Post by: Shades. on July 19, 2023, 01:17:10 PM
I removed the background and it looks better...

mobile1.png

But still think I like it without the breadcrumbs on mobile (what do yall think)...

mobile2.png
Title: Re: Remixed Breadcrumbs
Post by: @rjen on July 19, 2023, 02:12:16 PM
Attached css will deactivate the changes at a width less then 640px.
Title: Re: Remixed Breadcrumbs
Post by: Shades. on July 19, 2023, 02:29:54 PM
Quote from: @rjen on July 19, 2023, 02:12:16 PMAttached css will deactivate the changes at a width less then 640px.
Much appreciated, thank you! 8)