Skip to content

Commit

Permalink
fix notification preview headers - fixes #1012
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed May 15, 2020
1 parent 5df2036 commit 934235a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
25 changes: 23 additions & 2 deletions github-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -4840,6 +4840,11 @@
body[class="page-responsive"] .Box-row {
border-top-color: #343434;
}
/* github.com mobile: "box-shadow: inset 2px 0 0 #0366d6" */
body[class="page-responsive"] .Box-row.Box-row--unread,
body[class="page-responsive"] .Box-row.unread {
box-shadow: inset 2px 0 0 #eee;
}
/* github.com mobile: "color: #0366d6" */
body[class="page-responsive"] .Box-row.navigation-focus .Box-row--drag-button {
color: /*[[base-color]]*/ #4f8cc9;
Expand Down Expand Up @@ -7284,6 +7289,10 @@
.Box-row {
border-top-color: #343434;
}
/* github.com: "box-shadow: inset 2px 0 0 #0366d6" */
.Box-row.Box-row--unread, .Box-row.unread {
box-shadow: inset 2px 0 0 #eee;
}
/* github.com: "color: #0366d6" */
.Box-row.navigation-focus .Box-row--drag-button {
color: /*[[base-color]]*/ #4f8cc9;
Expand Down Expand Up @@ -9709,6 +9718,10 @@
.table-list-bordered .table-list-cell:last-child {
border-right-color: #343434;
}
/* github.com: "box-shadow: inset 2px 0 0 #0366d6" */
.table-list-item.unread .table-list-cell:first-child {
box-shadow: inset 2px 0 0 #eee;
}
/* github.com: "border-top: 1px solid #eaecef" */
.table-list-cell {
border-top-color: #343434;
Expand Down Expand Up @@ -12319,9 +12332,10 @@
color: #bebebe !important;
background-color: #343434 !important;
}
/* github.com: "background-color: #f1f8ff !important" */
/* github.com: "background-color: #f1f8ff !important", "box-shadow: inset 2px 0 0 #0366d6" */
.notifications-list-item.navigation-focus {
background-color: #182030 !important;
box-shadow: inset 2px 0 0 #eee;
}
/* github.com: "color: #24292e !important" */
.notifications-list-item.navigation-focus .notification-list-item-link {
Expand Down Expand Up @@ -13994,11 +14008,14 @@
.Box--responsive .Box-row--unread::before {
background-image: linear-gradient(/*[[base-color]]*/ #4f8cc9, /*[[base-color]]*/ #4f8cc9);
}
/* github.com: "border: 1px solid #d1d5da" */
/* github.com: "border: 1px solid #d1d5da", "box-shadow: inset 2px 0 0 #0366d6" */
@media (min-width: 544px) {
.Box--responsive {
border-color: #404040;
}
.Box--responsive .Box-row--unread {
box-shadow: inset 2px 0 0 #eee;
}
}
/* github.com: "color: #6a737d" */
@media (max-width: 767px) {
Expand Down Expand Up @@ -19499,6 +19516,10 @@
.npmhub-deps > li {
border-bottom-color: #343434;
}
/* notifications preview: "color: rgb(36,41,46)" */
:root:root .NPG-dropdown {
color: rgb(210, 210, 210) !important;
}
/* notifications preview: "background-color: #e6ebf1" */
.participating .js-notifications-browser::before {
background-color: #444;
Expand Down
3 changes: 3 additions & 0 deletions tools/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ const mappings = {
"box-shadow: 0 1px 0 0 #0058a2": "box-shadow: 0 1px 0 0 /*[[base-color]]*/ #4f8cc9",
"box-shadow: 0 0 0.2em #c8e1ff": "box-shadow: 0 0 .2em /*[[base-color]]*/ #4f8cc9",

"box-shadow: inset 2px 0 0 #0366d6": "box-shadow: inset 2px 0 0 #eee",

// ==========================================================================
// Color / Background
// ==========================================================================
Expand Down Expand Up @@ -199,6 +201,7 @@ const mappings = {
"color: rgba(27,31,35,.6)": "color: rgba(230,230,230,.6)",
"color: rgba(27,31,35,.3)": "color: rgba(230,230,230,.3)",
"color: rgba(36,41,46,.4)": "color: rgba(210,210,210,.4)",
"color: rgb(36,41,46)": "color: rgb(210,210,210) !important", // notifications preview

"color: hsla(0,0%,100%,.5)": "color: hsla(0,0%,100%,.5)",
"color: hsla(0,0%,100%,.6)": "color: hsla(0,0%,100%,.4)",
Expand Down

1 comment on commit 934235a

@fregante
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Please sign in to comment.