File tree Expand file tree Collapse file tree 3 files changed +46
-3
lines changed Expand file tree Collapse file tree 3 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 63
63
display : none;
64
64
}
65
65
66
- .doc # header .details span .author : after {
66
+ .doc # header .details span .author : not ( : last-of-type ):: after {
67
67
content : "\2022" ;
68
68
font-weight : 400 ;
69
69
margin : 0.4em ;
70
70
color : var (--asciidoctor-author-separator-color );
71
71
}
72
72
73
- # header .details span .author : nth-last-child (2 ): after {
74
- content : "" ;
73
+ .doc # header .details span .last-author ::after {
74
+ display : none;
75
+ }
76
+
77
+ .doc # header .details # revnumber {
78
+ flex-basis : 100% ;
79
+ margin-top : 0.5rem ;
80
+ text-transform : capitalize;
81
+ font-weight : 200 ;
75
82
}
76
83
77
84
/* Section setup */
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2021 the original author or authors.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the 'License');
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * https://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an 'AS IS' BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ ( function ( ) {
18
+ "use strict" ;
19
+
20
+ markLastAuthor ( ) ;
21
+
22
+ function markLastAuthor ( ) {
23
+ let candidate = document . getElementById ( "author" ) ;
24
+ let lastAuthorElement = candidate ;
25
+ while ( candidate ) {
26
+ if ( candidate . classList . contains ( "author" ) ) {
27
+ lastAuthorElement = candidate ;
28
+ }
29
+ candidate = candidate . nextElementSibling ;
30
+ }
31
+ if ( lastAuthorElement ) {
32
+ lastAuthorElement . classList . add ( "last-author" ) ;
33
+ }
34
+ }
35
+ } ) ( ) ;
Original file line number Diff line number Diff line change 1
1
[[spring]]
2
2
= Asciidoctor Spring Extensions Document
3
3
Andy Wilkinson; Phillip Webb
4
+ v1.23
4
5
:description: Asciidoctor using Spring extensions
5
6
:toc: left
6
7
:toc-levels: 4
You can’t perform that action at this time.
0 commit comments