Skip to content

Commit c94a730

Browse files
committed
Some minor improvements
Changed the CSS a little bit and removed an unused CSS class.
1 parent a3ff931 commit c94a730

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

includes/MultiCodeBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function &combineCodeDescription(string $code, Description &$desc, Parser &$pars
120120
$i++;
121121
}
122122

123-
$return .= '</pre></ol></th><th class="second mw-body-content">' . $parser->recursiveTagParse($desc->texts[$j]) . '</td>';
123+
$return .= '</pre></ol></th><th class="second">' . $parser->recursiveTagParse($desc->texts[$j]) . '</td>';
124124
}
125125

126126
$return .= '</table>';

resources/ext.multicodeblock/css/codeblock.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,8 @@
107107
.code-table pre {
108108
border: none;
109109
margin-top: 0;
110-
padding-top: 0;
111-
padding-bottom: 0;
112-
padding-left: 30px;
110+
padding: 0 0 0 30px;
113111
margin-bottom: -4px;
114-
background-color: none !important;
115112
overflow: initial;
116113
}
117114

@@ -221,6 +218,15 @@
221218
padding-bottom: 3px;
222219
}
223220

221+
.second *:first-child {
222+
margin-top: 0 !important;
223+
padding-top: 0 !important;
224+
}
225+
226+
.first {
227+
display: contents;
228+
}
229+
224230
@keyframes bounceIn {
225231
from, 20%, 40%, 60%, 80%, to {
226232
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);

0 commit comments

Comments
 (0)