diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-09-17 23:58:15 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-09-18 00:33:26 -0600 |
| commit | e29c7f4f514802de161c23f11ea67d007c5b74d7 (patch) | |
| tree | 4ab2f03afc703a7be8737a669be471763dc6ad83 /src/stylesheets | |
| parent | 58925f54965692483f8301805b0299529860f36d (diff) | |
target object element with image more accurately in default stylesheet
Diffstat (limited to 'src/stylesheets')
| -rw-r--r-- | src/stylesheets/asciidoctor.css | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css index 1c6aa3d6..bbb1f061 100644 --- a/src/stylesheets/asciidoctor.css +++ b/src/stylesheets/asciidoctor.css @@ -170,16 +170,22 @@ sub { bottom: -0.25em; } +img, +object[type^="image/"], +svg { + display: inline-block; + height: auto; + max-width: 100%; + vertical-align: middle; +} + img { border: 0; -ms-interpolation-mode: bicubic; } -img, -object, -svg { - display: inline-block; - vertical-align: middle; +object { + max-width: 100%; } svg:not(:root) { @@ -258,13 +264,6 @@ textarea { overflow: auto; } -img, -object, -svg { - max-width: 100%; - height: auto; -} - .left { float: left !important; } |
