[tor-commits] [lego/master] Fix sub-header capitalization

antonela at torproject.org antonela at torproject.org
Mon Apr 13 16:31:42 UTC 2020


commit d08dee25e96a81c12727755ecf53414549e7a540
Author: Antonela <hola at antonela.me>
Date:   Mon Apr 13 13:31:01 2020 -0300

    Fix sub-header capitalization
    
    Seems like someone edited the .css but the fix was removing the class from the header. So, fixed the shared style file and set the proper class to the header element.
---
 assets/scss/utilities/_text.scss | 6 +++---
 templates/header.html            | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/assets/scss/utilities/_text.scss b/assets/scss/utilities/_text.scss
index eef0ee7..7445bfc 100644
--- a/assets/scss/utilities/_text.scss
+++ b/assets/scss/utilities/_text.scss
@@ -24,9 +24,9 @@
 
 // Transformation
 
-.text-lowercase  { text-transform: none !important; }
-.text-uppercase  { text-transform: none !important; }
-.text-capitalize { text-transform: none !important; }
+.text-lowercase  { text-transform: lowercase;}
+.text-uppercase  { text-transform: uppercase;}
+.text-capitalize { text-transform: capitalize;}
 
 // Weight and italics
 
diff --git a/templates/header.html b/templates/header.html
index 9290699..3e4b29b 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -12,7 +12,7 @@
       <div class="row">
         <div class="col-12 content-center pt-5">
           <div class="row">
-            <h6 class="mx-auto text-white text-uppercase">{% block section %}{{ this.section }}{% endblock %}</h6>
+            <h6 class="mx-auto text-white text-capitalize">{% block section %}{{ this.section }}{% endblock %}</h6>
           </div>
           <div class="row pb-5">
             <h2 class="mx-auto display-3 text-white text-capitalize">{% block title %}{{ this.title }}{% endblock %}</h2>



More information about the tor-commits mailing list