[gnome-notes] css: Fix note title style
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] css: Fix note title style
- Date: Fri, 29 Jun 2018 02:37:19 +0000 (UTC)
commit 9220f40a09beff8ad54dcabe1a65e54a9efe1103
Author: Isaque Galdino <igaldino gmail com>
Date: Thu Jun 28 23:21:35 2018 -0300
css: Fix note title style
Note title was not changing its color like other note's texts.
After some debuging, it was noticed in the generated HTML that every
paragraph was wrapped by a 'div' tag but the first one, which is
actually the note title.
Many other problems, related to the first line missing the 'div' tag,
was found while googling. No explanation about that behaviour was found
in the net either.
Considering that, the implemented solution applies the note title style
to the whole HTML document and then the regular note text style for all
div elements.
data/Default.css | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/data/Default.css b/data/Default.css
index 10a7cf1..ed43ce6 100644
--- a/data/Default.css
+++ b/data/Default.css
@@ -7,9 +7,6 @@ body {
background-size: 2.0em 2.0em;
line-height: 1.5em;
padding: 2.0em;
-}
-
-body:first-line {
font-size: 150%;
font-weight: bold;
}
@@ -30,4 +27,6 @@ ol {
body > div {
margin: 0.75em 0;
+ font-size: 100%;
+ font-weight: normal;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]