Skip to content

Commit

Permalink
openvk midn. support, change midn.photomodal color
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Jan 12, 2025
1 parent f9ad37b commit 43548f5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Web/Presenters/templates/Documents/components/doc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{/if}
</a>
<div class="doc_content noOverflow">
<a class="viewerOpener" href="/doc{$doc->getPrettyId()}?key={$doc->getAccessKey()}"><b class="noOverflow doc_name">{$doc->getName()}</b></a>
<a class="viewerOpener noOverflow" href="/doc{$doc->getPrettyId()}?key={$doc->getAccessKey()}"><b class="noOverflow doc_name">{$doc->getName()}</b></a>

<div class="doc_content_info">
<span>{$doc->getPublicationTime()}</span>,
Expand Down
2 changes: 1 addition & 1 deletion Web/Presenters/templates/components/attachment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

<div class='attachment_note_content'>
<span class="attachment_note_text">{_document}</span>
<span class="attachment_note_name"><a href="/doc{$attachment->getPrettyId()}">{ovk_proc_strtr($attachment->getName(), 50)}</a></span>
<span class="attachment_note_name"><a href="/doc{$attachment->getPrettyId()}">{ovk_proc_strtr($attachment->getName(), 40)}</a></span>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion Web/static/js/al_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function showDocumentUploadDialog(target = null, append_to_url = null, after_upl
`,
buttons: [tr('close')],
callbacks: [Function.noop],
unique_name: "doc_upload_dialog",
})

cmsg.getNode().find('.ovk-diag-body').attr('style', "padding:15px;")
Expand Down Expand Up @@ -126,6 +127,7 @@ u(document).on('click', '.docMainItem #edit_icon', async (e) => {
}

const cmsg_2 = new CMessageBox({
unique_name: "document_edit_modal",
title: tr("document_editing_in_general"),
body: `
<p><b>${tr("info_name")}</b></p>
Expand Down Expand Up @@ -401,7 +403,7 @@ async function __docAttachment(form, ctx = "wall", source = "user", source_arg =
res.find(".docMainItem").attr("style", "width: 85%;")
res.append(`
<div class="attachButton" id='__attach_doc'>
<span>${this.isDocAttached(id) ? tr("detach") : tr("attach")}</span>
${this.isDocAttached(id) ? tr("detach") : tr("attach")}
</div>
`)
u('#_attachment_insert .docsInsert').append(res)
Expand Down
29 changes: 27 additions & 2 deletions themepacks/midnight/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ html {

body,
#backdropDripper,
#standaloneCommentBox,
#standaloneCommentBox {
background-color: #0e0b1a;
color: #c6d2e8;
}

.ovk-photo-view,
.articleView {
background-color: #0e0b1a;
background-color: #100539;
color: #c6d2e8;
}

Expand Down Expand Up @@ -633,3 +637,24 @@ ul {
border: 1px solid #383052;
background: #1e1b2a;
}

#docs_page_wrapper .docs_page_search {
background: #1d1a27;
border-bottom: #2a2841 solid 1px;
}

.docListViewItem {
border-bottom-color: #2a2841;
}

.docListViewItem:hover, .attachButton:hover {
background: #271c48;
}

.docListViewItem .doc_icon {
background: #33255e;
}

.docListViewItem .doc_content b {
color: #7c94c5;
}

0 comments on commit 43548f5

Please sign in to comment.