mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved rendeirng of overly long source facts
This commit is contained in:
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.1dff34a1.min.css
vendored
Normal file
1
material/assets/stylesheets/main.1dff34a1.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
@@ -34,7 +34,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1d29e8d0.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1dff34a1.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.cbb835fc.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Adjust spacing if icon is present
|
// Adjust spacing if icon is present
|
||||||
+ .md-source__repository {
|
+.md-source__repository {
|
||||||
margin-inline-start: px2rem(-40px);
|
margin-inline-start: px2rem(-40px);
|
||||||
padding-inline-start: px2rem(40px);
|
padding-inline-start: px2rem(40px);
|
||||||
}
|
}
|
||||||
@@ -114,6 +114,9 @@
|
|||||||
|
|
||||||
// Repository facts
|
// Repository facts
|
||||||
&__facts {
|
&__facts {
|
||||||
|
display: flex;
|
||||||
|
gap: px2rem(8px);
|
||||||
|
width: 100%;
|
||||||
margin: px2rem(2px) 0 0;
|
margin: px2rem(2px) 0 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -129,7 +132,8 @@
|
|||||||
|
|
||||||
// Repository fact
|
// Repository fact
|
||||||
&__fact {
|
&__fact {
|
||||||
display: inline-block;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
// Show after the data was loaded
|
// Show after the data was loaded
|
||||||
.md-source__repository--active & {
|
.md-source__repository--active & {
|
||||||
@@ -149,9 +153,9 @@
|
|||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust spacing for repository fact icon
|
// Adjust spacing for 2nd+ fact
|
||||||
&:nth-child(1n+2)::before {
|
&:nth-child(1n+2) {
|
||||||
margin-inline-start: px2rem(8px);
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Repository fact: version
|
// Repository fact: version
|
||||||
|
|||||||
Reference in New Issue
Block a user