Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/12347] Move breadcrumb seperator from template to CSS #2241

Merged
merged 4 commits into from Apr 21, 2014

Conversation

PayBas
Copy link
Contributor

@PayBas PayBas commented Apr 4, 2014

It seems to work fine with the responsive breadcrumbs script. The bidi.css might need some work (although it works fine in general), but the bidi.css needs overall work. There are other issues that need to be solved first.

Lastly: before anyone asks, you cannot use HTML special characters in CSS content:'', so I used the display value, which is the preferred method for CSS (as far as I know).

PHPBB3-12347

@PayBas
Copy link
Contributor Author

PayBas commented Apr 4, 2014

When committing, please make sure it merges correctly with #2233

<span class="crumb"><a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a></span>
<!-- BEGIN navlinks --> <span class="crumb"><strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a></span><!-- END navlinks -->
<li class="small-icon icon-home breadcrumbs">
<!-- IF U_SITE_HOME --><span class="crumb"><a href="{U_SITE_HOME}"{$MICRODATA}>{L_SITE_HOME}</a></span><!-- ENDIF --><span class="crumb"><a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a></span><!-- BEGIN navlinks --><span class="crumb"><a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a></span><!-- EVENT overall_header_navlink_append --><!-- END navlinks -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please break the line again, it's too long

@nickvergessen
Copy link
Contributor

Can you update this now?

@PayBas
Copy link
Contributor Author

PayBas commented Apr 11, 2014

Will do

word-wrap: normal;
}

.breadcrumbs .crumb:after {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be assigned to .crumb:before

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have to deal with the home icon:

ul.linklist li.small-icon > a, ul.linklist li.breadcrumbs span:first-child > a {
    display: inline-block;
    padding-left: 17px;
}

I thought using :after would have less potential for issues (in case the :first-of-type breaks due to possible sloppy extensions).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well the arrow is caused by the following element, not by the previous one. So before is really what it should be (if its not too difficult)

padding: 0 0.5em;
}

.breadcrumbs .crumb:first-of-type:before {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first-of-type does not work in IE8. Use first-child instead.

crumbs_ie8

@prototech prototech merged commit 1abd031 into phpbb:develop-ascraeus Apr 21, 2014
@PayBas PayBas deleted the ticket/12347 branch April 21, 2014 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants