mirror of
https://codeberg.org/forgejo/forgejo
synced 2025-10-19 13:00:51 +02:00
Applying a distinct background color to wiki content ensures that content with a background color (eg. code blocks) actually stands out against the background. Fixes #9391. Before: - https://codeberg.org/forgejo/forgejo/attachments/72c2530b-a79b-45e7-8980-db0b33a4ca85 - https://codeberg.org/forgejo/forgejo/attachments/3195cc83-1f8b-46c8-8eb8-2b1ceb0bce28 - https://codeberg.org/forgejo/forgejo/attachments/8922db5a-c57b-44e5-a4de-9cfbd0ba207f - https://codeberg.org/forgejo/forgejo/attachments/5815022f-f03a-476b-9dec-b224c4c14f12 After: - https://codeberg.org/forgejo/forgejo/attachments/f3a0cb17-b829-4bc6-ae07-f06d111a103e - https://codeberg.org/forgejo/forgejo/attachments/e1cf97e5-44a0-4dce-85ab-a594c4474ab8 (same) - https://codeberg.org/forgejo/forgejo/attachments/7edd5163-186c-488a-a6c1-b093edc0be43 - https://codeberg.org/forgejo/forgejo/attachments/5815022f-f03a-476b-9dec-b224c4c14f12 (same) Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9400 Reviewed-by: 0ko <0ko@noreply.codeberg.org> Co-authored-by: Jordan Atwood <nightfirecat@nightfirec.at> Co-committed-by: Jordan Atwood <nightfirecat@nightfirec.at>
77 lines
1.7 KiB
CSS
77 lines
1.7 KiB
CSS
.repository.wiki .wiki-pages-list tr:hover {
|
|
background-color: var(--color-hover);
|
|
}
|
|
|
|
.repository.wiki .wiki-pages-list .wiki-git-entry {
|
|
margin-left: 10px;
|
|
display: none;
|
|
}
|
|
|
|
.repository.wiki .wiki-pages-list tr:hover .wiki-git-entry {
|
|
display: inline-block;
|
|
}
|
|
|
|
.repository.wiki .markup {
|
|
overflow: visible;
|
|
}
|
|
|
|
.repository.wiki .markup[data-tab-panel="markdown-previewer"] {
|
|
min-height: 340px; /* This height matches the markdown editor's height */
|
|
}
|
|
|
|
.repository.wiki .ui.message.unicode-escape-prompt {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-parts .markup {
|
|
background-color: var(--color-box-body);
|
|
border: 1px solid var(--color-secondary);
|
|
border-radius: var(--border-radius);
|
|
padding: 1em;
|
|
margin-top: 1em;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-main.with-sidebar {
|
|
float: left;
|
|
width: 80%;
|
|
max-width: calc(100% - 150px - 1em); /* match the min-width of .wiki-content-sidebar */
|
|
}
|
|
|
|
.repository.wiki .wiki-content-sidebar {
|
|
float: right;
|
|
width: calc(20% - 1em);
|
|
min-width: 150px;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-sidebar .ui.message.unicode-escape-prompt p {
|
|
display: none;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-footer {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-toc ul {
|
|
margin: 0;
|
|
list-style: none;
|
|
padding: 5px 0 5px 1em;
|
|
}
|
|
|
|
.repository.wiki .wiki-content-toc ul ul {
|
|
border-left: 1px var(--color-secondary);
|
|
border-left-style: dashed;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.repository.wiki .clone-panel #repo-clone-url {
|
|
width: 160px;
|
|
}
|
|
.repository.wiki .wiki-content-main.with-sidebar,
|
|
.repository.wiki .wiki-content-sidebar {
|
|
float: none;
|
|
width: 100%;
|
|
min-width: unset;
|
|
max-width: unset;
|
|
}
|
|
}
|