From a9da28e256ae42324499dfac722c40ccede15e9e Mon Sep 17 00:00:00 2001 From: George <31376482+george-gca@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:45:04 -0300 Subject: [PATCH] Renamed `repo-img-` to `only-` to allow setting images for only one theme (#2886) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #930. We already had classes for this kind of feature, but it was used specifically for repository information. Just renamed the classes so it is clear how they can be used. To use them with markdown, just do it like this: ```markdown ![Only light](assets/img/prof_pic_color.png){: .only-light} ![Only dark](assets/img/prof_pic.jpg){: .only-dark} ``` and with html: ```html ``` Signed-off-by: George Araújo --- _includes/repository/repo.liquid | 4 ++-- _includes/repository/repo_trophies.liquid | 12 ++++++------ _includes/repository/repo_user.liquid | 4 ++-- _sass/_themes.scss | 10 ++++++---- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/_includes/repository/repo.liquid b/_includes/repository/repo.liquid index c9837bb..0f1afd4 100644 --- a/_includes/repository/repo.liquid +++ b/_includes/repository/repo.liquid @@ -14,12 +14,12 @@
{{ include.repository }} {{ include.repository }} diff --git a/_includes/repository/repo_trophies.liquid b/_includes/repository/repo_trophies.liquid index 07a8d42..8535bd5 100644 --- a/_includes/repository/repo_trophies.liquid +++ b/_includes/repository/repo_trophies.liquid @@ -2,12 +2,12 @@ {{ include.username }} {{ include.username }} @@ -15,12 +15,12 @@ {{ include.username }} {{ include.username }} @@ -28,12 +28,12 @@ {{ include.username }} {{ include.username }} diff --git a/_includes/repository/repo_user.liquid b/_includes/repository/repo_user.liquid index 35c301d..7dc959f 100644 --- a/_includes/repository/repo_user.liquid +++ b/_includes/repository/repo_user.liquid @@ -1,12 +1,12 @@