[Git][reproducible-builds/reproducible-website][master] Use a CSS class instead of specifying style=

Mattia Rizzolo gitlab at salsa.debian.org
Tue Apr 13 13:04:23 UTC 2021



Mattia Rizzolo pushed to branch master at Reproducible Builds / reproducible-website


Commits:
517f7595 by Mattia Rizzolo at 2021-04-13T15:01:01+02:00
Use a CSS class instead of specifying style=

CSP, etc

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


5 changed files:

- _includes/navbar.html
- _layouts/default.html
- _layouts/home.html
- _layouts/no_sidebar.html
- assets/styles/custom.scss


Changes:

=====================================
_includes/navbar.html
=====================================
@@ -19,7 +19,7 @@
 
       <li class="nav-item dropdown">
         <a class="nav-link dropdown-toggle" href="#" id="languagesNavbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
-          <img style="opacity: 0.5;" src="{{ "/assets/images/icons/translate-white-24dp.svg" | relative_url }}" alt="change language" height="24" width="24"/>
+          <img class="half-opacity" src="{{ "/assets/images/icons/translate-white-24dp.svg" | relative_url }}" alt="change language" height="24" width="24"/>
         </a>
         <div class="dropdown-menu" aria-labelledby="languagesNavbarDropdown">
           {% for tongue in site.languages %}
@@ -35,7 +35,7 @@
   <ul class="navbar-nav display-md">
     <li class="nav-item dropdown">
       <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
-        <img style="opacity:0.5;" src="{{ "/assets/images/icons/translate-white-24dp.svg" | relative_url }}" alt="change language" height="24" width="24"/>
+        <img class="half-opacity" src="{{ "/assets/images/icons/translate-white-24dp.svg" | relative_url }}" alt="change language" height="24" width="24"/>
       </a>
       <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
         {% for tongue in site.languages %}


=====================================
_layouts/default.html
=====================================
@@ -4,7 +4,7 @@
   <body>
     {% include navbar.html %}
 
-    <div class="row" style="height: 100%">
+    <div class="row h-100">
       <div class="col-md-2 col-sm-3 d-none d-sm-block p-0">
         {% include navbar_side.html sidebarClassName="rb-sidebar__1" %}
       </div>


=====================================
_layouts/home.html
=====================================
@@ -4,7 +4,7 @@
 
 <body>
   {% include navbar.html %}
-  <div class="row" style="height: 100%">
+  <div class="row h-100">
     <div class="col-md-2 col-sm-3 d-none d-sm-block p-0">
       {% include navbar_side.html sidebarClassName="rb-sidebar__1" %}
     </div>


=====================================
_layouts/no_sidebar.html
=====================================
@@ -5,7 +5,7 @@
     {% include navbar.html %}
 
     <div class="container">
-      <div class="row" style="height: 100%">
+      <div class="row h-100">
         <main role="main" class="content-scroll p-3 p-md-5">
           {{ content }}
 


=====================================
assets/styles/custom.scss
=====================================
@@ -35,6 +35,10 @@ main {
     max-width: 100%;
     padding-bottom: 0.5rem;
 
+    &.half-opacity {
+      opacity: 0.5;
+    }
+
     &.project-img {
       max-height: 165px;
     }



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/517f7595d9df37286f09620d2c4f26d4f698a4e1

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/517f7595d9df37286f09620d2c4f26d4f698a4e1
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210413/5c7896b6/attachment.htm>


More information about the rb-commits mailing list