Skip to content

Commit

Permalink
Fixed comment section appearing in print view
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Oct 14, 2024
1 parent 6f703c1 commit 39d14d5
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 3 deletions.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8c3ca2c6.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.9149e943.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
1 change: 1 addition & 0 deletions src/templates/assets/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
@import "main/extensions/pymdownx/tabbed";
@import "main/extensions/pymdownx/tasklist";

@import "main/integrations/giscus";
@import "main/integrations/mermaid";

@import "main/modifiers/grid";
Expand Down
39 changes: 39 additions & 0 deletions src/templates/assets/stylesheets/main/integrations/_giscus.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
////
/// Copyright (c) 2016-2024 Martin Donath <martin.donath@squidfunk.com>
///
/// Permission is hereby granted, free of charge, to any person obtaining a
/// copy of this software and associated documentation files (the "Software"),
/// to deal in the Software without restriction, including without limitation
/// the rights to use, copy, modify, merge, publish, distribute, sublicense,
/// and/or sell copies of the Software, and to permit persons to whom the
/// Software is furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
/// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
/// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
/// DEALINGS
////

// ----------------------------------------------------------------------------
// Rules
// ----------------------------------------------------------------------------

// [print]: Hide comment section
@media print {

// Comments headline
[id="__comments"] {
display: none;
}

// Comments integration
.giscus {
display: none;
}
}

0 comments on commit 39d14d5

Please sign in to comment.