From 2afdc69c20c840e8341b9c279ff5cc8280553820 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 12 Feb 2020 21:26:49 -0500 Subject: [PATCH] [frio] Add narrow screen short item action button row --- view/theme/frio/css/style.css | 63 ++++++------ view/theme/frio/templates/wall_thread.tpl | 119 +++++++++++++++++++++- 2 files changed, 146 insertions(+), 36 deletions(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 00cd682cbc..496583a649 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -56,11 +56,10 @@ body a[name]:not([href]) { visibility: hidden; } -body a:hover, .btn-link:hover, -body a:focus, .btn-link:focus, -body a:active, .btn-link:active, -body a.active, .btn-link.active { - /*color: #59d6e4;*/ +body a:hover, .btn-link:hover, .btn:hover, +body a:focus, .btn-link:focus, .btn:focus, +body a:active, .btn-link:active, .btn:active, +body a.active, .btn-link.active, .btn.active { color: $link_hover_color; text-decoration: none; outline: none; @@ -1890,10 +1889,6 @@ code > .hl-main { margin: 0; margin-left: 20px; } -.wall-item-actions .button-event { - padding-left: 5px; - padding-right: 5px; -} .wall-item-actions .button-comments, .wall-item-actions .button-votes, .wall-item-actions .button-likes { @@ -1906,37 +1901,37 @@ code > .hl-main { .wall-item-actions .separator { margin: 0 .3em; } -.wall-item-actions .more-links { - vertical-align: baseline; -} .wall-item-responses > div > p { margin: 0; } /* wall item hover effects */ -.wall-item-container .wall-item-links, -.wall-item-container .wall-item-actions button, -.wall-item-container .body-attach > a { - opacity: 0.3; - -webkit-transition: all 0.25s ease-in-out; - -moz-transition: all 0.25s ease-in-out; - -o-transition: all 0.25s ease-in-out; - -ms-transition: all 0.25s ease-in-out; - transition: all 0.25s ease-in-out; -} -.wall-item-container:hover .wall-item-links, -.wall-item-container:hover .wall-item-actions button, -.wall-item-container:hover .body-attach > a { - opacity: 1; - -webkit-transition: all 0.25s ease-in-out; - -moz-transition: all 0.25s ease-in-out; - -o-transition: all 0.25s ease-in-out; - -ms-transition: all 0.25s ease-in-out; - transition: all 0.25s ease-in-out; -} -.wall-item-container .wall-item-body .body-attach > a:hover { - opacity: 1; + +@media (min-width: 768px) { + .wall-item-container .wall-item-links, + .wall-item-container .wall-item-actions button, + .wall-item-container .body-attach > a { + opacity: 0.3; + -webkit-transition: all 0.25s ease-in-out; + -moz-transition: all 0.25s ease-in-out; + -o-transition: all 0.25s ease-in-out; + -ms-transition: all 0.25s ease-in-out; + transition: all 0.25s ease-in-out; + } + .wall-item-container:hover .wall-item-links, + .wall-item-container:hover .wall-item-actions button, + .wall-item-container:hover .body-attach > a { + opacity: 1; + -webkit-transition: all 0.25s ease-in-out; + -moz-transition: all 0.25s ease-in-out; + -o-transition: all 0.25s ease-in-out; + -ms-transition: all 0.25s ease-in-out; + transition: all 0.25s ease-in-out; + } + .wall-item-container .wall-item-body .body-attach > a:hover { + opacity: 1; + } } /* diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 8e058c30f6..624ac8b409 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -268,7 +268,7 @@ as the value of $top_child_total (this is done at the end of this file)
{{* Action buttons to interact with the item (like: like, dislike, share and so on *}} - + - + + + + +
+ {{* Event attendance buttons *}} + {{if $item.isevent}} +
+ + + +
+ {{/if}} + + {{if $item.edpost || $item.tagger || $item.filer || $item.pin || $item.star || $item.subthread || $item.ignore || $item.drop.dropping}} + + {{/if}} + + {{if $item.drop.pagedrop}} + + + {{/if}} + +