Skip to content

Commit

Permalink
(chore) fix CSS in the dev tool to be cross-browser once again (#3292)
Browse files Browse the repository at this point in the history
  • Loading branch information
allejo authored Aug 1, 2021
1 parent 4fb68ad commit 5790bf4
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions tools/developer.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,33 @@
}

.visible-structure pre code span {
display: inline flow-root list-item;
list-style: none;
padding: 0.2rem 0.25rem;
padding-bottom: 0.25rem;
margin: 0.5rem 0.25rem 0.25rem 0.25rem;
border: 1px dashed #777;
border-radius: 3px;
white-space: pre;
display: inline-block;
margin-top: 1.4rem;
line-height: 1rem;
padding: 0 0.25rem;
position: relative;
vertical-align: super;
white-space: pre;
}

.visible-structure pre code span span {
margin-bottom: 5px;
}

.visible-structure pre code span:before {
display: inline-block;
content: attr(data-klass);
font-size: 70%;
background: #693;
padding:1px 4px;
border-radius: 2px;
color:white;
margin-right:0.25rem;
font-weight: normal;
content: attr(data-klass);
font-size: 70%;
left: 0;
line-height: 1;
padding: 0.2rem 0.25rem;
position: absolute;
top: -0.5rem;
left: -0.25rem;
top: 0;
transform: translate(0, -1.15rem);
white-space: nowrap;
}

.visible-structure pre code span:after {
Expand Down

0 comments on commit 5790bf4

Please sign in to comment.