Skip to content

Commit 07a5b90

Browse files
authored
limit icon filter and size to admonition (#310)
1 parent 689d4c7 commit 07a5b90

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

preview-src/admonitions.adoc

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Admonitions
2-
2+
:check-mark: icon:check[]
33

44

55
== NOTE
@@ -233,3 +233,18 @@ Admonition should be given normal margin if it is not the first element in an ex
233233
====
234234

235235
=====
236+
237+
== Icons in tables
238+
239+
Icons that are not part of an admonition block should have no color filter applied.
240+
241+
[options="header", cols="^,^,^,^"]
242+
|===
243+
| Type | Date support | Time support | Time zone support
244+
| `DATE` | {check-mark} | |
245+
| `LOCAL TIME` | | {check-mark} |
246+
| `ZONED TIME` | | {check-mark} | {check-mark}
247+
| `LOCAL DATETIME` | {check-mark} | {check-mark} |
248+
| `ZONED DATETIME` | {check-mark} | {check-mark} | {check-mark}
249+
| `DURATION` | `-` | `-` | `-`
250+
|===

src/css/doc.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ body {
169169

170170
.doc .tableblock .icon {
171171
display: inline-block;
172-
margin-right: 0.5rem;
173172
}
174173

175174
.doc a,
@@ -203,7 +202,8 @@ body {
203202
font-size: var(--admonition-title-font-size);
204203
}
205204

206-
.doc i.fa::before {
205+
/* style the icons in admonition blocks only */
206+
.doc .admonitionblock i.fa::before {
207207
width: 24px;
208208
height: inherit;
209209
background-size: 20px;

0 commit comments

Comments
 (0)