-
+
@@ -15,18 +15,18 @@
{include infotable, x => $dat}
{else}
-
+
{$video->getName()}
- {$video->getDescription() ?? ""}
+ {$video->getDescription() ?? ""}
{_video_uploaded} {$video->getPublicationTime()}
- {_view_video}
+ {_view_video}
{if $video->getCommentsCount() > 0}| {_comments} ({$video->getCommentsCount()}){/if}
{/ifset}
diff --git a/Web/static/css/audios.css b/Web/static/css/audios.css
index a6c4a5f8..45c131df 100644
--- a/Web/static/css/audios.css
+++ b/Web/static/css/audios.css
@@ -31,6 +31,12 @@
z-index: 1;
}
+.bigPlayer.tidy {
+ width: 100%;
+ margin-left: unset;
+ margin-top: unset;
+}
+
.bigPlayer.floating {
position: fixed;
z-index: 199;
@@ -177,6 +183,7 @@
text-overflow: ellipsis;
white-space: nowrap;
width: 81%;
+ height: 13px;
display: inline-block;
}
@@ -588,8 +595,6 @@
margin-left: 3px;
width: 11px;
height: 11px;
- background: url('/assets/packages/static/openvk/img/explicit.svg');
- background-repeat: no-repeat;
}
.explicitMark path {
diff --git a/Web/static/css/main.css b/Web/static/css/main.css
index 075b9533..cf078a33 100644
--- a/Web/static/css/main.css
+++ b/Web/static/css/main.css
@@ -2675,6 +2675,10 @@ a.poll-retract-vote {
width: 74%;
}
+.page_wrap_content_main.audios_padding {
+ padding: 8px 8px;
+}
+
.page_wrap_content_main .def_row_content {
border-bottom: #ECECEC solid 1px;
padding: 3px 1px;
@@ -2747,6 +2751,13 @@ a.poll-retract-vote {
background: #ebebeb;
}
+.highlight {
+ background: #ffea6d;
+ border-bottom: 1px solid #c7c727;
+ font-weight: bolder;
+ padding: 0px 1px;
+}
+
/* Options */
.page_wrap_content .page_search_options {
diff --git a/Web/static/js/openvk.cls.js b/Web/static/js/openvk.cls.js
index 43cb9141..64700084 100644
--- a/Web/static/js/openvk.cls.js
+++ b/Web/static/js/openvk.cls.js
@@ -500,15 +500,35 @@ function escapeHtml(text) {
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}
-function highlightText(selector, searchText) {
- const container = u(selector)
- let innerHTML = container.html()
- const index = innerHTML.indexOf(searchText)
+function highlightText(searchText, container_selector, selectors = []) {
+ const container = u(container_selector)
+ const regexp = new RegExp(`(${searchText})`, 'gi')
- if(index >= 0) {
- innerHTML = innerHTML.substring(0, index) + "
" + innerHTML.substring(index, index + searchText.length) + "" + innerHTML.substring(index + searchText.length)
- container.html(innerHTML)
+ function highlightNode(node) {
+ if(node.nodeType == 3) {
+ let newNode = escapeHtml(node.nodeValue)
+ newNode = newNode.replace(regexp, (match, ...args) => {
+ return `
${escapeHtml(match)}`
+ })
+
+ const tempDiv = document.createElement('div')
+ tempDiv.innerHTML = newNode
+
+ while(tempDiv.firstChild) {
+ node.parentNode.insertBefore(tempDiv.firstChild, node)
+ }
+ node.parentNode.removeChild(node)
+ } else if(node.nodeType === 1 && node.tagName !== 'SCRIPT' && node.tagName !== 'BR' && node.tagName !== 'STYLE') {
+ Array.from(node.childNodes).forEach(highlightNode);
+ }
}
+
+ selectors.forEach(selector => {
+ elements = container.find(selector)
+ if(!elements || elements.length < 1) return;
+
+ elements.nodes.forEach(highlightNode)
+ })
}
String.prototype.escapeHtml = function() {
diff --git a/locales/ru.strings b/locales/ru.strings
index a8b8fbd6..6984890c 100644
--- a/locales/ru.strings
+++ b/locales/ru.strings
@@ -1922,7 +1922,7 @@
"s_any_single" = "любой";
"reset" = "Сброс";
-"closed_group_post" = "Эта запись из закрытой группы";
+"closed_group_post" = "Запись с закрытой стены";
"deleted_target_comment" = "Этот комментарий принадлежит к удалённой записи";
"no_results" = "Результатов нет";
diff --git a/themepacks/midnight/stylesheet.css b/themepacks/midnight/stylesheet.css
index 4cdef046..53945976 100644
--- a/themepacks/midnight/stylesheet.css
+++ b/themepacks/midnight/stylesheet.css
@@ -124,14 +124,13 @@ th,
.tippy-box[data-theme~="vk"],
.poll,
#standaloneCommentBox,
-.searchBtn,
-.searchList #used,
-.searchOptionName,
+#search_box_button,
+.verticalGrayTabs #used,
+.search_option_name,
.borderup,
#tour,
#auth,
-.ovk-photo-view,
-.searchOptions {
+.ovk-photo-view {
border-color: #2c2640 !important;
}
@@ -155,11 +154,15 @@ hr {
.messagebox-content-header,
.accent-box,
.button_search,
-.searchBtn,
-.searchOptionName {
+.search_box_button {
background-color: #383052;
}
+.search_option_name {
+ background-color: #383052 !important;
+ color: lightgrey !important;
+}
+
.tab:hover {
background-color: #40375e;
}
@@ -176,7 +179,7 @@ hr {
}
.bsdn_contextMenuElement:hover,
-.searchList li:hover {
+.verticalGrayTabs li:hover {
background-color: #29223a;
}
@@ -208,7 +211,7 @@ a,
.paginator a:hover,
.post-share-button:hover,
.post-like-button:hover,
-.searchBtn:active {
+#search_box_button:active {
background-color: #272138 !important;
}
@@ -261,7 +264,9 @@ center[style="background: white;border: #DEDEDE solid 1px;"],
.album-photo img,
#faqhead,
td.e,
-tr.e {
+tr.e,
+.playlistListView:hover,
+.playlistListView .playlistCover {
background-color: #231e33 !important;
}
@@ -376,7 +381,7 @@ input[type="radio"] {
background-image: url("/themepack/midnight/0.0.2.9/resource/radio.png") !important;
}
-.header_navigation .link {
+.header_navigation .link, .header_navigation .header_divider_stick {
background: unset;
}
@@ -403,15 +408,26 @@ input[type="radio"] {
border-color: #514534;
}
-.searchBtn {
+#search_box_button {
box-shadow: 0px 2px 0px 0px rgba(111, 111, 111, 0.18) inset;
}
-.searchBtn:active {
+#search_box_button:active {
box-shadow: 0px -2px 0px 0px rgba(255, 255, 255, 0.18) inset;
}
-.searchList #used {
+.verticalGrayTabsWrapper {
+ background: #1e1a2b;
+ border-top: 1px solid #2c2640;
+ border-left: 1px solid #2a2841;
+}
+
+.page_content_paginator_bottom {
+ background: #1e1a2b;
+ border-top: 1px solid #2c2640;
+}
+
+.verticalGrayTabs #used {
background: #463f60 !important;
}
@@ -447,13 +463,9 @@ input[type="radio"] {
background: #b9b9b9 !important;
}
-.musicIcon {
- filter: invert(81%) !important;
-}
-
.audioEntry.nowPlaying {
background: #463f60 !important;
- border: 1px solid #645a86 !important;
+ outline: 1px solid #645a86 !important;
}
.preformer {
@@ -485,11 +497,11 @@ input[type="radio"] {
color: black !important;
}
-.searchList a {
+.verticalGrayTabs a {
color: #bbb !important;
}
-.searchList a:hover {
+.verticalGrayTabs a:hover {
color: #eeeeee !important;
background: #332d46 !important;
}
@@ -512,7 +524,7 @@ img[src$='/assets/packages/static/openvk/img/song.jpg'] {
}
.audioEntry .withLyrics {
- color: #6f6497 !important;
+ color: #9481d9 !important;
}
#listensCount {
@@ -536,7 +548,8 @@ ul {
/* вот бы css в овк был бы написан на var()'ах( */
#upload_container.uploading {
- background: #121017 url('/assets/packages/static/openvk/img/progressbar.gif') !important;
+ background-color: #312b3f !important;
+ background-image: url('/assets/packages/static/openvk/img/progressbar.gif') !important;
}
.musicIcon.pressed {
@@ -573,3 +586,8 @@ ul {
.add_image_text {
z-index: 999;
}
+
+.content_page_error {
+ background: #28223a;
+ border: #2c2640 solid 1px;
+}