File size: 2,081 Bytes
2409829 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
#intro .block {
flex: 1 1 100%;
width: 100%;
.left-right-split {
width: 100%;
margin-top: 20px;
display: flex;
gap: 20px;
justify-content: space-between;
flex-wrap: wrap;
}
.feed {
margin-top: -4px;
a {
text-decoration: none;
display: flex;
gap: 8px;
.icon {
vertical-align: top;
width: calc(var(--font-size-link) * 1.5);
height: calc(var(--font-size-link) * 1.5);
}
.link {
vertical-align: top;
margin-top: 0;
}
}
}
}
#articles {
display: flex;
flex-direction: column;
section {
display: flex;
gap: 20px 80px;
width: 100%;
@media screen and (max-width: 960px) {
flex-wrap: wrap;
justify-content: center;
flex-direction: column;
.banner.banner {
width: 100%;
background: var(--color-fog);
img {
margin: auto;
max-width: 480px;
}
}
}
~ section {
margin-top: calc(120 * var(--variable-px));
}
.banner {
width: 400px;
flex: 0 0 auto;
img {
display: block;
width: 100%;
height: auto;
}
}
.details {
display: flex;
flex-direction: column;
gap: 20px;
flex: 1 1 auto;
.headline {
margin-top: -0.5em;
a {
font-weight: 700;
text-decoration: none;
color: var(--color-navy);
}
}
.publication {
font-weight: 800;
}
.summary {
flex-direction: column;
gap: 20px;
text-align: justify;
text-justify: inter-character; // Only supported in Firefox
-webkit-hyphens: auto;
hyphens: auto;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
code {
text-justify: auto;
}
// Safari workaround: https://stackoverflow.com/a/72170897/775283
// But there remains an issue where the ellipsis is rendered inside the text. There doesn't appear to be a fix, or even a way to disable the ellipsis in Safari.
p {
display: inline;
&::after {
content: "\A\A"; // Double new line
white-space: pre;
}
}
}
}
}
}
|