Skip to content

Commit a88dd22

Browse files
Slight "supported by Posit" badge color tweaks (#1743) (#1748)
* Slight "supported by Posit" badge color tweaks * hover behavior for supported by Posit (cherry picked from commit 0eb7757) Co-authored-by: gregswinehart <greg@posit.co>
1 parent 3cce0d6 commit a88dd22

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

_quarto.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,11 @@ format:
685685
include-in-header:
686686
- text: |
687687
<script src="https://cdn.jsdelivr.net/gh/posit-dev/supported-by-posit/js/badge.min.js"
688-
data-light-bg="#dee2e6"
688+
data-light-bg="#E8EDF2"
689689
data-light-text="#404041"
690+
data-light-lt="#ee6331"
691+
data-light-gt="#447099"
692+
data-dark-bg="#333333"
690693
data-dark-lt="#ffffff"
691694
data-dark-gt="#ffffff"></script>
692695
include-after-body: js.html

theme-dark.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,10 @@ details > summary {
184184

185185
img.footer-logo {
186186
color: #ffffff;
187+
}
188+
189+
/* Supported by Posit badge in navbar */
190+
191+
body.quarto-dark #supported-by-posit:hover {
192+
background-color: #2C2C2D;
187193
}

theme.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@ $text-muted: #6a737b;
4343
color: $white;
4444
}
4545

46+
/* Supported by Posit badge in navbar */
47+
48+
#supported-by-posit:hover {
49+
box-shadow: 0px 0px 2px rgba(21, 21, 21, 0.05), 0px 2px 4px rgba(21, 21, 21, 0.06);
50+
background-color: #fff;
51+
transition: background-color .05s ease-in-out;
52+
}

0 commit comments

Comments
 (0)