mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added missing CSS for highlight fix
This commit is contained in:
parent
5707773ce3
commit
4eb1a43937
1
material/templates/assets/stylesheets/main.0c628eb8.min.css
vendored
Normal file
1
material/templates/assets/stylesheets/main.0c628eb8.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% 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 %}
|
{% if config.theme.palette %}
|
||||||
{% set palette = config.theme.palette %}
|
{% set palette = config.theme.palette %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
@import "main/components/banner";
|
@import "main/components/banner";
|
||||||
@import "main/components/base";
|
@import "main/components/base";
|
||||||
@import "main/components/clipboard";
|
@import "main/components/clipboard";
|
||||||
|
@import "main/components/code";
|
||||||
@import "main/components/consent";
|
@import "main/components/consent";
|
||||||
@import "main/components/content";
|
@import "main/components/content";
|
||||||
@import "main/components/dialog";
|
@import "main/components/dialog";
|
||||||
|
35
src/templates/assets/stylesheets/main/components/_code.scss
Normal file
35
src/templates/assets/stylesheets/main/components/_code.scss
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user