[epiphany] Reader mode: Use unitless value for line-height in CSS
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Reader mode: Use unitless value for line-height in CSS
- Date: Thu, 30 Aug 2018 16:22:02 +0000 (UTC)
commit 06938123dcb62c8d10f24dc5d54d8bea78265ad6
Author: Adrian Perez de Castro <aperez igalia com>
Date: Wed Aug 8 23:38:36 2018 +0300
Reader mode: Use unitless value for line-height in CSS
This avoids the line-height being wrong for elements which inherit the
line-height but have a different font size. This makes it possible to
remove the line-height attributes for the different heading elements.
src/resources/reader.css | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/resources/reader.css b/src/resources/reader.css
index 4edf746e6..ce087b582 100644
--- a/src/resources/reader.css
+++ b/src/resources/reader.css
@@ -182,7 +182,7 @@ body.serif {
}
body {
- line-height: 165%;
+ line-height: 1.45;
text-rendering: optimizeLegibility;
}
@@ -245,17 +245,14 @@ picture img {
h1 {
font-size: 1.6em;
- line-height: 1.25em;
}
h2 {
font-size: 1.2em;
- line-height: 1.51em;
}
h3 {
font-size: 1em;
- line-height: 1.66em;
}
a {
@@ -298,7 +295,6 @@ figure img {
.wp-caption-text,
figcaption {
font-size: 0.9em;
- line-height: 1.48em;
font-style: italic;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]