Skip to content

Commit 39d14d5

Browse files
committed
Fixed comment section appearing in print view
1 parent 6f703c1 commit 39d14d5

File tree

6 files changed

+43
-3
lines changed

6 files changed

+43
-3
lines changed

material/templates/assets/stylesheets/main.8c3ca2c6.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

material/templates/assets/stylesheets/main.8c3ca2c6.min.css renamed to material/templates/assets/stylesheets/main.9149e943.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.9149e943.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8c3ca2c6.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9149e943.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
@import "main/extensions/pymdownx/tabbed";
8484
@import "main/extensions/pymdownx/tasklist";
8585

86+
@import "main/integrations/giscus";
8687
@import "main/integrations/mermaid";
8788

8889
@import "main/modifiers/grid";
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
////
2+
/// Copyright (c) 2016-2024 Martin Donath <[email protected]>
3+
///
4+
/// Permission is hereby granted, free of charge, to any person obtaining a
5+
/// copy of this software and associated documentation files (the "Software"),
6+
/// to deal in the Software without restriction, including without limitation
7+
/// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
/// and/or sell copies of the Software, and to permit persons to whom the
9+
/// Software is furnished to do so, subject to the following conditions:
10+
///
11+
/// The above copyright notice and this permission notice shall be included in
12+
/// all copies or substantial portions of the Software.
13+
///
14+
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
17+
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
/// DEALINGS
21+
////
22+
23+
// ----------------------------------------------------------------------------
24+
// Rules
25+
// ----------------------------------------------------------------------------
26+
27+
// [print]: Hide comment section
28+
@media print {
29+
30+
// Comments headline
31+
[id="__comments"] {
32+
display: none;
33+
}
34+
35+
// Comments integration
36+
.giscus {
37+
display: none;
38+
}
39+
}

0 commit comments

Comments
 (0)