mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed print view of new tabs implementation
This commit is contained in:
parent
39b8416423
commit
f1d80af51b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.bc82e094.min.css.map
Normal file
1
material/assets/stylesheets/main.bc82e094.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -39,7 +39,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.66338c14.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.bc82e094.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.3f5d1f46.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">
|
||||||
|
@ -134,8 +134,12 @@
|
|||||||
|
|
||||||
// Tab label placeholder
|
// Tab label placeholder
|
||||||
%tabbed-label {
|
%tabbed-label {
|
||||||
color: var(--md-accent-fg-color);
|
|
||||||
border-color: var(--md-accent-fg-color);
|
// [screen]: Show active state
|
||||||
|
@media screen {
|
||||||
|
color: var(--md-accent-fg-color);
|
||||||
|
border-color: var(--md-accent-fg-color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tab label on keyboard focus placeholder
|
// Tab label on keyboard focus placeholder
|
||||||
@ -165,6 +169,11 @@
|
|||||||
-ms-overflow-style: none; // IE, Edge
|
-ms-overflow-style: none; // IE, Edge
|
||||||
scrollbar-width: none; // Firefox
|
scrollbar-width: none; // Firefox
|
||||||
|
|
||||||
|
// [print]: Move one layer up for ordering
|
||||||
|
@media print {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
// Webkit scrollbar
|
// Webkit scrollbar
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
display: none; // Chrome, Safari
|
display: none; // Chrome, Safari
|
||||||
@ -184,7 +193,20 @@
|
|||||||
border-top-left-radius: px2rem(2px);
|
border-top-left-radius: px2rem(2px);
|
||||||
border-top-right-radius: px2rem(2px);
|
border-top-right-radius: px2rem(2px);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 250ms, color 250ms;
|
transition:
|
||||||
|
background-color 250ms,
|
||||||
|
color 250ms;
|
||||||
|
|
||||||
|
// [print]: Intersperse labels with containers
|
||||||
|
@media print {
|
||||||
|
|
||||||
|
// Ensure correct order of labels
|
||||||
|
@for $i from 1 through 10 {
|
||||||
|
&:nth-child(#{$i}) {
|
||||||
|
order: $i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Tab label on hover
|
// Tab label on hover
|
||||||
&:hover {
|
&:hover {
|
||||||
@ -195,17 +217,35 @@
|
|||||||
|
|
||||||
// Tab block container
|
// Tab block container
|
||||||
.tabbed-alternate {
|
.tabbed-alternate {
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
// Tab content container
|
// Tab content container
|
||||||
.tabbed-content {
|
.tabbed-content {
|
||||||
all: initial;
|
all: initial;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
// [print]: Move one layer up for ordering
|
||||||
|
@media print {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tab content
|
// Tab content
|
||||||
.tabbed-subcontent {
|
.tabbed-subcontent {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
|
// [print]: Intersperse labels with containers
|
||||||
|
@media print {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
// Ensure correct order of containers
|
||||||
|
@for $i from 1 through 10 {
|
||||||
|
&:nth-child(#{$i}) {
|
||||||
|
order: $i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Code block is the only child of a tab - remove margin and mirror
|
// Code block is the only child of a tab - remove margin and mirror
|
||||||
// previous (now deprecated) SuperFences code block grouping behavior
|
// previous (now deprecated) SuperFences code block grouping behavior
|
||||||
> pre:only-child,
|
> pre:only-child,
|
||||||
|
Loading…
Reference in New Issue
Block a user