Skip to content

Commit

Permalink
Merge pull request #130 from LaurentGoderre/fix-bc-print-icons
Browse files Browse the repository at this point in the history
Fixed the breadcrumb glyphicons not working in print view
  • Loading branch information
LaurentGoderre committed Feb 3, 2015
2 parents be9fdc2 + a3de0b8 commit 3369307
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 50 deletions.
3 changes: 3 additions & 0 deletions src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
/*
Views
*/
/* All views */
@import "views/base";

/* All screen views */
@media screen {
@import "views/screen";
Expand Down
58 changes: 58 additions & 0 deletions src/views/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
*
*/
/*
@title: All views
*/

%no-breadcrumb-icon {
content: none;
padding: 0;
}

#wb-bc {
li {
&:before,
&:after {
color: #333;
font: {
family: "Glyphicons Halflings";
size: 0.7em;
}
}

&:before {
content: "\e092";
}

&:first-child {
&:before {
@extend %no-breadcrumb-icon;
}
}
}
}

[dir=rtl] {
#wb-bc {
li {
&:before {
@extend %no-breadcrumb-icon;
}

&:after {
content: "\e091";
padding: 0 5px;
}

&:first-child {
&:after {
@extend %no-breadcrumb-icon;
}
}
}
}
}
50 changes: 0 additions & 50 deletions src/views/_screen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
@title: All screen views
*/

%no-breadcrumb-icon {
content: none;
padding: 0;
}

%banner-text-color {
color: #fff;
}
Expand Down Expand Up @@ -166,32 +161,6 @@
}
}

#wb-bc {
.breadcrumb {
background: transparent;
margin-bottom: 0;
}

li {
&:before,
&:after {
color: #333;
font-family: "Glyphicons Halflings";
font-size: 0.7em;
}

&:before {
content: "\e092";
}

&:first-child {
&:before {
@extend %no-breadcrumb-icon;
}
}
}
}

#wb-dtmd {
float: right;
}
Expand All @@ -203,25 +172,6 @@
}

[dir=rtl] {
#wb-bc {
li {
&:before {
@extend %no-breadcrumb-icon;
}

&:after {
content: "\e091";
padding: 0 5px;
}

&:first-child {
&:after {
@extend %no-breadcrumb-icon;
}
}
}
}

#wb-dtmd {
float: left;
}
Expand Down

0 comments on commit 3369307

Please sign in to comment.