Skip to content

Commit bcadf74

Browse files
authored
formatting section title, paragraph and links (#6)
1 parent 51d4564 commit bcadf74

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

preview-src/index.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna.
3232

3333
===== Section Title (Level 3)
3434

35+
== Paragraph & Links
36+
37+
=== Paragraph
38+
39+
In AsciiDoc, creating paragraphs is a straightforward process that does not require any special markup.
40+
A paragraph can be defined as one or more lines of consecutive text that are logically grouped together.
41+
To differentiate between paragraphs, you simply need to insert at least one blank line between them.
42+
43+
=== Internal Link
44+
45+
The absence of any specific markup for paragraphs in AsciiDoc allows for a more natural and intuitive writing experience.
46+
Instead of having to enclose text within <<liber-recusabo,tags or special characters>>,
47+
you can focus on expressing your ideas and content in a clear and concise manner.
48+
49+
=== External Link
50+
51+
By separating paragraphs with blank lines, you visually
52+
https://www.datastax.com/[distinguish each paragraph,role=external,window=_blank]
53+
54+
55+
=== Anchor Link
56+
57+
By separating paragraphs with blank lines, you visually distinguish each paragraph
58+
3559
Nominavi luptatum eos, an vim hinc philosophia intellegebat.
3660
Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea.
3761
H~2~0.

src/css/doc.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
color: var(--heading-font-color);
3030
hyphens: none;
3131
line-height: 1.5;
32-
margin: 1rem 0 0;
32+
margin: calc(24 / var(--rem-base) * 1rem) 0 0;
3333
}
3434

3535
.doc > h1.page:first-child {
@@ -70,6 +70,7 @@
7070
.doc a.link,
7171
.doc a.link:hover {
7272
color: var(--heading-font-color);
73+
text-decoration: none;
7374
}
7475

7576
@media screen and (min-width: 769px) {
@@ -92,16 +93,12 @@
9293
}
9394

9495
.doc h1.sect0 {
95-
background: var(--abstract-background);
96-
font-size: 1.8em;
97-
margin: 1.5rem -1rem 0;
98-
padding: 0.5rem 1rem;
96+
font-size: calc(24 / var(--rem-base) * 1rem);
97+
margin: calc(24 / var(--rem-base) * 1rem) 0 0;
9998
}
10099

101100
.doc h2:not(.discrete) {
102101
border-bottom: 1px solid var(--section-divider-color);
103-
/* margin-left: -1rem;
104-
margin-right: -1rem; */
105102
margin: 0;
106103
padding: 0 0 calc(16 / var(--rem-base) * 1rem);
107104
}
@@ -168,6 +165,14 @@
168165
color: var(--link_unresolved-font-color);
169166
}
170167

168+
.doc a.external::after {
169+
font-family: "Material Icons Outlined", sans-serif;
170+
content: '\e89e';
171+
font-size: calc(20 / var(--rem-base) * 1rem);
172+
vertical-align: bottom;
173+
margin-left: 2px;
174+
}
175+
171176
.doc i.fa {
172177
hyphens: none;
173178
font-style: normal;
@@ -253,7 +258,7 @@
253258
.doc .partintro,
254259
.doc details,
255260
.doc hr {
256-
margin: 1rem 0 0;
261+
margin: calc(24 / var(--rem-base) * 1rem) 0 0;
257262
}
258263

259264
.doc table.tableblock {
@@ -264,7 +269,7 @@
264269
.doc .tablecontainer + *,
265270
.doc :not(.tablecontainer) > table.tableblock,
266271
.doc :not(.tablecontainer) > table.tableblock + * {
267-
margin-top: 1.5rem;
272+
margin-top: calc(24 / var(--rem-base) * 1rem);
268273
}
269274

270275
.doc p.tableblock + p.tableblock {

0 commit comments

Comments
 (0)