From 93278c00b745a67fda03395f73c79cb2ddeb12d7 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 6 May 2023 19:41:02 +0000 Subject: update profile vcard to implement the cover image --- view/css/widgets.css | 24 +++++++++++++ view/theme/redbasic/css/style.css | 23 ------------ view/tpl/profile_vcard.tpl | 74 +++++++++++++++++++++------------------ 3 files changed, 63 insertions(+), 58 deletions(-) (limited to 'view') diff --git a/view/css/widgets.css b/view/css/widgets.css index 6b5ef3986..6f5a90aa5 100644 --- a/view/css/widgets.css +++ b/view/css/widgets.css @@ -231,6 +231,30 @@ a.wikilist { display: none !important; } +/* vcard */ + +.vcard-card { + background-color: rgba(var(--bs-body-bg-rgb), .7); +} + +.vcard { + word-wrap: break-word; +} + +.profile-edit-side-link { + opacity: 0; + filter:alpha(opacity=0); +} + +.card:hover .profile-edit-side-link { + opacity: 1; + filter:alpha(opacity=100); +} + +#profile-cover-text { + background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent); +} + /* contact block */ .contact-block-div .oneway-overlay { font-size: .9rem; diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index fc5416eaa..18973e30c 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -404,29 +404,6 @@ footer { margin-bottom: 10px; } -.fn { - font-weight: bold; - font-size: 1rem; -} - -.vcard-card { - background-color: rgba(var(--bs-body-bg-rgb), .7); -} - -.vcard { - word-wrap: break-word; -} - -.profile-edit-side-link { - opacity: 0; - filter:alpha(opacity=0); -} - -.card:hover .profile-edit-side-link { - opacity: 1; - filter:alpha(opacity=100); -} - #hide-friends-yes-label, #hide-friends-no-label { margin-left: 125px; diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index beec6b3a0..4c3875fa7 100644 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -1,49 +1,53 @@
-
-
-
- {{$profile.fullname}} -
-
-
- {{if $editmenu.multi}} - - {{elseif $editmenu}} - - {{/if}} - -
- {{$profile.fullname}}{{if $profile.online}}{{/if}} +
+ + {{if $connect}} + + {{$connect}} + + {{/if}} +
+
+ {{$profile.fullname}}{{if $profile.online}}{{/if}}
- {{$profile.reddress}} + {{$profile.reddress}}
- {{if $connect}} - + {{if $editmenu.multi}} + + {{elseif $editmenu}} +
+ +
+ {{/if}} +
+
+
+ {{$profile.fullname}} +
+ {{if $profile.pdesc}} +
{{$profile.pdesc}}
+ {{else}} +
+ {{$no_pdesc}} +
+ {{/if}}
{{if $details}}
- {{if $profile.pdesc}} -
{{$profile.pdesc}}
- {{/if}} {{if $location}}
{{$location}}
-- cgit v1.2.3