Skip to content

Commit

Permalink
Loosen selector so that kbd elements are always styled
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinfreund committed Apr 20, 2018
1 parent 32f4390 commit e7c83a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ pre code:not(.hljs),
background: hsl(24, 20%, 95%);
}

/* Style all kbd elements that are not in table headers */
:not(th) > kbd {
kbd {
display: inline-block;
padding: .1em .3em;
color: #555;
Expand All @@ -39,4 +38,3 @@ table.data.attributes tbody th,
table.data.attributes tbody td {
border: 1px solid silver;
}

1 comment on commit e7c83a2

@jnurthen
Copy link
Member

Choose a reason for hiding this comment

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

I believe that we do not want keyboard elements styled when they are in table headers. As the keyboard table has kbd elements in every table header having then styled in this way makes the table too busy. Please back out this change.

Please sign in to comment.