question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Color gradient for files age

See original GitHub issue

Description

Hi

I’m constantly looking for new GitHub projects and one thing that I care the most is maintenance activity (e.g. date of last commit). So, I created a little extension, which runs only on GitHub pages. So fresh commits would become green and old — red.

Array.from(document.querySelectorAll('[datetime]')).map(x => 
  x.innerHTML = `<span style='filter: sepia(1) saturate(80) hue-rotate(${100 - 25 * (new Date() - new Date(x.getAttribute('datetime')))/(365 * 24 * 60 * 60 * 1000)}deg);'>${x.innerText}</span>`
) 

You can paste this in console on any repository page

Maybe it would be interesting for you to merge if I would create a PR?

Screenshot

2021-11-17_15-49

Example URL

https://github.com/refined-github/refined-github

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
fregantecommented, Jul 19, 2022

I like it. Let’s go! 🛳

1reaction
yakov116commented, Jul 19, 2022

Anyone can take this up as I am away for the next week.

If not I will do it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Color Gradients to Improve Your Visuals
A good way to improve this visual is to change it into a 100% Stacked bar chart and use color gradients to easily...
Read more >
A Complete Guide to CSS Gradients
A gradient going from top to bottom is again at 90deg only in the old spec from ages ago. In this new spec,...
Read more >
Color gradients reflect an inside-out growth in early-type ...
We explain the observed radial trends of color gradients as a result of the ages and metallicities of the respective stellar populations. Red...
Read more >
Color Gradients along the Quiescent Galaxy Sequence
The strength of color gradients in quiescent galaxies is a clear function of age, with older galaxies exhibiting stronger negative color gradients (i.e.,...
Read more >
Color gradient - Wikipedia
In color science, a color gradient specifies a range of position-dependent colors, usually used to fill a region. A linear, or axial, color...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found