Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 5756ffb

Browse files
committed
Fixes #25
Instead of guessing GitHub's markup in a bunch of places now we rely on the mutation observer to find and add tags to the right things, and we only style the elements that the observer has deemed worthy.
1 parent 959bc00 commit 5756ffb

File tree

1 file changed

+63
-66
lines changed

1 file changed

+63
-66
lines changed

dashboard.css

Lines changed: 63 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,93 @@
1-
#dashboard .news div .commit_comment,
2-
#dashboard .news div .create,
3-
#dashboard .news div .follow,
4-
#dashboard .news div .fork,
5-
#dashboard .news div .git-branch,
6-
#dashboard .news div .gollum,
7-
#dashboard .news div .issues_closed,
8-
#dashboard .news div .issues_comment,
9-
#dashboard .news div .issues_labeled,
10-
#dashboard .news div .issues_opened,
11-
#dashboard .news div .issues_reopened,
12-
#dashboard .news div .issues_merged,
13-
#dashboard .news div .public,
14-
#dashboard .news div .push,
15-
#dashboard .news div .release,
16-
#dashboard .news div .repo,
17-
#dashboard .news div .tag,
18-
#dashboard .news div .team_add,
19-
#dashboard .news div .member_add,
20-
#dashboard .news div .watch_started {
1+
.by_followed_people.commit_comment,
2+
.by_internet.commit_comment,
3+
.by_followed_people.create,
4+
.by_internet.create,
5+
.by_followed_people.follow,
6+
.by_internet.follow,
7+
.by_followed_people.fork,
8+
.by_internet.fork,
9+
.by_followed_people.git-branch,
10+
.by_internet.git-branch,
11+
.by_followed_people.gollum,
12+
.by_internet.gollum,
13+
.by_followed_people.issues_closed,
14+
.by_internet.issues_closed,
15+
.by_followed_people.issues_comment,
16+
.by_internet.issues_comment,
17+
.by_followed_people.issues_labeled,
18+
.by_internet.issues_labeled,
19+
.by_followed_people.issues_opened,
20+
.by_internet.issues_opened,
21+
.by_followed_people.issues_reopened,
22+
.by_internet.issues_reopened,
23+
.by_followed_people.issues_merged,
24+
.by_internet.issues_merged,
25+
.by_followed_people.public,
26+
.by_internet.public,
27+
.by_followed_people.push,
28+
.by_internet.push,
29+
.by_followed_people.release,
30+
.by_internet.release,
31+
.by_followed_people.repo,
32+
.by_internet.repo,
33+
.by_followed_people.tag,
34+
.by_internet.tag,
35+
.by_followed_people.team_add,
36+
.by_internet.team_add,
37+
.by_followed_people.member_add,
38+
.by_internet.member_add,
39+
.by_followed_people.watch_started,
40+
.by_internet.watch_started {
2141
display: none;
2242
}
2343

24-
#dashboard.show_starred_and_followed_by .news div .watch_started.by_internet,
25-
#dashboard.show_starred_and_followed_by .news div .follow.by_internet {
44+
.show_starred_and_followed_by .watch_started.by_internet,
45+
.show_starred_and_followed_by .follow.by_internet {
2646
display: block;
2747
}
2848

29-
#dashboard.show_forked_by .news div .fork.by_internet {
49+
.show_forked_by .fork.by_internet {
3050
display: block;
3151
}
3252

33-
#dashboard.show_stars_and_follows .news div .watch_started.by_followed_people,
34-
#dashboard.show_stars_and_follows .news div .follow.by_followed_people {
53+
.show_stars_and_follows .watch_started.by_followed_people,
54+
.show_stars_and_follows .follow.by_followed_people {
3555
display: block;
3656
}
3757

38-
#dashboard.show_forks .news div .fork.by_followed_people {
58+
.show_forks .fork.by_followed_people {
3959
display: block;
4060
}
4161

42-
#dashboard.show_open_source .news div .repo.by_followed_people,
43-
#dashboard.show_open_source .news div .create.by_followed_people,
44-
#dashboard.show_open_source .news div .public.by_followed_people {
62+
.show_open_source .repo.by_followed_people,
63+
.show_open_source .create.by_followed_people,
64+
.show_open_source .public.by_followed_people {
4565
display: block;
4666
}
4767

48-
#dashboard.show_releases .news div .tag,
49-
#dashboard.show_releases .news div .release {
68+
.show_releases .tag,
69+
.show_releases .release {
5070
display: block;
5171
}
5272

53-
#dashboard.show_code .news div .gollum,
54-
#dashboard.show_code .news div .git-branch,
55-
#dashboard.show_code .news div .issues_merged,
56-
#dashboard.show_code .news div .push {
73+
.show_code .gollum,
74+
.show_code .git-branch,
75+
.show_code .issues_merged,
76+
.show_code .push {
5777
display: block;
5878
}
5979

60-
#dashboard.show_conversations .news div .issues_comment,
61-
#dashboard.show_conversations .news div .commit_comment,
62-
#dashboard.show_conversations .news div .issues_opened,
63-
#dashboard.show_conversations .news div .issues_labeled,
64-
#dashboard.show_conversations .news div .issues_closed,
65-
#dashboard.show_conversations .news div .issues_reopened {
80+
.show_conversations .issues_comment,
81+
.show_conversations .commit_comment,
82+
.show_conversations .issues_opened,
83+
.show_conversations .issues_labeled,
84+
.show_conversations .issues_closed,
85+
.show_conversations .issues_reopened {
6686
display: block;
6787
}
6888

69-
#dashboard.show_administration .news div .team_add,
70-
#dashboard.show_administration .news div .member_add {
89+
.show_administration .team_add,
90+
.show_administration .member_add {
7191
display: block;
7292
}
7393

@@ -77,26 +97,3 @@
7797
margin-right: 10px;
7898
margin-top: -3px;
7999
}
80-
81-
.commit_comment .commit_comment,
82-
.create .create,
83-
.follow .follow,
84-
.fork .fork,
85-
.git-branch .git-branch,
86-
.gollum .gollum,
87-
.issues_closed .issues_closed,
88-
.issues_comment .issues_comment,
89-
.issues_labeled .issues_labeled,
90-
.issues_opened .issues_opened,
91-
.issues_reopened .issues_reopened,
92-
.issues_merged .issues_merged,
93-
.public .public,
94-
.push .push,
95-
.release .release,
96-
.repo .repo,
97-
.tag .tag,
98-
.team_add .team_add,
99-
.member_add .member_add,
100-
.watch_started .watch_started {
101-
display: block !important;
102-
}

0 commit comments

Comments
 (0)