Skip to content

Commit

Permalink
FIX: words nested in <kbd> disappear when searched
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP committed Mar 2, 2015
1 parent 96f2402 commit 2a7af5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/common/base/topic-post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ kbd
margin: 0 .1em;
padding: .1em .6em;

* * { display: none; }
// don't allow more than 3 nested elements to prevent FF from crashing
// cf. http://what.thedailywtf.com/t/nested-elements/7927
// 3 levels are needed to prevent highlighted words being hidden
// cf. https://meta.discourse.org/t/word-disappears-when-searched-and-in-details-summary-kbd-b/25741
* * * { display: none; }
}

// we assume blockquotes have their own margins, so all blockquotes
Expand Down

0 comments on commit 2a7af5e

Please sign in to comment.