[gnome-tour/wip/cdavis/clean-warnings] style.css: Remove .page-body and .large-title



commit ae3ea5e46013cd4ba1f1d030700bd9543dcccc6d
Author: Christopher Davis <christopherdavis gnome org>
Date:   Thu Dec 9 23:46:50 2021 -0800

    style.css: Remove .page-body and .large-title
    
    .page-body is indistinguishable from the default text
    style, and .large-title is a standard style class now.

 data/resources/style.css   | 11 +----------
 src/widgets/pages/image.rs |  1 -
 2 files changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/data/resources/style.css b/data/resources/style.css
index 87a7ad6..2ecb8c6 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -1,16 +1,7 @@
-.large-title {
-   font-weight: 300;
-   font-size: 24pt;
-   letter-spacing: 0.2rem;
-}
 .page-title {
    font-weight: 600;
    font-size: 20pt;
 }
-.page-body {
-   font-weight: 400;
-   font-size: 12pt;
-}
 .video {
   opacity: 0;
 }
@@ -63,6 +54,6 @@ window .titlebar button {
     animation: left-and-right 2s ease-in-out infinite alternate;
     }
   .last-page { }
-  .last-page .page-title, .last-page .page-body { }
+  .last-page .page-title, .last-page { }
 
 
diff --git a/src/widgets/pages/image.rs b/src/widgets/pages/image.rs
index c4b7b3b..a271cdb 100644
--- a/src/widgets/pages/image.rs
+++ b/src/widgets/pages/image.rs
@@ -59,7 +59,6 @@ impl ImagePageWidget {
             .valign(gtk::Align::Center)
             .margin_top(12)
             .build();
-        body_label.add_css_class("page-body");
         container.append(&body_label);
 
         self.widget.append(&clamp);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]