exercism / bugs

Please use https://github.com/exercism/exercism for reporting bugs.
1 stars 3 forks source link

Code in list element has wrong styling #29

Closed SleeplessByte closed 5 years ago

SleeplessByte commented 5 years ago

As per @iHiD , @kntsoriano can you look at this please?

The following css selector makes code tags look great at the "top-level".

body.prism-dark .editable-text .editable-text-html pre[class*="language-"], 
body.prism-dark .new-editable-text .preview-area pre[class*="language-"] {

}

However, nesting a code tag in a list, will make the following, incorrect, css selector active:

.editable-text .editable-text-html p code, 
.editable-text .editable-text-html li code, 
.new-editable-text .preview-area p code, 
.new-editable-text .preview-area li code {
  ...
}

The latter adds:

{ 
  border: 1px solid #fafafa;
  background: #f5f5f5;
}

This produces:

image

kntsoriano commented 5 years ago

Thanks for the thorough report :)