Skip to content

Commit 4eb1a43

Browse files
committed
Added missing CSS for highlight fix
1 parent 5707773 commit 4eb1a43

File tree

7 files changed

+39
-3
lines changed

7 files changed

+39
-3
lines changed

Diff for: material/templates/assets/stylesheets/main.0c628eb8.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/assets/stylesheets/main.0c628eb8.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/templates/assets/stylesheets/main.f23624d9.min.css

-1
This file was deleted.

Diff for: material/templates/assets/stylesheets/main.f23624d9.min.css.map

-1
This file was deleted.

Diff for: material/templates/base.html

+1-1
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.f23624d9.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.0c628eb8.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 }}">

Diff for: src/templates/assets/stylesheets/main.scss

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
@import "main/components/banner";
4646
@import "main/components/base";
4747
@import "main/components/clipboard";
48+
@import "main/components/code";
4849
@import "main/components/consent";
4950
@import "main/components/content";
5051
@import "main/components/dialog";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
// Code blocks
28+
.md-code {
29+
30+
// Code block content - when line spans are enabled, we can opt into using
31+
// grid-based rendering, which makes highlighted lines stretch.
32+
.md-typeset &__content {
33+
display: grid;
34+
}
35+
}

0 commit comments

Comments
 (0)