Procházet zdrojové kódy

Ticket #3941 - Artificer template (part 4): Move to core: Comments.

AntonLV před 4 roky
rodič
revize
5b5ce02563
26 změnil soubory, kde provedl 102 přidání a 745 odebrání
  1. 1 0
      modules/boonex/artificer/data/template/bx_timeline/css/view.css
  2. 0 27
      modules/boonex/artificer/data/template/system/comment.html
  3. 0 1
      modules/boonex/artificer/data/template/system/comment_actions.html
  4. 0 16
      modules/boonex/artificer/data/template/system/comment_attachments.html
  5. 0 9
      modules/boonex/artificer/data/template/system/comment_counter.html
  6. 0 11
      modules/boonex/artificer/data/template/system/comment_element_block.html
  7. 0 7
      modules/boonex/artificer/data/template/system/comment_element_inline.html
  8. 0 13
      modules/boonex/artificer/data/template/system/comment_reply_box.html
  9. 0 3
      modules/boonex/artificer/data/template/system/comment_reply_to.html
  10. 0 9
      modules/boonex/artificer/data/template/system/comments_controls.html
  11. 0 12
      modules/boonex/artificer/data/template/system/comments_uploader_nfw.html
  12. 0 70
      modules/boonex/artificer/data/template/system/css/cmts.css
  13. 4 4
      plugins_public/tailwind/css/tailwind.css
  14. 0 0
      plugins_public/tailwind/css/tailwind.min.css
  15. 8 8
      template/comment.html
  16. 1 1
      template/comment_actions.html
  17. 16 14
      template/comment_attachments.html
  18. 4 4
      template/comment_counter.html
  19. 2 2
      template/comment_element_block.html
  20. 7 3
      template/comment_element_inline.html
  21. 3 3
      template/comment_reply_box.html
  22. 1 1
      template/comment_reply_to.html
  23. 2 2
      template/comments_controls.html
  24. 8 6
      template/comments_uploader_nfw.html
  25. 44 518
      template/css/cmts.css
  26. 1 1
      template/css/menu.css

+ 1 - 0
modules/boonex/artificer/data/template/bx_timeline/css/view.css

