From 92da411465627386f6c74f12d468310c482d8262 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 25 Sep 2016 10:49:12 -0400 Subject: [PATCH] Add active response support to quattro theme - Add active classes to wall_thread.tpl, search_item.tpl and photo_item.tpl - Add styles both in the master LESS file and the generated variant CSS themes --- view/theme/quattro/dark/style.css | 3 ++ view/theme/quattro/green/style.css | 3 ++ view/theme/quattro/lilac/style.css | 3 ++ view/theme/quattro/quattro.less | 4 +- view/theme/quattro/templates/photo_item.tpl | 22 ++++----- view/theme/quattro/templates/search_item.tpl | 28 ++++++------ view/theme/quattro/templates/wall_thread.tpl | 48 ++++++++++---------- 7 files changed, 61 insertions(+), 50 deletions(-) diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index 53864c12f5..0e5c394394 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -1210,6 +1210,9 @@ section { .wall-item-container .wall-item-actions-social a { margin-right: 3em; } +.wall-item-container .wall-item-actions-social a.active { + font-weight: bold; +} .wall-item-container .wall-item-actions-tools { float: right; width: 15%; diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index e099a31d6e..0532bc1ed1 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -1210,6 +1210,9 @@ section { .wall-item-container .wall-item-actions-social a { margin-right: 3em; } +.wall-item-container .wall-item-actions-social a.active { + font-weight: bold; +} .wall-item-container .wall-item-actions-tools { float: right; width: 15%; diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index 631b0233d6..a982c6e59c 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -1210,6 +1210,9 @@ section { .wall-item-container .wall-item-actions-social a { margin-right: 3em; } +.wall-item-container .wall-item-actions-social a.active { + font-weight: bold; +} .wall-item-container .wall-item-actions-tools { float: right; width: 15%; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index 5d25b0fb40..25a524043b 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -575,7 +575,9 @@ section { a { margin-right: 3em; } } .wall-item-actions-social { float: left; margin-top: 0.5em; - a { margin-right: 3em; } + a { margin-right: 3em; + .active { font-weight: bold;} + } } .wall-item-actions-tools { float: right; width: 15%; a { float: right; } diff --git a/view/theme/quattro/templates/photo_item.tpl b/view/theme/quattro/templates/photo_item.tpl index 12c43eb0b2..6dfacdb78c 100644 --- a/view/theme/quattro/templates/photo_item.tpl +++ b/view/theme/quattro/templates/photo_item.tpl @@ -6,7 +6,7 @@ {{$name}} -
{{$location}}
+
{{$location}}
{{if $title}}

{{$title}}

{{/if}} @@ -30,24 +30,24 @@
{{$name}} {{$ago}}
- +
{{if $star}} {{$star.do}} {{$star.undo}} {{$star.tagger}} {{/if}} - + {{if $vote}} - {{$vote.like.1}} - {{$vote.dislike.1}} + {{$vote.like.1}} + {{$vote.dislike.1}} {{/if}} - + {{if $vote.share}} {{$vote.share.1}} - {{/if}} + {{/if}}
- +
{{if $drop.pagedrop}} @@ -60,7 +60,7 @@ {{/if}}
- +
@@ -73,7 +73,7 @@
{{/if}} - - + + diff --git a/view/theme/quattro/templates/search_item.tpl b/view/theme/quattro/templates/search_item.tpl index 8c9cf22e9f..512df75ef9 100644 --- a/view/theme/quattro/templates/search_item.tpl +++ b/view/theme/quattro/templates/search_item.tpl @@ -1,6 +1,6 @@
{{if $item.star}}{{$item.star.starred}}{{/if}} - {{if $item.lock}}{{$item.lock}}{{/if}} + {{if $item.lock}}{{$item.lock}}{{/if}}
@@ -8,7 +8,7 @@
{{if $item.title}}

{{$item.title}}

{{/if}} @@ -43,24 +43,24 @@
{{$item.name}} {{$item.ago}}
- +
{{if $item.star}} {{$item.star.do}} {{$item.star.undo}} {{$item.star.tagger}} {{/if}} - + {{if $item.vote}} - {{$item.vote.like.1}} - {{$item.vote.dislike.1}} + {{$item.vote.like.1}} + {{$item.vote.dislike.1}} {{/if}} - + {{if $item.vote.share}} {{$item.vote.share.1}} - {{/if}} + {{/if}}
- +
{{if $item.drop.pagedrop}} @@ -73,7 +73,7 @@ {{/if}}
- +
@@ -86,7 +86,7 @@
{{/if}} - - + + diff --git a/view/theme/quattro/templates/wall_thread.tpl b/view/theme/quattro/templates/wall_thread.tpl index 247bd16c9f..2ec43c0ce5 100644 --- a/view/theme/quattro/templates/wall_thread.tpl +++ b/view/theme/quattro/templates/wall_thread.tpl @@ -2,12 +2,12 @@ {{else}} {{if $item.comment_firstcollapsed}}
- {{$item.num_comments}} - {{$item.hide_text}} - {{if $item.thread_level==3}} - + {{if $item.thread_level==3}} - expand / @@ -23,7 +23,7 @@
{{if $item.star}}{{$item.star.starred}}{{/if}} - {{if $item.lock}}{{$item.lock}}{{/if}} + {{if $item.lock}}{{$item.lock}}{{/if}}
@@ -31,7 +31,7 @@
{{if $item.owner_url}} - {{/if}} -
{{$item.location}}
+ {{/if}} +
{{$item.location}}
{{if $item.title}}

{{$item.title}}

{{/if}} @@ -73,7 +73,7 @@ {{$cat.name}}{{if $cat.removeurl}} (x) {{/if}} {{/foreach}}
-
+
- +
{{if $item.star}} {{$item.star.do}} @@ -103,28 +103,28 @@ {{/if}} {{if $item.filer}} {{$item.filer}} - {{/if}} - + {{/if}} + {{if $item.vote}} - {{$item.vote.like.1}} + {{$item.vote.like.1}} {{if $item.vote.dislike}} - {{$item.vote.dislike.1}} + {{$item.vote.dislike.1}} {{/if}} {{if $item.vote.share}} {{$item.vote.share.1}} - {{/if}} + {{/if}} {{/if}} {{if $item.isevent}}
{{/if}} - +
- +
{{if $item.drop.pagedrop}} @@ -137,7 +137,7 @@ {{/if}}
- +
@@ -148,7 +148,7 @@ {{/foreach}} {{/if}}
- + {{if $item.threaded}}{{if $item.comment}}{{if $item.indent==comment}}