css: Final cleanup

This commit is contained in:
Johannes Meyer 2025-03-28 15:05:33 +01:00
parent 73118b6b6f
commit cc6c68bc99
4 changed files with 61 additions and 41 deletions

View file

@ -306,13 +306,3 @@ form[name="form_confirm_removal"] {
padding: 0 0.25em;
.rounded-corners();
}
.item-list {
.title .affected-objects {
margin-left: .28125em; // calculated   width;
}
.default-item-layout .title .affected-objects {
margin-left: 0;
}
}

View file

@ -0,0 +1,37 @@
.item-layout {
.icon-image {
width: 3em;
height: 3em;
text-align: center;
margin-top: .5em;
margin-right: .5em;
overflow: hidden;
img {
max-height: 100%;
max-width: 100%;
height: auto;
width: auto;
}
.icon, img {
vertical-align: baseline;
}
}
&.minimal-item-layout {
.icon-image {
height: 2em;
width: 2em;
line-height: 2;
}
}
&.header-item-layout .icon-image {
margin-top: 0;
img {
vertical-align: middle;
}
}
}

View file

@ -54,31 +54,27 @@
}
.item-list {
.icon-image {
width: 3em;
height: 3em;
text-align: center;
margin-top: .5em;
margin-left: .5em;
overflow: hidden;
img {
max-height: 100%;
max-width: 100%;
height: auto;
width: auto;
.detailed-item-layout footer {
.status-icons .icon, .performance-data {
font-size: .857em;
line-height: 1.5*.857em;
}
}
&.minimal-item-layout {
.icon-image {
height: 2em;
width: 2em;
line-height: 2;
// Not sure what this is for. Maybe user content? (Markdown) But why in the title??
.default-item-layout .title {
p {
margin: 0;
}
}
.minimal-item-layout .title {
p {
display: inline;
& + p {
margin-left: .417em;
}
}
}
}
.controls .minimal-item-layout .icon-image {
margin-top: 0;
}

View file

@ -4,23 +4,20 @@ ul.object-grid {
display: grid;
grid-template-columns: repeat(auto-fit, 15em);
grid-gap: 1em 2em;
margin: 0;
padding: 0;
li.item-layout.object-grid-cell {
margin: -.25em;
padding: .25em;
border-radius: .5em;
.visual {
padding: 0;
}
.rounded-corners();
.caption {
height: auto;
height: 1.5em; // Single line
.text-ellipsis();
.line-clamp("reset");
}
.title, .caption {
line-height: 1;
a {
display: inline-block;
max-width: 10em;