Skip to content

Commit 5c208ab

Browse files
committed
more text color styles, better icon class
1 parent 7b22db5 commit 5c208ab

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

preview-src/asciidoc/images.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
== Block images
99

1010
.Optional title
11-
image::../img/screenshot.png[[alt="Screenshot of Astra Portal Home"]
11+
image::../img/screenshot.png[alt="Screenshot of Astra Portal Home"]
1212

1313
=== Sizing and alignment
1414

1515
.width=400,align=left
16-
image::../img/screenshot.png[[alt="Screenshot of Astra Portal Home",width=400,align=left]
16+
image::../img/screenshot.png[alt="Screenshot of Astra Portal Home",width=400,align=left]
1717

1818
.width=400 width,align=right
19-
image::../img/screenshot.png[[alt="Screenshot of Astra Portal Home",width=400,align=right]
19+
image::../img/screenshot.png[alt="Screenshot of Astra Portal Home",width=400,align=right]
2020

2121
.width=400 width,align=center
22-
image::../img/screenshot.png[[alt="Screenshot of Astra Portal Home",width=400,align=center]
22+
image::../img/screenshot.png[alt="Screenshot of Astra Portal Home",width=400,align=center]
2323

2424
=== Float
2525

2626
[.float-group]
2727
--
28-
image:../img/screenshot.png[[alt="Screenshot of Astra Portal Home",300,float=right,role=float-gap]
28+
image:../img/screenshot.png[alt="Screenshot of Astra Portal Home",300,float=right,role=float-gap]
2929
In AsciiDoc, creating paragraphs is a straightforward process that does not require any special markup. A paragraph can be defined as one or more lines of consecutive text that are logically grouped together. To differentiate between paragraphs, you simply need to insert at least one blank line between them.
3030
--
3131

src/css/base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@
7777
top: -0.5em;
7878
}
7979

80-
.icon {
80+
svg.icon {
8181
display: inline-block;
8282
height: 1.25em;
8383
width: 1.25em;
84+
vertical-align: text-bottom;
8485
}
8586

8687
@media (pointer: fine) {

src/css/color.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@
1515
color: var(--ds-text-inverse);
1616
}
1717

18+
.text-warning {
19+
color: var(--ds-warning-main);
20+
}
21+
22+
.text-success {
23+
color: var(--ds-success-main);
24+
}
25+
26+
.text-failure {
27+
color: var(--ds-failure-main);
28+
}
29+
1830
.text-link,
1931
.color-primary {
2032
color: var(--ds-primary-main);

src/css/typeface/typeface-lucide-icons.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
[class*=" icon-"], [class^=icon-] {
44
font-size: 1.25em;
55
line-height: 1;
6-
vertical-align: sub;
6+
vertical-align: text-bottom;
77
}

src/css/typeface/typeface-material-icons-outlined.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
-moz-osx-font-smoothing: grayscale;
2929
/* Support for IE. */
3030
font-feature-settings: 'liga';
31-
vertical-align: sub;
31+
vertical-align: text-bottom;
3232
}

0 commit comments

Comments
 (0)