Bladeren bron

Invert colors in skills' tags

theenglishway (time) 2 jaren geleden
bovenliggende
commit
d8729053e2
2 gewijzigde bestanden met toevoegingen van 17 en 1 verwijderingen
  1. 8 0
      lib/views/skill.ex
  2. 9 1
      lib/views/work.ex

+ 8 - 0
lib/views/skill.ex

@@ -31,5 +31,13 @@ defmodule CvGenView.Skill do
       background-color: #333;
       border-radius: 0.5em;
     }
+
+    @media print {
+      #skills .keywords > li {
+        color: #000;
+        background-color: #fff;
+        border: #000 solid 0.2em;
+      }
+    }
     """
 end

+ 9 - 1
lib/views/work.ex

@@ -21,7 +21,7 @@ defmodule CvGenView.Work do
 
       <h1><%= @position %></h1>
 
-      <Text.text text={@summary} class="summary"/>
+      <Text.text text={@summary} class="summary" />
 
       <h2>Points clés</h2>
       <ul class="highlights">
@@ -120,5 +120,13 @@ defmodule CvGenView.Work do
       background-color: #333;
       border-radius: 0.5em;
     }
+
+    @media print {
+      #work .skills > li {
+        color: #000;
+        background-color: #fff;
+        border: #000 solid 0.2em;
+      }
+    }
     """
 end