Improved rendeirng of overly long source facts

This commit is contained in:
squidfunk 2022-07-12 17:45:00 +02:00
parent a72ce4ddf9
commit 862dc03f7d
5 changed files with 12 additions and 8 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 }}">

View File

@ -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