]> git.mxchange.org Git - friendica.git/commitdiff
[frio] Improve responses markup and alignment
authorDamian Wajer <damian@damianwajer.com>
Wed, 18 Jan 2023 12:50:12 +0000 (13:50 +0100)
committerDamian Wajer <damian@damianwajer.com>
Thu, 19 Jan 2023 18:48:55 +0000 (19:48 +0100)
Reduce additional spacing between button groups and use the correct markup according to the docs:
https://getbootstrap.com/docs/3.4/components/#btn-groups

view/theme/frio/css/style.css
view/theme/frio/templates/wall_thread.tpl

index c2b60a6de1840cf33156eebb0a19f0a2c7fb30a3..3a137875b8635a3d92446304ddeaca1a39cec616 100644 (file)
@@ -1979,6 +1979,11 @@ code > .hl-main {
        color: $font_color_darker;
        background-color: transparent;
 }
+@media screen and (max-width: 767px) {
+       .wall-item-actions .like-rotator {
+               padding-top: 8px;       
+       }
+}
 .wall-item-actions .active {
        font-weight: bold;
        color: $link_color;
index 3f0ede6b107e36ccb056e8b27829d1d9343db9c7..bfdbf90582981fc09cd5168d594085673b4402e1 100644 (file)
@@ -436,28 +436,24 @@ as the value of $top_child_total (this is done at the end of this file)
                                </span>
                        </span>
 
-                       <div class="btn-toolbar visible-xs" role="toolbar">
+                       <div class="btn-toolbar btn-group visible-xs" role="group">
                        {{* Buttons for like and dislike *}}
                        {{if $item.vote}}
-                               <div class="btn-group" role="group">
                                {{if $item.vote.like}}
                                        <button type="button" class="btn button-likes{{if $item.responses.like.self}} active" aria-pressed="true{{/if}}" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="doActivityItemAction({{$item.id}}, 'like'{{if $item.responses.like.self}}, true{{/if}});" data-toggle="button"><i class="fa fa-thumbs-up" aria-hidden="true"></i></button>
                                {{/if}}
                                {{if $item.vote.dislike}}
                                        <button type="button" class="btn button-likes{{if $item.responses.dislike.self}} active" aria-pressed="true{{/if}}" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="doActivityItemAction({{$item.id}}, 'dislike'{{if $item.responses.dislike.self}}, true{{/if}});" data-toggle="button"><i class="fa fa-thumbs-down" aria-hidden="true"></i></button>
                                {{/if}}
-                               </div>
                        {{/if}}
 
                        {{* Button to open the comment text field *}}
                        {{if $item.comment_html}}
-                               <div class="btn-group" role="group">
-                                       <button type="button" class="btn button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting" aria-hidden="true"></i></button>
-                               </div>
+                               <button type="button" class="btn button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting" aria-hidden="true"></i></button>
                        {{/if}}
 
                        {{if $item.vote.announce OR $item.vote.share}}
-                               <div class="share-links btn-group{{if $item.thread_level > 1}} dropup{{/if}}">
+                               <div class="share-links btn-group{{if $item.thread_level > 1}} dropup{{/if}}" role="group">
                                        <button type="button" class="btn dropdown-toggle{{if $item.responses.announce.self}} active{{/if}}" data-toggle="dropdown" id="shareMenuOptions-{{$item.id}}" aria-haspopup="true" aria-expanded="false" title="{{$item.menu}}">
                                                <i class="fa fa-share" aria-hidden="true"></i>
                                        </button>
@@ -491,9 +487,7 @@ as the value of $top_child_total (this is done at the end of this file)
                        {{/if}}
 
                        {{* Put additional actions in a dropdown menu *}}
-                               <div class="btn-group" role="group">
-                                       <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
-                               </div>
+                               <img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
                        </div>
 
                        <div class="wall-item-actions-right visible-xs">