Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Tweak: Stacked badges #960

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
721a8b4
Create checkmark_stack.js
marcustyphoon Feb 8, 2023
ba1bebd
Prevent animation on page load
marcustyphoon Feb 8, 2023
409480f
cleanup
marcustyphoon Feb 8, 2023
a7115b6
Merge remote-tracking branch 'upstream/master' into checkmark-stack
marcustyphoon Feb 12, 2023
672868d
update dynamic style insertion
marcustyphoon Feb 12, 2023
42d9b85
only apply drop shadow when stacked
marcustyphoon Feb 12, 2023
316e1eb
refactor
marcustyphoon Feb 12, 2023
86d05ee
update js for "badge" rename
marcustyphoon Mar 18, 2023
2396df1
update filename for "badge" rename
marcustyphoon Mar 18, 2023
8f9071e
exclude blog headers
marcustyphoon Mar 24, 2023
b5a0833
Revert "exclude blog headers"
marcustyphoon Mar 24, 2023
ccb5ffb
exclude blog headers (correctly)
marcustyphoon Mar 31, 2023
d62606d
fix for margin change
marcustyphoon May 11, 2023
4a4e9cd
use --badges-index to simplify
marcustyphoon May 11, 2023
8fbd365
ignore tooManyBadges
marcustyphoon May 11, 2023
15c86a5
Revert "ignore tooManyBadges"
marcustyphoon May 11, 2023
06b9b22
disable tooManyBadges (sort of hacky)
marcustyphoon May 11, 2023
06ec085
don't expand on username hover
marcustyphoon May 11, 2023
0382ef3
style consistency
marcustyphoon May 11, 2023
3840ba5
exclude blog headers in tooManyBadges removal
marcustyphoon May 11, 2023
7d1221f
update stacked badges for (more) dom changes
marcustyphoon Jun 28, 2023
2f36df5
Revert "update stacked badges for (more) dom changes"
marcustyphoon Jun 28, 2023
48c496d
update stacked badges for (more) dom changes
marcustyphoon Jun 28, 2023
f497d4e
Merge branch 'master' into checkmark-stack
marcustyphoon Aug 25, 2023
df23c65
partially update stacked badges for (even more) dom changes
marcustyphoon Aug 25, 2023
0496967
fix trail headers, wrapping, z-index, etc
marcustyphoon Aug 25, 2023
40a0723
Update tweaks.json
marcustyphoon Aug 25, 2023
d82faf9
remove shrinkBadges override
marcustyphoon Apr 30, 2024
11536ce
revert change I don't know why I made
marcustyphoon Apr 30, 2024
ee4ec81
tweak hover target
marcustyphoon Apr 30, 2024
c0612e1
use `transition-behavior: allow-discrete`
marcustyphoon May 25, 2024
620c337
preserve useful part of comment
marcustyphoon May 25, 2024
1d8e791
Merge branch 'master' into checkmark-stack
marcustyphoon Jun 22, 2024
1b8b507
Merge branch 'master' into checkmark-stack
marcustyphoon Jun 23, 2024
970c741
Merge branch 'master' into checkmark-stack
marcustyphoon Aug 19, 2024
7ab0fa9
use automatic `styleElement`
marcustyphoon Aug 19, 2024
42aff68
Merge branch 'master' into checkmark-stack
marcustyphoon Sep 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/scripts/tweaks/badge_stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { pageModifications } from '../../util/mutations.js';
let styleElementMaxBadges = 0;
const styleElement = buildStyle();

const wrapper = keyToCss('badgesContainer');
const wrapper = `:is(article ${keyToCss('badgesContainer')})`;
AprilSylph marked this conversation as resolved.
Show resolved Hide resolved
const badgeContainer = `${wrapper} > ${keyToCss('badgeContainer')}`;
const badgeImage = `${badgeContainer} > :is(svg, img)`;

Expand Down