@@ -91,6 +91,7 @@ div.bx-tl-item div.bx-tl-item-activity .bx-menu-custom.bx-menu-custom-hor {
 div.bx-tl-item div.bx-tl-item-activity.bx-tl-ia-counters .bx-menu-custom.bx-menu-custom-hor li > a,
 div.bx-tl-item div.bx-tl-item-activity.bx-tl-ia-counters .bx-menu-custom.bx-menu-custom-hor li > div,
 div.bx-tl-item div.bx-tl-item-activity.bx-tl-ia-counters .bx-menu-custom.bx-menu-custom-hor li > span {
+    display: block;
     margin-top: 1.0rem;
 }
 

+ 0 - 27
modules/boonex/artificer/data/template/system/comment.html

@@ -1,27 +0,0 @@
-<li id="cmt__id__" class="__style_prefix____class__ pt-4 first:pt-0 mb-4">
-    <a id="__anchor__" class="__style_prefix__-anchor"></a>
-    <div class="__style_prefix__-cnt__class_cnt__ flex items-start">
-        <div class="__style_prefix__-blink-plate"></div>
-        <div class="__style_prefix__-avatar bx-def-thumb-size">__author_unit__</div>
-        <div class="__style_prefix__-info bx-def-thumb-size-min-height sm:pl-2 lg:pl-4">
-            <bx_if:show_notes>
-                <div class="__style_prefix__-notes mb-1">
-                    <bx_repeat:notes>
-                        <div class="__style_prefix__-note mt-1 first:mt-0 text-sm text-gray-500 dark:text-gray-400">
-                            <div class="__style_prefix__-n-text<bx_if:show_note_color> col-__item_note_color__</bx_if:show_note_color>">__item_note__</div>
-                        </div>
-                    </bx_repeat:notes>
-                </div>
-            </bx_if:show_notes>
-            <div class="__style_prefix__-head flex">
-                <bx_if:meta><span class="__style_prefix__-meta bx-base-general-unit-meta">__meta__</span></bx_if:meta>
-                <bx_if:show_pinned><span class="__style_prefix__-pinned ml-2"><i class="sys-icon thumbtack" title="<bx_text:_cmt_txt_pinned />"></i></span></bx_if:show_pinned>
-            </div>
-            <div class="__style_prefix__-cont my-2">
-                <div class="__style_prefix__-cont-cnt">__content__</div>
-            </div>
-            __actions__
-        </div>
-    </div>
-    <ul class="cmts cmts-all cmts-margin">__replies__</ul>
-</li>

+ 0 - 1
modules/boonex/artificer/data/template/system/comment_actions.html

@@ -1 +0,0 @@
-<div class="__style_prefix__-actions -mx-2">__menu_actions__</div>

+ 0 - 16
modules/boonex/artificer/data/template/system/comment_attachments.html

@@ -1,16 +0,0 @@
-<div class="flex">
-    <bx_repeat:attached>
-        <div class="__style_prefix__-attached-preview w-24 h-24 m-1">
-            <bx_if:show_image>
-                <a href="javascript:void(0)" onclick="__js_object__.showImage(event || window.event, this)" data-file-id="__file_id__" data-src="__file__" data-w="__w__" data-h="__h__" title="<bx_text_attribute:_cmt_view_attached_image />">
-                    <img class="w-24 h-24 rounded" src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
-                </a>
-            </bx_if:show_image>
-            <bx_if:show_file>
-                <a href="__file__" title="<bx_text_attribute:_cmt_download_attached_file />">
-                    <img class="w-24 h-24 rounded" src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
-                </a>
-            </bx_if:show_file>
-        </div>
-    </bx_repeat:attached>
-</div>

+ 0 - 9
modules/boonex/artificer/data/template/system/comment_counter.html

@@ -1,9 +0,0 @@
-<div id="__id__" class="__class__ sys-action-counter-iconset text-sm font-normal">
-    <a class="sys-ac-link group p-1 pl-2" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick>>
-        <bx_repeat:profiles>__icon__</bx_repeat:profiles>
-        <bx_if:show_icon>
-            <div class="sys-action-counter-icon __style_prefix__-counter-icon bx-def-icon-size flex items-center justify-center z-10 h-6 w-6 ring-1 ring-white dark:ring-gray-700 h-6 w-6 bg-gray-200 dark:bg-gray-700 rounded-full">__icon__</div>
-        </bx_if:show_icon>
-        <div class="sys-action-counter-text __style_prefix__-counter-text ml-1.5 first:ml-0">__content__</div>
-    </a>
-</div>

+ 0 - 11
modules/boonex/artificer/data/template/system/comment_element_block.html

@@ -1,11 +0,0 @@
-<div id="__html_id__" class="sys-action __style_prefix__ __class__ flex items-center whitespace-nowrap" bx_comment_data_count="__count__">
-    <div class="sys-action-cnt __style_prefix__-cnt flex items-center">
-        <bx_if:show_do_comment>
-            <div class="__style_prefix__-element-holder">__do_comment__</div>
-        </bx_if:show_do_comment>
-        <bx_if:show_counter>
-            <div class="__style_prefix__-counter-holder bx-def-margin-sec-left-auto bx-btn-border"<bx_if:show_hidden> style="display:none"</bx_if:show_hidden>>__counter__</div>
-        </bx_if:show_counter>
-    </div>
-    __script__
-</div>

+ 0 - 7
modules/boonex/artificer/data/template/system/comment_element_inline.html

@@ -1,7 +0,0 @@
-<span id="__html_id__" class="sys-action __style_prefix__ __class__ inline-flex items-center whitespace-nowrap" bx_comment_data_count="__count__">
-    <span class="sys-action-cnt __style_prefix__-cnt flex items-center">
-        <bx_if:show_do_comment><span class="__style_prefix__-element-holder">__do_comment__</span></bx_if:show_do_comment>
-        <bx_if:show_counter><span class="__style_prefix__-counter-holder bx-def-margin-thd-left-auto bx-btn-border"<bx_if:show_hidden> style="display:none"</bx_if:show_hidden>>__counter__</span></bx_if:show_counter>
-    </span>
-    __script__
-</span>

+ 0 - 13
modules/boonex/artificer/data/template/system/comment_reply_box.html

@@ -1,13 +0,0 @@
-<div class="__style_prefix__-reply__class__ mb-4">
-    <div class="__style_prefix__-cont __style_prefix__-post-reply">
-        <div class="__style_prefix__-cont-cnt">
-            <bx_if:show_form_min>
-                <div class="__style_prefix__-body-min__class_body_min__ flex items-center">
-                    <div class="__style_prefix__-bm-user">__author_unit__</div>
-                    <div class="__style_prefix__-bm-content w-full sm:pl-2 lg:pl-4 text-sm text-gray-500 dark:text-gray-400 box-border">__placeholder__</div>
-                </div>
-            </bx_if:show_form_min>
-            <div class="__style_prefix__-body__class_body__">__form__</div>
-        </div>
-    </div>
-</div>

+ 0 - 3
modules/boonex/artificer/data/template/system/comment_reply_to.html

@@ -1,3 +0,0 @@
-<span class="__style_prefix__-reply-to">
-    <a href="__par_cmt_link__" title="__par_cmt_title__"><i class="sys-icon reply"></i> <span><bx_text:_in_reply_to /></span> <div class="inline-block align-middle">__par_cmt_author_unit__</div> <span>__par_cmt_author__</span></a>
-</span>

+ 0 - 9
modules/boonex/artificer/data/template/system/comments_controls.html

@@ -1,9 +0,0 @@
-__display_switcher__
-<bx_if:is_divider_1>
-    <div class="bx-def-hr my-4"></div>
-</bx_if:is_divider_1>
-__browse_switcher__
-<bx_if:is_divider_2>
-    <div class="bx-def-hr my-4"></div>
-</bx_if:is_divider_2>
-__filter_switcher__

+ 0 - 12
modules/boonex/artificer/data/template/system/comments_uploader_nfw.html

@@ -1,12 +0,0 @@
-<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost cmts-uploader-file flex items-start mt-2">
-    <input type="hidden" name="__name__[]" value="{file_id}" />
-    <div class="cmts-uploader-file-preview rounded mr-2">
-        <img src="{file_icon}" class="bx-base-general-icon bx-base-general-icon-{file_id} rounded" />
-    </div>
-    <div>
-        <div class="cmts-uploader-file-title">{file_title}</div>
-        <div class="cmts-uploader-file-actions mt-2">
-            <a class="bx-btn bx-btn-small mr-2" href="javascript:void(0);" onclick="{js_instance_name}.deleteGhost('{file_id}');"><bx_text:_Delete /></a>
-        </div>
-    </div>
-</div>

+ 0 - 70
modules/boonex/artificer/data/template/system/css/cmts.css

@@ -1,70 +0,0 @@
-/*--
-import url(../../../../../../../template/css/cmts.css);
---*/
-
-ul.cmts {
-    margin: 0px;
-    padding: 0px;
-    list-style: none;
-}
-ul.cmts-margin,
-div.cmt-reply-margin {
-    margin-top: 1.0rem;
-    padding-left: 3.5rem;
-}
-
-/*--- Minified Post Form ---*/
-div.cmt-reply.cmt-reply-min div.cmt-body {
-    display: none;
-}
-
-/*--- Add Comment/Reply Form Styles ---*/
-form.cmt-post-reply div#bx-form-element-cmt_image,
-form.cmt-post-reply .bx-form-input-files-uploaders {
-    margin-top: 0px;
-}
-
-form.cmt-post-reply .bx-form-input-files-uploaders a.cmts-uploader-button {
-    position: absolute;
-    z-index: 1;
-    right: 0px;
-}
-
-/*--- Comment ---*/
-span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-base-pofile-unit-online {
-    display: none;
-}
-
-/*--- Comment Body ---*/
-div.cmt-cont .cmt-post-reply .bx-form-element-wrapper {
-    margin-top: 0.5rem;
-}
-
-/*--- Menu action ---*/
-.bx-menu-object-sys_cmts_item_manage .bx-report .sys-action-element-holder{
-    padding: 0px !important;
-}
-.bx-menu-object-sys_cmts_item_manage span.bx-def-margin-thd-topbottom,
-.bx-menu-object-sys_cmts_item_manage .bx-report-element-holder,
-.bx-menu-object-sys_cmts_item_manage .sys-action.bx-report{
-    margin: 0px !important;
-    width:100%;
-    display: block;
-}
-
-/*--- Menu meta ---*/
-span.cmt-reply-to a .bx-def-icon-size {
-    width: 1.0rem;
-    height: 1.0rem;
-    line-height: 0.875rem;
-    font-size: 0.6rem;
-}
-
-/*--- Comment Element Styles ---*/
-.cmt-counter .bx-base-pofile-unit-online {
-    display: none;
-}
-.cmt-counter .cmt-counter-text {
-    margin-left: 0.5rem;
-    margin-right: 0.5rem;
-}

+ 4 - 4
plugins_public/tailwind/css/tailwind.css

@@ -1014,15 +1014,15 @@
 
 
     /* Common elements: All Actions */
-    .bx-artificer .sys-action-counter.sys-ac-link,
-    .bx-artificer .sys-action-counter .sys-ac-link {
+    .sys-action-counter.sys-ac-link,
+    .sys-action-counter .sys-ac-link {
         @apply flex items-center;
         @apply border-none;
         @apply text-gray-500 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-300;
         @apply rounded-full;
     }
-    .bx-artificer .sys-action-counter.sys-ac-only.sys-ac-link,
-    .bx-artificer .sys-action-counter.sys-ac-only .sys-ac-link {
+    .sys-action-counter.sys-ac-only.sys-ac-link,
+    .sys-action-counter.sys-ac-only .sys-ac-link {
         @apply hover:bg-gray-100 dark:hover:bg-gray-600;
     }
 

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
plugins_public/tailwind/css/tailwind.min.css


+ 8 - 8
template/comment.html

@@ -1,23 +1,23 @@
-<li id="cmt__id__" class="__style_prefix____class__ bx-def-padding-top bx-def-margin-bottom">
+<li id="cmt__id__" class="__style_prefix____class__ pt-4 first:pt-0 mb-4">
     <a id="__anchor__" class="__style_prefix__-anchor"></a>
-    <div class="__style_prefix__-cnt__class_cnt__">
+    <div class="__style_prefix__-cnt__class_cnt__ flex items-start">
         <div class="__style_prefix__-blink-plate"></div>
         <div class="__style_prefix__-avatar bx-def-thumb-size">__author_unit__</div>
-        <div class="__style_prefix__-info bx-def-thumb-size-min-height bx-def-thumb-size-left-indent">
+        <div class="__style_prefix__-info bx-def-thumb-size-min-height sm:pl-2 lg:pl-4">
             <bx_if:show_notes>
-                <div class="__style_prefix__-notes bx-def-margin-thd-bottom">
+                <div class="__style_prefix__-notes mb-1">
                     <bx_repeat:notes>
-                        <div class="__style_prefix__-note bx-def-margin-thd-top-auto bx-def-font-small bx-def-font-grayed">
+                        <div class="__style_prefix__-note mt-1 first:mt-0 text-sm text-gray-500 dark:text-gray-400">
                             <div class="__style_prefix__-n-text<bx_if:show_note_color> col-__item_note_color__</bx_if:show_note_color>">__item_note__</div>
                         </div>
                     </bx_repeat:notes>
                 </div>
             </bx_if:show_notes>
-            <div class="__style_prefix__-head bx-clearfix">
+            <div class="__style_prefix__-head flex">
                 <bx_if:meta><span class="__style_prefix__-meta bx-base-general-unit-meta">__meta__</span></bx_if:meta>
-                <bx_if:show_pinned><span class="__style_prefix__-pinned bx-def-margin-sec-left"><i class="sys-icon thumbtack" title="<bx_text:_cmt_txt_pinned />"></i></span></bx_if:show_pinned>
+                <bx_if:show_pinned><span class="__style_prefix__-pinned ml-2"><i class="sys-icon thumbtack" title="<bx_text:_cmt_txt_pinned />"></i></span></bx_if:show_pinned>
             </div>
-            <div class="__style_prefix__-cont bx-def-margin-sec-topbottom">
+            <div class="__style_prefix__-cont my-2">
                 <div class="__style_prefix__-cont-cnt">__content__</div>
             </div>
             __actions__

+ 1 - 1
template/comment_actions.html

@@ -1 +1 @@
-<div class="__style_prefix__-actions bx-clearfix">__menu_actions__</div>
+<div class="__style_prefix__-actions -mx-2">__menu_actions__</div>

+ 16 - 14
template/comment_attachments.html

@@ -1,14 +1,16 @@
-<bx_repeat:attached>
-    <div class="__style_prefix__-attached-preview bx-def-round-corners bx-def-margin-thd">
-        <bx_if:show_image>
-            <a href="javascript:void(0)" onclick="__js_object__.showImage(event || window.event, this)" data-file-id="__file_id__" data-src="__file__" data-w="__w__" data-h="__h__" title="<bx_text_attribute:_cmt_view_attached_image />">
-                <img src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
-            </a>
-        </bx_if:show_image>
-        <bx_if:show_file>
-            <a href="__file__" title="<bx_text_attribute:_cmt_download_attached_file />">
-                <img src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
-            </a>
-        </bx_if:show_file>
-    </div>
-</bx_repeat:attached>
+<div class="flex">
+    <bx_repeat:attached>
+        <div class="__style_prefix__-attached-preview w-24 h-24 m-1">
+            <bx_if:show_image>
+                <a href="javascript:void(0)" onclick="__js_object__.showImage(event || window.event, this)" data-file-id="__file_id__" data-src="__file__" data-w="__w__" data-h="__h__" title="<bx_text_attribute:_cmt_view_attached_image />">
+                    <img class="w-24 h-24 rounded" src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
+                </a>
+            </bx_if:show_image>
+            <bx_if:show_file>
+                <a href="__file__" title="<bx_text_attribute:_cmt_download_attached_file />">
+                    <img class="w-24 h-24 rounded" src="<bx_image_url:spacer.gif />" style="background-image:url(__preview__)" />
+                </a>
+            </bx_if:show_file>
+        </div>
+    </bx_repeat:attached>
+</div>

+ 4 - 4
template/comment_counter.html

@@ -1,9 +1,9 @@
-<div id="__id__" class="__class__">
-    <a class="bx-def-valign-center" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick>>
+<div id="__id__" class="__class__ sys-action-counter-iconset text-sm font-normal">
+    <a class="sys-ac-link group p-1 pl-2" href="__href__"<bx_if:show_onclick> onclick="__onclick__"</bx_if:show_onclick>>
         <bx_repeat:profiles>__icon__</bx_repeat:profiles>
         <bx_if:show_icon>
-            <div class="sys-action-counter-icon __style_prefix__-counter-icon bx-def-icon-size bx-def-align-center">__icon__</div>
+            <div class="sys-action-counter-icon __style_prefix__-counter-icon bx-def-icon-size flex items-center justify-center z-10 h-6 w-6 ring-1 ring-white dark:ring-gray-700 h-6 w-6 bg-gray-200 dark:bg-gray-700 rounded-full">__icon__</div>
         </bx_if:show_icon>
-        <div class="sys-action-counter-text __style_prefix__-counter-text bx-def-margin-sec-left-auto">__content__</div>
+        <div class="sys-action-counter-text __style_prefix__-counter-text ml-1.5 first:ml-0">__content__</div>
     </a>
 </div>

+ 2 - 2
template/comment_element_block.html

@@ -1,5 +1,5 @@
-<div id="__html_id__" class="sys-action __style_prefix__ __class__ bx-def-margin-right-auto bx-def-margin-thd-topbottom" bx_comment_data_count="__count__">
-    <div class="sys-action-cnt __style_prefix__-cnt bx-clearfix">
+<div id="__html_id__" class="sys-action __style_prefix__ __class__ flex items-center whitespace-nowrap" bx_comment_data_count="__count__">
+    <div class="sys-action-cnt __style_prefix__-cnt flex items-center">
         <bx_if:show_do_comment>
             <div class="__style_prefix__-element-holder">__do_comment__</div>
         </bx_if:show_do_comment>

+ 7 - 3
template/comment_element_inline.html

@@ -1,3 +1,7 @@
-<span id="__html_id__" class="sys-action __style_prefix__ __class__ bx-def-margin-right-auto bx-def-margin-thd-topbottom" bx_comment_data_count="__count__">
-    <span class="sys-action-cnt __style_prefix__-cnt"><bx_if:show_do_comment><span class="__style_prefix__-element-holder">__do_comment__</span></bx_if:show_do_comment><bx_if:show_counter><span class="__style_prefix__-counter-holder bx-def-margin-thd-left-auto bx-btn-border"<bx_if:show_hidden> style="display:none"</bx_if:show_hidden>>__counter__</span></bx_if:show_counter></span>__script__
-</span>
+<span id="__html_id__" class="sys-action __style_prefix__ __class__ inline-flex items-center whitespace-nowrap" bx_comment_data_count="__count__">
+    <span class="sys-action-cnt __style_prefix__-cnt flex items-center">
+        <bx_if:show_do_comment><span class="__style_prefix__-element-holder">__do_comment__</span></bx_if:show_do_comment>
+        <bx_if:show_counter><span class="__style_prefix__-counter-holder bx-def-margin-thd-left-auto bx-btn-border"<bx_if:show_hidden> style="display:none"</bx_if:show_hidden>>__counter__</span></bx_if:show_counter>
+    </span>
+    __script__
+</span>

+ 3 - 3
template/comment_reply_box.html

@@ -1,10 +1,10 @@
-<div class="__style_prefix__-reply__class__ bx-def-margin-bottom">
+<div class="__style_prefix__-reply__class__ mb-4">
     <div class="__style_prefix__-cont __style_prefix__-post-reply">
         <div class="__style_prefix__-cont-cnt">
             <bx_if:show_form_min>
-                <div class="__style_prefix__-body-min__class_body_min__">
+                <div class="__style_prefix__-body-min__class_body_min__ flex items-center">
                     <div class="__style_prefix__-bm-user">__author_unit__</div>
-                    <div class="__style_prefix__-bm-content bx-def-thumb-size-min-height bx-def-thumb-size-left-indent bx-def-font-grayed">__placeholder__</div>
+                    <div class="__style_prefix__-bm-content w-full sm:pl-2 lg:pl-4 text-sm text-gray-500 dark:text-gray-400 box-border">__placeholder__</div>
                 </div>
             </bx_if:show_form_min>
             <div class="__style_prefix__-body__class_body__">__form__</div>

+ 1 - 1
template/comment_reply_to.html

@@ -1,3 +1,3 @@
 <span class="__style_prefix__-reply-to">
-    <a href="__par_cmt_link__" title="__par_cmt_title__"><i class="sys-icon reply"></i> <span><bx_text:_in_reply_to /></span> __par_cmt_author_unit__ <span>__par_cmt_author__</span></a>
+    <a href="__par_cmt_link__" title="__par_cmt_title__"><i class="sys-icon reply"></i> <span><bx_text:_in_reply_to /></span> <div class="inline-block align-middle">__par_cmt_author_unit__</div> <span>__par_cmt_author__</span></a>
 </span>

+ 2 - 2
template/comments_controls.html

@@ -1,9 +1,9 @@
 __display_switcher__
 <bx_if:is_divider_1>
-	<div class="bx-def-hr bx-def-margin-sec-topbottom"></div>
+    <div class="bx-def-hr my-4"></div>
 </bx_if:is_divider_1>
 __browse_switcher__
 <bx_if:is_divider_2>
-	<div class="bx-def-hr bx-def-margin-sec-topbottom"></div>
+    <div class="bx-def-hr my-4"></div>
 </bx_if:is_divider_2>
 __filter_switcher__

+ 8 - 6
template/comments_uploader_nfw.html

@@ -1,10 +1,12 @@
-<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost cmts-uploader-file bx-def-margin-sec-top bx-def-margin-sec-left-auto">
+<div id="bx-uploader-file-{storage_object}-{file_id}" class="bx-uploader-ghost cmts-uploader-file flex items-start mt-2">
     <input type="hidden" name="__name__[]" value="{file_id}" />
-    <div class="cmts-uploader-file-preview bx-def-round-corners bx-def-margin-sec-right">
-        <img src="{file_icon}" class="bx-def-round-corners bx-base-general-icon bx-base-general-icon-{file_id}" />
+    <div class="cmts-uploader-file-preview rounded mr-2">
+        <img src="{file_icon}" class="bx-base-general-icon bx-base-general-icon-{file_id} rounded" />
     </div>
-    <div class="cmts-uploader-file-title bx-def-margin-thd-top bx-clearfix">{file_title}</div>
-    <div class="cmts-uploader-file-actions bx-def-margin-thd-top bx-clearfix">
-        <a class="bx-btn bx-btn-small bx-def-margin-sec-right" href="javascript:void(0);" onclick="{js_instance_name}.deleteGhost('{file_id}');"><bx_text:_Delete /></a>
+    <div>
+        <div class="cmts-uploader-file-title">{file_title}</div>
+        <div class="cmts-uploader-file-actions mt-2">
+            <a class="bx-btn bx-btn-small mr-2" href="javascript:void(0);" onclick="{js_instance_name}.deleteGhost('{file_id}');"><bx_text:_Delete /></a>
+        </div>
     </div>
 </div>

+ 44 - 518
template/css/cmts.css

@@ -1,540 +1,66 @@
-    /*--- General Styles ---*/
-    div.cmts {}
-
-    ul.cmts {
-    	position: relative;
-        margin: 0px;
-        padding: 0px;
-        list-style: none;
-    }
-    ul.cmts-margin,
-    div.cmt-reply-margin {
-    	margin-top: 20px;
-    	margin-top: 1.2rem;
-
-		padding-left: 60px;
-    	padding-left: 3.75rem;
-    }
-    li.cmt {
-    	position: relative;
-    }
-    li.cmt-no .bx-msg-box-container {
-        margin-top: 0px;
-        margin-bottom: 0px;
-    }
-    li.cmt-err {
-        color: red;
-    }
-    li.cmt-hidden {
-       display: none;
-    }
-    li.cmt-replacement {
-    	position: relative;
-		height: 30px;
-		height: 1.875rem;
-		background-color: #ededed;
-		text-indent: 10px;
-    	text-indent: 0.5rem;
-		line-height: 30px;
-    	line-height: 1.875rem;
-    	overflow: hidden;
-    }
-    li.cmt-blink div.cmt-blink-plate {
-		display: block;
-    }
-    div.cmt-cnt {
-		position: relative;
-    }
-
-	/*--- More ---*/
-    li.cmt-more,
-	li.cmt-more-root {
-		text-transform:uppercase;
-	}
-
-	div.cmt-more-cont {
-		font-weight: bold;
-	}
-
-	
-    li.cmt-more-root div.cmt-more-cont {
-    	position: relative;
-    }
-    li.cmt-more-root .bx-btn {
-    	position: relative;
-		float: none;
-    	display: inline-block;
-    	text-transform: uppercase;
-    }    
-
-    /*--- Comment ---*/
-	div.cmt-avatar {
-		position: absolute;
-		top: 0px;
-		left: 0px;
-    	text-align: center;
-    }
-    div.cmt-avatar .sys-icon {
-    	font-size: 60px;
-		font-size: 3.75rem;
-    }
-    div.cmt-info {
-    	position: relative;
-    }
-    div.cmt-blink-plate {
-        position: absolute;
-        display: none;
-        top: -10px;
-        left: -10px;
-        width: 100%;
-        height: 100%;
-        padding: 10px;
-        background-color: rgb(255, 244, 213);
-        background-color: rgba(255, 234, 193, 0.5);
-    }
-    div.cmt-notes {
-        text-align: left;
-    }
-    div.cmt-head {
-        text-align: left;
-        text-overflow: ellipsis;
-        white-space: nowrap;
-        overflow: hidden;
-    }
-    div.cmt-head > span {
-        vertical-align: middle;
-    }
-    span.cmt-reply-to a {
-        text-decoration: none;
-    }
-    span.cmt-reply-to a > i,
-    span.cmt-reply-to a > span,
-    span.cmt-reply-to a > div {
-        vertical-align: middle;
-    }
-    span.cmt-reply-to a .bx-base-pofile-unit-wo-info {
-        display: inline-block;
-    }
-    span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-def-unit-img .bx-base-pofile-unit-thumb {
-        display: block;
-        border-width: 1px;
-    }
-    span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-base-pofile-unit-online {
-        display: none;
-    }
-    span.cmt-reply-to a .bx-def-icon-size {
-        width: 1.0rem;
-        height: 1.0rem;
-        line-height: 0.875rem;
-        font-size: 0.6rem;
-    }
-    span.cmt-posted-ago {
-        text-transform: lovercase;
-    }
-    span.cmt-points {
-        text-transform: lovercase;
-    }
-
-    /*--- unit meta ---*/
-    .cmt-meta.bx-base-general-unit-meta {
-        display: inline-block;
-
-        white-space: nowrap;
-        overflow: hidden;
-        text-overflow: ellipsis;
-        text-align: left;
-    }
-    .cmt-meta.bx-base-general-unit-meta .bx-menu-custom.bx-menu-custom-hor {
-        margin: 0;
-    }
-
-    /*--- Comment Body ---*/
-    div.cmt-cont {
-        position: relative;
-    	text-align: left;
-    }
-    div.cmt-cont .bullet {
-        padding: 0px 5px;
-        padding: 0px 0.3rem;
-    }
-    div.cmt-cont .cmt-body > p:first-child {
-        margin-top: 0;
-        margin-bottom: 0;
-    }
-    div.cmt-cont .cmt-body img {
-        max-width: 100%;
-    	height: auto;
-    }
-    div.cmt-cont .cmt-post-reply .bx-form-element-wrapper {
-        margin-top: 10px;
-    	margin-top: 0.5rem;
-    }
-    div.cmt-cont .cmt-post-reply .bx-form-element-wrapper:first-child {
-        margin-top: 0px;
-    }
-    span.cmt-body-see-more a {
-        font-weight: bold;
-    }
-    div.cmt-attached-preview {
-        overflow:hidden;
-    }
-    div.cmt-attached-preview,
-    div.cmt-attached-preview img {
-    	width: 100px;
-    	width: 6.25rem;
-    	height: 100px;
-    	height: 6.25rem;
-    }
-    div.cmt-attached-preview {
-    	position: relative;
-    	float: left;
-	}
-    div.cmt-attached-preview img {
-        background-position: center center;
-        background-repeat: no-repeat;
-        background-size: contain;
-    }
-
-    /*--- Comment Counters ---*/
-    div.cmt-counters {}
-
-    /*--- Comment Actions ---*/
-    div.cmt-actions {
-        position: relative;
-        text-align: left;
-    }
-    div.cmt-meta-ago,
-    div.cmt-comment-manage-link, 
-    div.cmt-actions ul.bx-menu-hor,
-    div.cmt-points-wrp {
-        position: relative;
-        float: left;
-    }
-    div.cmt-actions li .bx-vote {
-       margin-right: 1.25rem;
-    }
-    div.cmt-comment-manage .bx-menu-ver li {
-		white-space: nowrap;
-    }
-
-    /*--- Add Comment/Reply Styles ---*/
-    div.cmt-reply {
-		position: relative;
-    }
-	div.cmt-post-reply {
-        position: relative;
-    }
-
-    /*--- Add Comment/Reply Form Styles ---*/
-    form.cmt-post-reply div#bx-form-element-cmt_image,
-    form.cmt-post-reply .bx-form-input-files-uploaders {
-		margin-top: 0px;
-    }
-
-    a.cmts-uploader-button {
-		position: absolute;
-    	z-index: 1;
-    	right: 0px;
-
-    	text-decoration: none;
-    }
-    div.cmts-uploader-file {
-        position: relative;
-    	float: left;
-    }
-    div.cmts-uploader-file-preview {
-        overflow: hidden;
-    }
-    div.cmts-uploader-file-preview,
-    div.cmts-uploader-file-preview img,
-    div.cmts-uploader-file-title {
-        width: 100px;
-    	width: 6.25rem;
-    }
-    div.cmts-uploader-file-preview,
-    div.cmts-uploader-file-preview img {
-        height: 100px;
-    	height: 6.25rem;
-    }
-    div.cmts-uploader-file-preview img {
-        background-position: center center;
-        background-repeat: no-repeat;
-    }
-    div.cmts-uploader-file-title {
-        overflow: hidden;
-        text-overflow: ellipsis;
-    }
-    
-    /*--- Minified Post Form ---*/
-    div.cmt-reply.cmt-reply-min div.cmt-body {
-        display: none;
-    }
-    div.cmt-reply div.cmt-body-min {
-        position: relative;
-        display: none;
-    }
-    div.cmt-reply.cmt-reply-min div.cmt-body-min {
-        display: block;
-    }
-    div.cmt-reply div.cmt-body-min .cmt-bm-user {
-        position: absolute;
-        top: 0;
-        left: 0;
-    }
-    div.cmt-reply div.cmt-body-min .cmt-bm-content {
-        display: -webkit-flex;
-        display: flex;
-        -webkit-align-items: center;
-        align-items: center;
-        -webkit-justify-content: stretch;
-        justify-content: stretch;
-    }
-    div.cmt-reply div.cmt-body-min .cmt-bm-content .bx-form-element-wrapper {
-        position: relative;
-        width: 100%;
-    }
-
-    /*--- Live Update Alert Styles ---*/
-    div.cmt-lu-button {
-        position: relative;
-        text-align: center;
-    }
-    @supports(position:sticky) {
-        div.cmt-lu-button {
-            position: sticky;
-            top: 1rem;
-            z-index: 1;
-        }
-    }
-    @supports(position:-webkit-sticky) {
-        div.cmt-lu-button {
-            position: -webkit-sticky;
-            top: 1rem;
-            z-index: 1;
-        }
-    }
-    div.cmt-lu-button .bx-btn {
-        display: inline-block;
-        float: none;
-    }
-
-    /*--- Live Update Notifications Styles ---*/
-    .cmt-lu-notif {
-        position: relative;
-        display: block;
-    }
-    div.cmt-lu-notif-cnt {
-        position: relative;
-    }
-    div.cmt-lu-notif-avatar {
-        position: absolute;
-        top: 0px;
-        left: 0px;
-        text-align: center;
-    }
-    div.cmt-lu-notif-info {
-        position: realtive;
-        display: -webkit-flex;
-        display: flex;
-        -webkit-align-items: center;
-        align-items: center;
-    }
-    div.cmt-lu-notifi-username {
-        white-space: nowrap;
-        text-overflow: ellipsis;
-        overflow: hidden;
-    }
-
-/*--- Comment Element Styles ---*/
-div.cmt div.cmt-element-holder,
-div.cmt div.cmt-counter-holder {
-    position: relative;
-    float: left;
-}
-span.cmt span.cmt-element-holder,
-span.cmt span.cmt-counter-holder {
-    position: relative;
-    display: inline-block;
-    vertical-align: middle;
-}
-
-.cmt .cmt-element-holder,
-.cmt .cmt-counter-holder {
-    line-height: 20px;
-    line-height: 1.25rem;
-}
-
-.cmt-button .cmt-element-holder,
-.cmt-button .cmt-counter-holder {
-    line-height: 36px;
-    line-height: 2.2rem;
+ul.cmts {
+    margin: 0px;
+    padding: 0px;
+    list-style: none;
 }
-
-.cmt-button-small .cmt-element-holder,
-.cmt-button-small .cmt-counter-holder {
-    line-height: 24px;
-    line-height: 1.6rem;
+ul.cmts-margin,
+div.cmt-reply-margin {
+    margin-top: 1.0rem;
+    padding-left: 3.5rem;
 }
 
-.cmt .cmt-element-holder .cmt-do-comment.cmt-disabled,
-.cmt .cmt-element-holder .cmt-do-comment.cmt-disabled .sys-icon {
-    color: #ddd;
+/*--- Minified Post Form ---*/
+div.cmt-reply.cmt-reply-min div.cmt-body {
+    display: none;
 }
 
-.cmt-button .cmt-counter-holder .bx-btn-height,
-.cmt-button-small .cmt-counter-holder .bx-btn-height {
-    font-size: 1.5rem;
+/*--- Add Comment/Reply Form Styles ---*/
+form.cmt-post-reply div#bx-form-element-cmt_image,
+form.cmt-post-reply .bx-form-input-files-uploaders {
+    margin-top: 0px;
 }
 
-.cmt-link .cmt-counter-holder.bx-btn-border {
-    border-width: 0px;
+form.cmt-post-reply .bx-form-input-files-uploaders a.cmts-uploader-button {
+    position: absolute;
+    z-index: 1;
+    right: 0px;
 }
 
-/* +++ Comment Element: Counter +++ */
-.cmt-counter {
-    position: relative;
-    display: -webkit-flex;
-    display: flex;
-    -webkit-align-items: center;
-    align-items: center;
-    -webkit-flex-wrap:nowrap;
-    flex-wrap:nowrap;
-}
-.cmt-counter > * {
-    position: relative;
-}
-.cmt-counter div.cmt-counter-icon,
-.cmt-counter div.bx-base-pofile-unit-wo-info {
-    margin-left: -0.5rem;
-}
-.cmt-counter div.cmt-counter-icon:first-child,
-.cmt-counter div.bx-base-pofile-unit-wo-info:first-child {
-    margin-left: 0 !important;
-}
-.bx-media-phone .cmt-counter div.cmt-counter-icon,
-.bx-media-phone .cmt-counter div.bx-base-pofile-unit-wo-info {
-    margin-left: -1.0rem;
-}
-.bx-media-tablet .bx-layout-column-thin .cmt-counter div.bx-base-pofile-unit-wo-info,
-.bx-media-tablet .bx-layout-column-half .cmt-counter div.bx-base-pofile-unit-wo-info {
+/*--- Comment ---*/
+span.cmt-reply-to a .bx-base-pofile-unit-wo-info .bx-base-pofile-unit-online {
     display: none;
 }
-.cmt-counter div.cmt-counter-icon {
-    box-sizing: border-box;
-    z-index: 2;
 
-    background-color: rgba(232, 232, 232, 1.0);
-    border: 1px solid #ffffff;
-    border-radius: 1rem;
-
-    text-align: center;
-}
-.cmt-counter div.cmt-counter-icon .sys-icon {
-    vertical-align: top;
-}
-.cmt-counter .bx-def-icon-size {
-    width: 2.0rem;
-    height: 2.0rem;
-    font-size: 1.0rem;
-}
-.cmt-counter p.bx-base-pofile-unit-thumb.bx-def-icon-size {
-    display: -webkit-flex;
-    display: flex;
-
-    -webkit-justify-content: center;
-    justify-content: center;
-
-    -webkit-align-items: center;
-    align-items: center;
-
-    font-size: 1.0rem;
-}
-.cmt-counter .bx-def-icon-size-min-height {
-    min-height: 1.0rem;
+/*--- Comment Body ---*/
+div.cmt-cont .cmt-post-reply .bx-form-element-wrapper {
+    margin-top: 0.5rem;
 }
 
-.cmt-counter .bx-def-icon-size-max-height {
-    max-height: 1.0rem;
+/*--- Menu action ---*/
+.bx-menu-object-sys_cmts_item_manage .bx-report .sys-action-element-holder{
+    padding: 0px !important;
 }
-
-.cmt-counter .bx-def-icon-size-left-indent {
-    margin-left: 1.25rem;
+.bx-menu-object-sys_cmts_item_manage span.bx-def-margin-thd-topbottom,
+.bx-menu-object-sys_cmts_item_manage .bx-report-element-holder,
+.bx-menu-object-sys_cmts_item_manage .sys-action.bx-report{
+    margin: 0px !important;
+    width:100%;
+    display: block;
 }
 
-.cmt-counter .bx-def-unit-img .bx-base-pofile-unit-thumb {
-    display: block;
-    border-width: 1px;
+/*--- Menu meta ---*/
+span.cmt-reply-to a .bx-def-icon-size {
+    width: 1.0rem;
+    height: 1.0rem;
+    line-height: 0.875rem;
+    font-size: 0.6rem;
 }
 
+/*--- Comment Element Styles ---*/
 .cmt-counter .bx-base-pofile-unit-online {
     display: none;
 }
-
-
-/*----------------------*/
-/*--- Reviews Styles ---*/
-/*----------------------*/
-
-/*--- Mood Element Styles ---*/
-div.cmt-mood {
-    position: relative;
-    display: inline-block;
-}
-div.cmt-mood-underlay {}
-div.cmt-mood-slider {
-    position: absolute;
-    z-index: 1;
-    top: 0px;
-    left: 0px;
-    white-space: nowrap;
-    overflow: hidden;
-}
-div.cmt-mood a.cmt-mood-button,
-div.cmt-mood i.cmt-mood-star {
-    position: relative;
-    display: inline-block;
-    vertical-align: top;
-    height: 16px;
-    width: 16px;
-    margin: 0;
-    padding: 0;
-    text-align: center;
-}
-div.cmt-mood-underlay i.cmt-mood-star {
-    color: rgba(255, 204, 102, 1);
-}
-div.cmt-mood-slider i.cmt-mood-star,
-div.cmt-mood-buttons a:hover i.cmt-mood-star {
-    color: rgba(255, 100, 0, 1);
-}
-
-div.cmt-mood-buttons {
-    position: absolute;
-    z-index: 2;
-    top: 0px;
-    left: 0px;
-}
-div.cmt-mood-buttons a:hover {
-	text-decoration: none;
-}
-div.cmt-mood-buttons i.cmt-mood-star {
-    color: transparent;
-}
-.cmt-meta .bx-badges-list,
-.cmt-meta .bx-badge-compact {
-    display: inline-block;
-}
-
-/*--- Rating Block Styles ---*/
-.cmts-box-rating div.cmt-mood i.cmt-mood-star,
-.cmt-rating-element div.cmt-mood i.cmt-mood-star,
-.cmt-rating-element div.cmt-mood a.cmt-mood-button {
-    height: 24px;
-    width: 24px;
-    font-size: 20px;
-}
-
-.cmt-author-not-active > .cmt-cnt .cmt-cont-cnt {
-    color:#888;
-    font-size:80%;
-}
+.cmt-counter .cmt-counter-text {
+    margin-left: 0.5rem;
+    margin-right: 0.5rem;
+}

+ 1 - 1
template/css/menu.css

@@ -26,7 +26,7 @@ ul.bx-menu-custom-hor {
     text-decoration:none;
 }
 
-.bx-menu-hor-inline li a:not(.bx-btn) {
+.bx-menu-hor-inline li a:not(.bx-btn):not(.sys-ac-link) {
     display:inline;
 }
 

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů