@@ -70,11 +70,6 @@ blockquote {
7070 border-left : 2px solid darkgrey ;
7171}
7272
73- // Don't wrap boilerplate URLs; makes it look more like text version.
74- :is (#status-of-memo , #copyright ) a[href] {
75- white-space : nowrap ;
76- }
77-
7873/* Header junk */
7974#external-metadata {
8075 display : none !important ; /* metadata.min.js is evil because it produces unstyleable goop */
@@ -87,18 +82,13 @@ blockquote {
8782}
8883#identifiers {
8984 margin : 0 ;
90- display : grid ;
91- grid-template-columns : 47ch 24ch ;
92- grid-auto-rows : auto ;
93- gap : 0 1ch ;
9485}
9586#identifiers dt {
9687 margin : 0 1ch 0 0 ;
9788 float : revert ;
9889 display : inline-block ;
9990}
10091#identifiers dd {
101- grid-column : 1 ;
10292 margin : 0 ;
10393 width : 47ch ;
10494 /* HAXX: this gets around the lack of text-content-trim support */
@@ -146,7 +136,7 @@ blockquote {
146136 margin : 0 0 0 1ch ;
147137}
148138#identifiers dd :is(.updates , .obsoletes ) a :last-of-type {
149- margin : 0 1ch ;
139+ margin-right : 1ch ;
150140}
151141#identifiers dd .published ::before {
152142 content : " Published:" ;
@@ -160,11 +150,52 @@ blockquote {
160150#identifiers dd .issn ::before {
161151 content : " ISSN:" ;
162152}
163- #identifiers dd .authors {
164- grid-area : 1 / 2 / 100 / 3 ;
165- width : 24ch ;
166- text-align : right ;
167- display : block ;
153+
154+ /* Thanks WeasyPrint for not supporting @supports */
155+ /* @supports not (display: grid) { */
156+ #identifiers dd .authors {
157+ padding-left : 8ch ;
158+ width : 64ch ;
159+ }
160+ #identifiers dd .authors ::before {
161+ content : " Authors:" ;
162+ margin : 0 0 0 -8ch ;
163+ }
164+ #identifiers dd .authors .author {
165+ display : inline-block ;
166+ margin : 0 2ch 0 1ch ;
167+ }
168+ #identifiers dd .authors .author :last-of-type {
169+ margin-right : 0 ;
170+ }
171+ /* } */
172+ /* #identifiers styling for when grid layout is supported, or not */
173+ @supports (display : grid ) {
174+ #identifiers {
175+ display : grid ;
176+ grid-template-columns : 47ch 24ch ;
177+ grid-auto-rows : auto ;
178+ gap : 0 1ch ;
179+ }
180+ #identifiers dd {
181+ grid-column : 1 ;
182+ }
183+ #identifiers dd .authors {
184+ grid-area : 1 / 2 / 100 / 3 ;
185+ width : 24ch ;
186+ text-align : right ;
187+ display : block ;
188+ /* overrides for @supports not block */
189+ padding-left : 0 ;
190+ }
191+ /* more overrides for @supports not block */
192+ #identifiers dd .authors ::before {
193+ display : none ;
194+ }
195+ #identifiers dd .authors .author {
196+ display : block ;
197+ margin : 0 ;
198+ }
168199}
169200
170201#title {
@@ -175,6 +206,9 @@ blockquote {
175206#rfcnum {
176207 display : none ;
177208}
209+ :is(#status-of-memo , #copyright ) a {
210+ white-space : nowrap ;
211+ }
178212.toplink {
179213 display : none ;
180214}
@@ -200,7 +234,7 @@ ol, ul {
200234ol {
201235 margin : 0 0 0 6ch ; /* todo: deal with lists that have >= 10 items */
202236}
203- ol ol , ul ol {
237+ :is( ol , ul ) ol {
204238 margin : 0 0 0 3ch ;
205239}
206240ul {
210244ul ul {
211245 list-style-type : ' -' ;
212246}
213- ul ul , ol ul {
247+ :is( ul , ol ) ul {
214248 margin-left : 1ch ;
215249}
216250ul ul ul {
224258.compact li {
225259 margin : 0 ;
226260}
227- li p :first-child , dd p :first-child {
261+ :is( li , dd ) p :first-child {
228262 margin : 0 ;
229263}
230264dt {
238272 @include margin-paragraph ;
239273 break-before : avoid ;
240274}
241- dl .compact dt , dl .compact dd {
275+ dl .compact :is( dt , dd ) {
242276 margin-top : 0 ;
243277 margin-bottom : 0 ;
244278}
@@ -248,7 +282,7 @@ dl.references dt {
248282dl .references dd {
249283 margin-left : 11ch ;
250284}
251- dd .break {
285+ :is( dd , span ) .break {
252286 display : none ;
253287}
254288
@@ -257,31 +291,31 @@ pre {
257291 // margin: var(--line) 0;
258292 @include margin-line ;
259293}
260- div .artwork , div .sourcecode {
294+ div :is( .artwork , .sourcecode ) {
261295 display : flex ;
262296 flex-wrap : nowrap ;
263297 align-items : end ;
264298}
265- div .artwork.alignCenter , div .sourcecode.alignCenter {
299+ div :is( .artwork , .sourcecode ) .alignCenter {
266300 justify-content : center ;
267301}
268- div .artwork.alignRight , div .sourcecode.alignRight {
302+ div :is( .artwork , .sourcecode ) .alignRight {
269303 justify-content : end ;
270304}
271- div .artwork ::before , div .sourcecode ::before {
305+ div :is( .artwork , .sourcecode ) ::before {
272306 flex : 0 1 3ch ;
273307 content : " " ;
274308}
275- div .artwork.alignRight ::before , div .sourcecode.alignRight ::before {
309+ div :is( .artwork , .sourcecode ) .alignRight ::before {
276310 flex-grow : 1 ;
277311}
278- div .artwork pre , div .sourcecode pre {
312+ div :is( .artwork , .sourcecode ) pre {
279313 flex : 0 0 content ;
280314 margin : 0 ;
281315 max-width : 72ch ;
282316 overflow : auto ;
283317}
284- div .artwork .pilcrow , div .sourcecode .pilcrow {
318+ div :is( .artwork , .sourcecode ) .pilcrow {
285319 flex : 0 0 1ch ;
286320}
287321figcaption , table caption {
@@ -335,7 +369,7 @@ a.selfRef, a.pilcrow {
335369a .relref , a .xref {
336370 hyphens : none ;
337371}
338- a .relref , a .xref.cite {
372+ a :is( .relref , .xref :is( .cite , .auto.internal )) {
339373 white-space : nowrap ;
340374}
341375.pilcrow {
0 commit comments