Remove :not pseudo-class from md-table styles
Rollback change that adds :not(js-syntax-highlight) pseudo-class to markdown selectors to fix syntax highlight tables in MR code suggestions. Removes redundant inclusion of md-typography mixin as an alternative fix.
This commit is contained in:
parent
24c496f155
commit
5e67f54fb4
|
@ -150,7 +150,7 @@
|
|||
}
|
||||
|
||||
|
||||
table:not(.js-syntax-highlight) {
|
||||
table {
|
||||
@include markdown-table;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,15 +29,14 @@
|
|||
display: block;
|
||||
overflow-x: auto;
|
||||
border: 0;
|
||||
border-color: $gl-gray-100;
|
||||
|
||||
tr {
|
||||
th {
|
||||
border-bottom: solid 2px $gl-gray-100;
|
||||
border-bottom: solid 2px $gl-gray-200;
|
||||
}
|
||||
|
||||
td {
|
||||
border-color: $gl-gray-100;
|
||||
border-color: $gl-gray-200;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,15 +136,21 @@
|
|||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
table:not(.js-syntax-highlight) {
|
||||
table {
|
||||
@extend .table;
|
||||
@extend .table-bordered;
|
||||
margin: 16px 0;
|
||||
color: $gl-text-color;
|
||||
border: 0;
|
||||
|
||||
th {
|
||||
background: $label-gray-bg;
|
||||
tr {
|
||||
th {
|
||||
border-bottom: solid 2px $gl-gray-200;
|
||||
}
|
||||
|
||||
td {
|
||||
border-color: $gl-gray-200;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -224,14 +224,9 @@ $note-form-margin-left: 72px;
|
|||
overflow-y: hidden;
|
||||
|
||||
.note-text {
|
||||
@include md-typography;
|
||||
// Reset ul style types since we're nested inside a ul already
|
||||
@include bulleted-list;
|
||||
word-wrap: break-word;
|
||||
|
||||
table {
|
||||
@include markdown-table;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Fix markdown table header and table content borders
|
||||
merge_request: 25666
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in New Issue