From 5b69d3405301ebf9f7047a459f727cbe5f73aedd Mon Sep 17 00:00:00 2001 From: liuyl Date: Wed, 3 Jul 2013 20:37:36 +0800 Subject: [PATCH] use sibling selector instead of pseudo selector --- docs/assets/css/bootstrap.css | 8 ++------ docs/components.html | 2 +- less/breadcrumbs.less | 7 ++----- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 87b021ee7f..dbe48cbaf0 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3289,15 +3289,11 @@ button.close { text-shadow: 0 1px 0 #fff; } -.breadcrumb > li:after { +.breadcrumb > li + li:before { display: inline-block; padding: 0 5px; color: #ccc; - content: "\00a0 /"; -} - -.breadcrumb > li:last-child:after { - display: none; + content: "/\00a0"; } .breadcrumb > .active { diff --git a/docs/components.html b/docs/components.html index 79b00e9913..4e763d6d4d 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1016,7 +1016,7 @@ body { padding-bottom: 70px; }

Breadcrumbs

Indicate the current page's location within a navigational hierarchy.

-

Separators are automatically added in CSS through :after and content.

+

Separators are automatically added in CSS through :before and content.