From 6cf5fd56e5238b89c74da9a81f45712c6310b3eb Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 4 Aug 2018 20:54:58 +0200 Subject: [PATCH 1/2] [frio] Increase content space on <600px width devices --- view/theme/frio/css/style.css | 69 +++++++++++++++++++---- view/theme/frio/templates/search_item.tpl | 5 +- view/theme/frio/templates/wall_thread.tpl | 8 ++- 3 files changed, 65 insertions(+), 17 deletions(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 97fe67a9f..7bbe590db 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1599,13 +1599,12 @@ aside .panel-body { } .wwto .contact-photo { width: auto; - height: 25px; + height: 15px; font-size: 8.8px; - padding: 3.6px 0; border-radius: 2px; position: absolute; - top: 30px; - left: 30px; + top: 28px; + left: 28px; display: inline-block; } @@ -1869,7 +1868,6 @@ code > .hl-main { border-radius: 3px; } .well hr { - margin: 15px 0 10px; border-top: 1px solid #d9d9d9; } .wall-entry .well { @@ -2165,7 +2163,7 @@ ul.dropdown-menu li:hover { .suggest-content-wrapper, .common-content-wrapper, .help-content-wrapper, .allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper, .directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper, -.message-content-wrapper, .apps-content-wrapper, +.message-content-wrapper, .apps-content-wrapper, #adminpage, .delegate-content-wrapper, .uexport-content-wrapper, .viewcontacts-content-wrapper, .dfrn_request-content-wrapper, .friendica-content-wrapper, .credits-content-wrapper, .nogroup-content-wrapper, @@ -3023,11 +3021,11 @@ section.help-content-wrapper li { background-color: #f5f5f5; } .offset-anchor::before { - display: block; - content: " "; - margin-top: -100px; + display: block; + content: " "; + margin-top: -100px; height: 100px; - visibility: hidden; + visibility: hidden; pointer-events: none; } @@ -3368,5 +3366,56 @@ section .profile-match-wrapper { } +/* Mobile display */ +@media (max-width: 600px) { + body { + padding-top: 95px; + } + #friendica-logo-mask { + display: none; + } + .container { + padding-right: 0; + padding-left: 0; + } + + .panel { + border-radius: 0; + margin-bottom: 5px; + } + + .panel .panel-body { + padding: 10px; + } + + .wall-spacer { + height: 0px; + } + + .wall-item-actions { + margin-top: 10px; + } + + .media { + margin-top: 0; + } + + .nav-pills.preferences { + right: 10px; + } + + .generic-page-wrapper, .profile_photo-content-wrapper, .videos-content-wrapper, .suggest-content-wrapper, .common-content-wrapper, .help-content-wrapper, .allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper, .directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper, .message-content-wrapper, .apps-content-wrapper, #adminpage, .delegate-content-wrapper, .uexport-content-wrapper, .viewcontacts-content-wrapper, .dfrn_request-content-wrapper, .friendica-content-wrapper, .credits-content-wrapper, .nogroup-content-wrapper, .profperm-content-wrapper, .invite-content-wrapper, .tos-content-wrapper, .fsuggest-content-wrapper { + border-radius: 0; + padding: 10px; + } + + .row { + margin-right: 0; + } + + .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { + padding-right: 0; + } +} diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 3ae36c782..970d5d72c 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -117,10 +117,7 @@ -
- -
- +
{{* item content *}}
diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index daa02ef10..7ef875987 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -239,10 +239,12 @@ as the value of $top_child_total (this is done at the end of this file)
{{/if}} -
- {{* Insert Line to seperate item header and item content visually *}} - {{if $item.thread_level==1}}
{{/if}} + {{if $item.thread_level==1}} +
+ {{else}} +
+ {{/if}} {{* item content *}}
From e76ddd7745ffb70f4adc1163640fbd5599978886 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 4 Aug 2018 21:54:02 +0200 Subject: [PATCH 2/2] [frio] Fix shared posts avatars size/position between desktop/mobile --- view/theme/frio/css/style.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 7bbe590db..a92c90ae7 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1599,7 +1599,7 @@ aside .panel-body { } .wwto .contact-photo { width: auto; - height: 15px; + height: 25px; font-size: 8.8px; border-radius: 2px; position: absolute; @@ -3418,4 +3418,11 @@ section .profile-match-wrapper { .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 { padding-right: 0; } + + .wwto .contact-photo { + height: 19px; + padding: 0; + top: 24px; + left: 24px; + } }