Fixed spacing for result containers in content tabs

This commit is contained in:
squidfunk 2022-05-09 08:34:59 +02:00
parent 45d84938f2
commit fb248e3e49
4 changed files with 31 additions and 21 deletions

View File

@ -34,7 +34,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.e75da837.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.c382b1dc.min.css' | url }}">
{% if config.theme.palette %} {% if config.theme.palette %}
{% set palette = config.theme.palette %} {% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cc9b2e1e.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cc9b2e1e.min.css' | url }}">

View File

@ -197,16 +197,20 @@
} }
} }
// Code block is the first child of a tab - remove margin and mirror
// previous (now deprecated) SuperFences code block grouping behavior
> .highlight:first-child {
// Code block title - remove spacing and rounded borders // Code block title - remove spacing and rounded borders
> .highlight:first-child > .filename { > .filename {
margin: 0; margin: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
border-top-right-radius: 0; border-top-right-radius: 0;
} }
// Code block with line numbers - unfortunately, these selectors need to be // Code block with line numbers - unfortunately, these selectors need to
// overly specific so they don't bleed into code blocks in annotations. // be overly specific so they don't bleed into code blocks in annotations.
> .highlight:first-child > .highlighttable { > .highlighttable {
margin: 0; margin: 0;
// Remove rounded borders on line numbers and titles // Remove rounded borders on line numbers and titles
@ -224,6 +228,12 @@
} }
} }
// Code block result container - adjust spacing
+ .result {
margin-top: px2em(-2px);
}
}
// Adjust spacing for nested tabbed container // Adjust spacing for nested tabbed container
> .tabbed-set { > .tabbed-set {
margin: 0; margin: 0;