Skip to content

Commit

Permalink
Merge pull request #144 from cpprefjp/print
Browse files Browse the repository at this point in the history
1ページ目しか印刷されない問題を修正
  • Loading branch information
faithandbrave authored Nov 23, 2024
2 parents 0e47639 + 42b7fc2 commit 248ec22
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 1 deletion.
16 changes: 15 additions & 1 deletion css/kunai/site/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ body {
}
}


nav[role="navigation"] {
display: flex;
// min-height: 3rem;
Expand Down Expand Up @@ -322,3 +321,18 @@ main {
}
}

@media print {
body {
overflow: visible;
}

main {
overflow: visible;

div[itemtype="http://schema.org/Article"],
div[itemtype="http://schema.org/Article"] + div {
overflow: visible;
}
}
}

12 changes: 12 additions & 0 deletions css/kunai/site/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,15 @@ nav[role="navigation"] {
}
}


@media print {
nav[role="navigation"] {
.navbar-brand {
> .title-wrapper {
&:before {
overflow: visible;
}
}
}
}
}
23 changes: 23 additions & 0 deletions css/kunai/site/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -775,3 +775,26 @@ main[role="main"] .kunai-sidebar.force-legacy {
}
}

@media print {
.kunai-sidebar > .tree.v2 {
overflow: visible;

ul.stackable {
> li.stack {
&.expanded:not(.empty) {
overflow: visible;
}
}
}

> ul.root {
overflow: visible;
}

ul.members {
> li.member {
overflow: visible;
}
}
}
}
10 changes: 10 additions & 0 deletions css/kunai/site/tree.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,13 @@
}
}

@media print {
@mixin tree $cl-border {
a {
overflow: visible;
}
ul {
overflow: visible;
}
}
}

0 comments on commit 248ec22

Please sign in to comment.