Skip to content

Commit fb248e3

Browse files
committed
Fixed spacing for result containers in content tabs
1 parent 45d8493 commit fb248e3

File tree

4 files changed

+31
-21
lines changed

4 files changed

+31
-21
lines changed

material/assets/stylesheets/main.e75da837.min.css renamed to material/assets/stylesheets/main.c382b1dc.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.e75da837.min.css.map renamed to material/assets/stylesheets/main.c382b1dc.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
{% endblock %}
3636
{% block styles %}
37-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e75da837.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.c382b1dc.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cc9b2e1e.min.css' | url }}">

src/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss

+28-18
Original file line numberDiff line numberDiff line change
@@ -197,30 +197,40 @@
197197
}
198198
}
199199

200-
// Code block title - remove spacing and rounded borders
201-
> .highlight:first-child > .filename {
202-
margin: 0;
203-
border-top-left-radius: 0;
204-
border-top-right-radius: 0;
205-
}
206-
207-
// Code block with line numbers - unfortunately, these selectors need to be
208-
// overly specific so they don't bleed into code blocks in annotations.
209-
> .highlight:first-child > .highlighttable {
210-
margin: 0;
200+
// Code block is the first child of a tab - remove margin and mirror
201+
// previous (now deprecated) SuperFences code block grouping behavior
202+
> .highlight:first-child {
211203

212-
// Remove rounded borders on line numbers and titles
213-
> tbody > tr > .filename span.filename,
214-
> tbody > tr > .linenos {
204+
// Code block title - remove spacing and rounded borders
205+
> .filename {
215206
margin: 0;
216207
border-top-left-radius: 0;
217208
border-top-right-radius: 0;
218209
}
219210

220-
// Remove rounded borders on code blocks
221-
> tbody > tr > .code > div > pre > code {
222-
border-top-left-radius: 0;
223-
border-top-right-radius: 0;
211+
// Code block with line numbers - unfortunately, these selectors need to
212+
// be overly specific so they don't bleed into code blocks in annotations.
213+
> .highlighttable {
214+
margin: 0;
215+
216+
// Remove rounded borders on line numbers and titles
217+
> tbody > tr > .filename span.filename,
218+
> tbody > tr > .linenos {
219+
margin: 0;
220+
border-top-left-radius: 0;
221+
border-top-right-radius: 0;
222+
}
223+
224+
// Remove rounded borders on code blocks
225+
> tbody > tr > .code > div > pre > code {
226+
border-top-left-radius: 0;
227+
border-top-right-radius: 0;
228+
}
229+
}
230+
231+
// Code block result container - adjust spacing
232+
+ .result {
233+
margin-top: px2em(-2px);
224234
}
225235
}
226236

0 commit comments

Comments
 (0)