mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-13 18:40:54 +01:00
Improved rendeirng of overly long source facts
This commit is contained in:
parent
a72ce4ddf9
commit
862dc03f7d
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 %}
|
||||
{% endblock %}
|
||||
{% 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 %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">
|
||||
|
@ -96,7 +96,7 @@
|
||||
}
|
||||
|
||||
// Adjust spacing if icon is present
|
||||
+ .md-source__repository {
|
||||
+.md-source__repository {
|
||||
margin-inline-start: px2rem(-40px);
|
||||
padding-inline-start: px2rem(40px);
|
||||
}
|
||||
@ -114,6 +114,9 @@
|
||||
|
||||
// Repository facts
|
||||
&__facts {
|
||||
display: flex;
|
||||
gap: px2rem(8px);
|
||||
width: 100%;
|
||||
margin: px2rem(2px) 0 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
@ -129,7 +132,8 @@
|
||||
|
||||
// Repository fact
|
||||
&__fact {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
// Show after the data was loaded
|
||||
.md-source__repository--active & {
|
||||
@ -149,9 +153,9 @@
|
||||
content: "";
|
||||
}
|
||||
|
||||
// Adjust spacing for repository fact icon
|
||||
&:nth-child(1n+2)::before {
|
||||
margin-inline-start: px2rem(8px);
|
||||
// Adjust spacing for 2nd+ fact
|
||||
&:nth-child(1n+2) {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// Repository fact: version
|
||||
|
Loading…
Reference in New Issue
Block a user