Skip to content
Snippets Groups Projects
Commit 3474ea50 authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fix #4122

Closes #4122

Merge request studip/studip!2976
parent 79a15640
No related branches found
No related tags found
No related merge requests found
...@@ -116,12 +116,7 @@ export default { ...@@ -116,12 +116,7 @@ export default {
image() { image() {
let style = {}; let style = {};
const backgroundURL = this.imageIsSet ? this.imageURL : this.identImage; const backgroundURL = this.imageIsSet ? this.imageURL : this.identImage;
style.backgroundImage = 'url(' + backgroundURL + ')'; style.backgroundImage = 'url(' + backgroundURL + ')';
if (!this.imageIsSet) {
style.backgroundSize = '100% auto';
style.height = '180px';
}
return style; return style;
}, },
...@@ -194,17 +189,20 @@ export default { ...@@ -194,17 +189,20 @@ export default {
} }
.cw-root-content-description { .cw-root-content-description {
display: flex; display: flex;
flex-direction: row;
margin: 0 8em;
padding: 2em 4px 2em 2em;
position: relative; position: relative;
top: 8em; flex-direction: column;
margin: 0 1em;
padding: 1em 4px 1em 1em;
top: 1em;
gap: 10px;
.cw-root-content-description-img { .cw-root-content-description-img {
width: 270px; min-width: 135px;
height: fit-content; height: 90px;
margin-right: 2em;
background-color: #fff; background-color: #fff;
background-size: cover;
background-position: center;
margin-right: 1em;
} }
.cw-root-content-description-text { .cw-root-content-description-text {
max-height: calc(480px - 18em); max-height: calc(480px - 18em);
...@@ -232,8 +230,7 @@ export default { ...@@ -232,8 +230,7 @@ export default {
max-width: 1095px; max-width: 1095px;
margin-bottom: 1em; margin-bottom: 1em;
.cw-root-content-description { .cw-root-content-description {
margin: 0 8em; height: calc(100% - 4em);
top: 1.5em;
.cw-root-content-description-text { .cw-root-content-description-text {
max-height: calc(300px - 6em); max-height: calc(300px - 6em);
} }
...@@ -245,4 +242,56 @@ export default { ...@@ -245,4 +242,56 @@ export default {
.cw-root-content-hint { .cw-root-content-hint {
max-width: 1095px; max-width: 1095px;
} }
.size-small {
.cw-root-content-description {
flex-direction: row;
padding: 1em 4px 1em 1em;
.cw-root-content-description-img {
min-width: 135px;
height: 90px;
}
}
.cw-root-content-default {
.cw-root-content-description {
margin: 0 4em;
top: 8em;
}
}
.cw-root-content-toc {
.cw-root-content-description {
height: calc(100% - 6em);
margin: 0 4em;
top: 1.5em;
}
}
}
.size-large {
.cw-root-content-description {
flex-direction: row;
padding: 2em 4px 2em 2em;
.cw-root-content-description-img {
min-width: 270px;
height: 180px;
}
}
.cw-root-content-default {
.cw-root-content-description {
margin: 0 8em;
top: 8em;
}
}
.cw-root-content-toc {
.cw-root-content-description {
height: calc(100% - 7em);
margin: 0 8em;
top: 1.5em;
}
}
}
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment