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

night mode fixes for candidate packages and reverse dependencies #1162

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
57 changes: 46 additions & 11 deletions datafiles/static/hackage.css
Expand Up @@ -140,22 +140,38 @@ pre, code, kbd, samp, .src {
font-size: 85%; /* 11pt */
}

.candidate-warn {
background-color: #ffdddd;
@media (prefers-color-scheme: dark) {
.candidate-warn {
border-left: 6px solid #f44336;
padding: 0.01em 16px;
margin-bottom: 8px !important;
margin-top: 8px !important;
}

.candidate-info {
border-left: 6px solid #2196F3;
padding: 0.01em 16px;
margin-bottom: 8px;
}
}

.candidate-info {
@media (prefers-color-scheme: light) {
.candidate-warn {
background-color: #ffdddd;
border-left: 6px solid #f44336;
padding: 0.01em 16px;
margin-bottom: 8px !important;
margin-top: 8px !important;
}

.candidate-info {
background-color: #e7f3fe;
border-left: 6px solid #2196F3;
padding: 0.01em 16px;
margin-bottom: 8px;
}
}


/* @end */

/* @group Common */
Expand Down Expand Up @@ -529,7 +545,6 @@ table.properties td, table.properties th {
padding-bottom: 3em;
}


#page-header {
background: #5E5184;
border-bottom: 5px solid rgba(69, 59, 97, 0.5);
Expand Down Expand Up @@ -1014,12 +1029,21 @@ p.tip {

/* Misc admin forms */

.box {
background: #faf9dc;
border: 1px solid #d8d7ad;
padding: 0.5em 1em;
max-width: 35em;
margin: 0.5em 0 1em 1em;
@media (prefers-color-scheme: dark) {
.box {
padding: 0.5em 1em;
max-width: 35em;
margin: 0.5em 0 1em 1em;
}
}
@media (prefers-color-scheme: light) {
.box {
background: #faf9dc;
border: 1px solid #d8d7ad;
padding: 0.5em 1em;
max-width: 35em;
margin: 0.5em 0 1em 1em;
}
}

table.simpletable th, table.simpletable td {
Expand Down Expand Up @@ -1210,3 +1234,14 @@ a.deprecated[href]:visited {
.paginator .current:hover {
border: 1px solid #979797;
}

@media (prefers-color-scheme: dark) {
div#modal #content {
background: #222;
}
}
@media (prefers-color-scheme: light) {
div#modal #content {
background: #fff;
}
}
1 change: 0 additions & 1 deletion datafiles/templates/packagePageAssets.st
Expand Up @@ -20,7 +20,6 @@

div#modal #content {
border-radius: 8px;
background: #fff;
Copy link
Member Author

Choose a reason for hiding this comment

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

has to be removed, otherwise it takes precedence over hackage.css

padding: 20px;
}

Expand Down