feat(github): enforce built-in theme (#154)
This commit is contained in:
1 parent
691e64c77d
commit
d2e18c8a4f
3 files changed
+20
-2
No files matched your search
+2
-1
@@ -126,7 +126,7 @@ userstyles:
|
|||||||
color: green
|
color: green
|
||||||
readme:
|
readme:
|
||||||
app-link: "https://chess.com"
|
app-link: "https://chess.com"
|
||||||
current-maintainers: [ *coldenate, *isabelroses, *skelebro1 ]
|
current-maintainers: [*coldenate, *isabelroses, *skelebro1]
|
||||||
cinny:
|
cinny:
|
||||||
name: Cinny
|
name: Cinny
|
||||||
category: messaging
|
category: messaging
|
||||||
@@ -171,6 +171,7 @@ userstyles:
|
|||||||
category: productivity
|
category: productivity
|
||||||
color: text
|
color: text
|
||||||
readme:
|
readme:
|
||||||
|
usage: "Switch to a default GitHub light/dark theme for the best experience!"
|
||||||
app-link: "https://github.com"
|
app-link: "https://github.com"
|
||||||
current-maintainers: [*pocco81, *glowingumbreon]
|
current-maintainers: [*pocco81, *glowingumbreon]
|
||||||
past-maintainers: [*andreasgrafen]
|
past-maintainers: [*andreasgrafen]
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
<img src="assets/mocha.webp"/>
|
<img src="assets/mocha.webp"/>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Switch to a default GitHub light/dark theme for the best experience!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html:not([data-light-theme="light"]) body::after, html:not([data-dark-theme="dark"]) body::after {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 1rem;
|
||||||
|
margin: 1rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 600;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
max-width: 40ch;
|
||||||
|
background-color: var(--color-danger-fg);
|
||||||
|
color: var(--color-header-bg);
|
||||||
|
content: "You're using an unsupported GitHub theme! Please switch to the default light/dark theme to get the best experience for the Catppuccin GitHub userstyle.";
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
||||||
|
|
||||||
#coloredButton(@name, @color) {
|
#coloredButton(@name, @color) {
|
||||||
--color-btn-@{name}-text: @base;
|
--color-btn-@{name}-text: @base;
|
||||||
--color-btn-@{name}-bg: @color;
|
--color-btn-@{name}-bg: @color;
|
||||||
|
|||||||
Reference in new issue
Block a user