Skip to content

Commit

Permalink
Added missing CSS for highlight fix
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Apr 14, 2024
1 parent 5707773 commit 4eb1a43
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

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.f23624d9.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0c628eb8.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 @@ -45,6 +45,7 @@
@import "main/components/banner";
@import "main/components/base";
@import "main/components/clipboard";
@import "main/components/code";
@import "main/components/consent";
@import "main/components/content";
@import "main/components/dialog";
Expand Down
35 changes: 35 additions & 0 deletions src/templates/assets/stylesheets/main/components/_code.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
////
/// 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
// ----------------------------------------------------------------------------

// Code blocks
.md-code {

// Code block content - when line spans are enabled, we can opt into using
// grid-based rendering, which makes highlighted lines stretch.
.md-typeset &__content {
display: grid;
}
}

0 comments on commit 4eb1a43

Please sign in to comment.