Skip to content

Commit

Permalink
colour download icons
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Jan 15, 2024
1 parent a541961 commit a121707
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lipu/lipu.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,23 @@ css:
<ul>
<li>
<a href="/pdfs/{{lipu.pdf}}">
<img class="icon" src="/icons/file.svg" alt="file icon" />
<img class="icon colour" src="/icons/file.svg" alt="file icon" />
lipu tenpo {{lipu.title}}
<img class="icon colour" src="/icons/file.svg" alt="file icon" />
</a>
</li>
<li>
<a href="/pdfs/{{lipu.pdf_pf}}">
<img class="icon" src="/icons/printer.svg" alt="printer icon" />
<img class="icon colour" src="/icons/printer.svg" alt="printer icon" />
lipu tenpo {{lipu.title}} (tawa ilo sitelen*)
<img class="icon colour" src="/icons/printer.svg" alt="printer icon" />
</a>
</li>
<li>
<a href="/pdfs/{{lipu.pdf_bwpf}}">
<img class="icon" src="/icons/printer.svg" alt="printer icon" />
<img class="icon bnw" src="/icons/printer.svg" alt="printer icon" />
lipu tenpo {{lipu.title}} (pimeja/walo tawa ilo sitelen*)
<img class="icon bnw" src="/icons/printer.svg" alt="printer icon" />
</a>
</li>
</ul>
Expand Down
11 changes: 11 additions & 0 deletions public/stylesheet-lipu.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ h2 {
height: 1.5rem;
width: auto;
margin-right: 0.5rem;
margin-left: 0.5rem;
}
.pdfs .icon.colour {
/* filter: invert(97%) sepia(82%) saturate(721%) hue-rotate(328deg)
brightness(108%) contrast(101%); */
filter: invert(80%) sepia(18%) saturate(763%) hue-rotate(8deg) brightness(99%)
contrast(87%);
}
.pdfs .icon.bnw {
filter: invert(16%) sepia(0%) saturate(1649%) hue-rotate(146deg)
brightness(96%) contrast(87%);
}

.embed {
Expand Down

0 comments on commit a121707

Please sign in to comment.