From 213ba179559dd25cced9e62cda4a0e3da6e6b54a Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Wed, 21 May 2025 22:45:04 +0200 Subject: [PATCH] fix css --- src/cards/repo-card.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/cards/repo-card.js b/src/cards/repo-card.js index 173c494c..34174d7d 100644 --- a/src/cards/repo-card.js +++ b/src/cards/repo-card.js @@ -257,9 +257,26 @@ const renderRepoCard = (repo, options = {}) => { card.setCSS(` .description { font: 400 13px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${colors.textColor} } .gray { font: 400 12px 'Segoe UI', Ubuntu, Sans-Serif; fill: ${colors.textColor} } - .icon { fill: ${colors.iconColor} } .badge { font: 600 11px 'Segoe UI', Ubuntu, Sans-Serif; } .badge rect { opacity: 0.2 } + + .stat { + font: 600 14px 'Segoe UI', Ubuntu, "Helvetica Neue", Sans-Serif; fill: ${textColor}; + } + @supports(-moz-appearance: auto) { + /* Selector detects Firefox */ + .stat { font-size:12px; } + } + .stagger { + opacity: 0; + animation: fadeInAnimation 0.3s ease-in-out forwards; + } + .not_bold { font-weight: 400 } + .bold { font-weight: 700 } + .icon { + fill: ${colors.iconColor}; + display: ${show_icons ? "block" : "none"}; + } `); return card.render(`