mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support for pymdownx-inline (#1468)
* Add support for pymdownx-inline * Build assets * Fix rem lint error
This commit is contained in:
parent
d4f5b1377c
commit
46ecf3b055
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.f566fb0d.min.js.map
Normal file
1
material/assets/javascripts/bundle.f566fb0d.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.4bee132b.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.4bee132b.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.f566fb0d.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.f566fb0d.min.js.map",
|
||||
"assets/javascripts/worker/packer.js": "assets/javascripts/worker/packer.c14659e8.min.js",
|
||||
"assets/javascripts/worker/packer.js.map": "assets/javascripts/worker/packer.c14659e8.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.0a5433f7.min.js",
|
||||
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.0a5433f7.min.js.map",
|
||||
"assets/stylesheets/app-palette.scss": "assets/stylesheets/app-palette.3f90c815.min.css",
|
||||
"assets/stylesheets/app.scss": "assets/stylesheets/app.f26f5fbb.min.css"
|
||||
"assets/stylesheets/app.scss": "assets/stylesheets/app.0f079138.min.css"
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -43,7 +43,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.f26f5fbb.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/app.0f079138.min.css' | url }}">
|
||||
{% if palette.primary or palette.accent %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/app-palette.3f90c815.min.css' | url }}">
|
||||
{% endif %}
|
||||
@ -190,7 +190,7 @@
|
||||
{% endblock %}
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.4bee132b.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.f566fb0d.min.js' | url }}"></script>
|
||||
<script id="__lang" type="application/json">
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
|
@ -86,6 +86,7 @@ $md-icon-margin: $ms-base * 0.25;
|
||||
|
||||
// Code blocks
|
||||
$md-code-background: hsla(0, 0%, 92.5%, 0.5);
|
||||
$md-code-gutter: #F6F6F6;
|
||||
$md-code-color: #37474F;
|
||||
|
||||
// Keystrokes
|
||||
|
@ -268,6 +268,28 @@ $codehilite-whitespace: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
[data-linenos] {
|
||||
&::before {
|
||||
display: inline-block;
|
||||
position: sticky;
|
||||
left: px2rem(-12px);
|
||||
margin-right: px2rem(12px);
|
||||
margin-left: px2rem(-12px);
|
||||
padding-left: px2rem(12px);
|
||||
border-right: px2rem(1px) solid $md-color-black--lightest;
|
||||
background-color: $md-code-gutter;
|
||||
color: $md-color-black--lighter;
|
||||
content: attr(data-linenos);
|
||||
user-select: none;
|
||||
|
||||
@include break-to-device(mobile) {
|
||||
left: px2rem(-32px);
|
||||
margin-left: px2rem(-32px);
|
||||
padding-left: px2rem(32px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Block with line numbers
|
||||
> .codehilitetable {
|
||||
margin: 1em 0;
|
||||
|
Loading…
Reference in New Issue
Block a user