]> git.mxchange.org Git - friendica.git/commitdiff
Merge frio-specific share block template into the base template
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 9 Jul 2021 23:23:01 +0000 (19:23 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 9 Jul 2021 23:23:01 +0000 (19:23 -0400)
- Add BIDI support for share blocks
- Remove redundant share block styles

12 files changed:
view/global.css
view/templates/shared_content.tpl
view/theme/duepuntozero/style.css
view/theme/frio/css/style.css
view/theme/frio/templates/shared_content.tpl [deleted file]
view/theme/quattro/dark/style.css
view/theme/quattro/green/style.css
view/theme/quattro/lilac/style.css
view/theme/quattro/quattro.less
view/theme/smoothly/style.css
view/theme/vier/plusminus.css
view/theme/vier/style.css

index e50e87ec2a613742c59523f4e49dc989fdaeec75..08788c5baf47c893052a45bf37f595b28a8f0347 100644 (file)
@@ -151,13 +151,36 @@ span.connector {
 }
 
 /* Shared Messages */
+
 .shared_header {
+  display: flex;
+  justify-content: space-between;
   min-height: 32px;
   color: #999;
   border-top: 1px solid #D2D2D2;
   padding-top: 5px;
   margin-top: 5px;
 }
+.shared_header > .avatar {
+  display: block;
+  flex: 0 0 41px;
+  margin-inline-end: 9px;
+}
+.shared_header > .avatar > img {
+  -webkit-border-radius: 4px;
+  -moz-border-radius: 4px;
+  border-radius: 4px;
+}
+.shared_header > .metadata {
+  flex: 1 0 auto;
+}
+.shared_header > .metadata > p {
+  margin: 0;
+}
+.shared_header > .preferences {
+  position: static;
+  flex: 0 0 auto;
+}
 
 .shared_header a {
   -webkit-transition: all 0.2s ease-in-out;
@@ -167,16 +190,8 @@ span.connector {
   transition: all 0.2s ease-in-out;
 }
 
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-  margin-right: 9px;
-}
-
 blockquote.shared_content {
-  margin-left: 32px;
+  margin-inline-start: 32px;
   color: #000;
   border: none;
 }
index 32cfbe3720be5a7297f269f1326a95979802ada8..4db3b66c5c017ab1e4f32aa817b1aa0b8e9c28b2 100644 (file)
@@ -1,12 +1,38 @@
-<div class="shared-wrapper">
+<div class="shared-wrapper well well-sm">
        <div class="shared_header">
                {{if $avatar}}
-                       <a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="shared-userinfo">
-                       <img src="{{$avatar}}" height="32" width="32">
+                       <a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="avatar shared-userinfo">
+                               <img src="{{$avatar}}" alt="">
                        </a>
                {{/if}}
-               <div><a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="shared-wall-item-name"><span class="shared-author">{{$author}}</span></a></div>
-               <div class="shared-wall-item-ago"><small><a href="{{$link}}" target="_blank" rel="noopener noreferrer"><span class="shared-time">{{$posted}}</a></a></small></div>
+               <div class="metadata">
+                       <p class="shared-author">
+                               <a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="shared-wall-item-name">
+                                       {{$author}}
+                               </a>
+                       </p>
+                       <p class="shared-wall-item-ago">
+                               {{if $guid}}
+                               <a href="/display/{{$guid}}">
+                                       {{/if}}
+                                       <span class="shared-time">{{$posted}}</span>
+                                       {{if $guid}}
+                               </a>
+                               {{/if}}
+                       </p>
+               </div>
+               <div class="preferences">
+                       {{if $network_icon}}
+                               <span class="wall-item-network"><i class="fa fa-{{$network_icon}}" title="{{$network_name}}" aria-hidden="true"></i></span>
+                       {{else}}
+                               <span class="wall-item-network">{{$network_name}}</span>
+                       {{/if}}
+                       {{if $link}}
+                               <a href="{{$link}}" class="plink u-url" aria-label="{{$link_title}}" title="{{$link_title}}">
+                                       <i class="fa fa-external-link"></i>
+                               </a>
+                       {{/if}}
+               </div>
        </div>
        <blockquote class="shared_content">{{$content nofilter}}</blockquote>
 </div>
index 9a783286d04ded0d24d435c0e03c836da172e780..ee99f47904b56fa9d1e37195bed5a84e7a414aec 100644 (file)
@@ -1238,44 +1238,13 @@ input#dfrn-url {
     background: rgba(0, 0, 0, 0.5) url(shiny.png) no-repeat scroll center center;
 }
 
-.shared_header {
-  height: 32px;
-  color: #999;
-  border-top: 1px solid #D2D2D2;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-
 .shared_header a {
   color: black;
-  -webkit-transition: all 0.2s ease-in-out;
-  -moz-transition: all 0.2s ease-in-out;
-  -o-transition: all 0.2s ease-in-out;
-  -ms-transition: all 0.2s ease-in-out;
-  transition: all 0.2s ease-in-out;
 }
-
 .shared_header a:hover {
   color: #36c;
 }
 
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-}
-
-.shared_header span {
-  margin-left: 9px;
-}
-
-blockquote.shared_content {
-  margin-left: 32px;
-  color: #000;
-  border: none;
-}
-
 .wall-item-title {
        float: left;
        font-weight: bold;
@@ -3244,10 +3213,6 @@ div.jGrowl div.info {
        width: 20px;
 }
 
-.shared_header span {
-       margin-left: 10px;
-}
-
 /* small screens */
 @media all and (max-width: 1089px) {
     .field label { width: 90%; }
index 4fb504714134de317b44f37a3087572ce05885e4..e5d30d1d2c8e8067b580ed5db46b022a94ade3f2 100644 (file)
@@ -1709,10 +1709,20 @@ aside .panel-body {
        right: 0;
        top: 0;
 }
-.shared_header .preferences {
-       top: 7px;
-       right: 9px;
+.shared_header {
+       margin-left: 0px;
+       margin-top: 0px;
+       padding-top: 0px;
+       margin-bottom: 10px;
+       border-top: none;
+       color: inherit;
 }
+blockquote.shared_content {
+       padding: 0px;
+       margin-inline-start: 0px;
+       color: inherit;
+}
+
 .wall-item-network {
        font-size: 13px;
 }
@@ -1837,19 +1847,6 @@ aside .panel-body {
 .vevent:hover {
        box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.05);
 }
-.shared_header {
-       margin-left: 0px;
-       margin-top: 0px;
-       padding-top: 0px;
-       margin-bottom: 10px;
-       border-top: none;
-       color: inherit;
-}
-blockquote.shared_content {
-       padding: 0px;
-       margin-left: 0px;
-       color: inherit;
-}
 code > .hl-main {
        padding: 10px 10px 1px 0;
 }
diff --git a/view/theme/frio/templates/shared_content.tpl b/view/theme/frio/templates/shared_content.tpl
deleted file mode 100644 (file)
index f7b210b..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="shared-wrapper well well-sm">
-       <div class="shared_header">
-               {{if $avatar}}
-                       <a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="shared-userinfo">
-                               <img src="{{$avatar}}" height="32" width="32">
-                       </a>
-               {{/if}}
-               <div><a href="{{$profile}}" target="_blank" rel="noopener noreferrer" class="shared-wall-item-name"><span class="shared-author">{{$author}}</span></a></div>
-               <div class="preferences">
-                       {{if $network_icon}}
-                               <span class="wall-item-network"><i class="fa fa-{{$network_icon}}" title="{{$network_name}}" aria-hidden="true"></i></span>
-                       {{else}}
-                               <span class="wall-item-network">{{$network_name}}</span>
-                       {{/if}}
-                       {{if $link}}
-                               <a href="{{$link}}" class="plink u-url" aria-label="{{$link_title}}" title="{{$link_title}}">
-                                       <i class="fa fa-external-link"></i>
-                               </a>
-                       {{/if}}
-               </div>
-               <div class="shared-wall-item-ago"><small>
-                       {{if $guid}}
-                       <a href="/display/{{$guid}}">
-                       {{/if}}
-                               <span class="shared-time">{{$posted}}</span>
-                       {{if $guid}}
-                       </a>
-                       {{/if}}
-               </small></div>
-       </div>
-       <blockquote class="shared_content">{{$content nofilter}}</blockquote>
-</div>
index be48064f40585d623ff9d4d53e59de897ad4dbd9..e4f7fb3b9592642fa14e9f2a2c1bcbec2aef0c50 100644 (file)
@@ -1437,27 +1437,6 @@ section {
 .type-video blockquote {
   padding-left: 1em;
 }
-.shared_header {
-  height: 32px;
-  color: #999;
-  border-top: 1px solid #cccccc;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-}
-.shared_header span {
-  margin-left: 9px;
-}
-blockquote.shared_content {
-  margin-left: 32px;
-  color: #000;
-  border: none;
-}
 .oembed.video > a.embed_video {
   display: block;
   position: relative;
index 681b9417c32fb1fb382e4dd8d94b9bb0b3e75bc8..3ab55fbaff327955b0b287024c14f7bc86da0756 100644 (file)
@@ -1437,27 +1437,6 @@ section {
 .type-video blockquote {
   padding-left: 1em;
 }
-.shared_header {
-  height: 32px;
-  color: #999;
-  border-top: 1px solid #cccccc;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-}
-.shared_header span {
-  margin-left: 9px;
-}
-blockquote.shared_content {
-  margin-left: 32px;
-  color: #000;
-  border: none;
-}
 .oembed.video > a.embed_video {
   display: block;
   position: relative;
index df854a21fdd040f1568c28a1c73620fdb97095f0..7adf87ad930c6ebe95f59e109533a02cafe90663 100644 (file)
@@ -1437,27 +1437,6 @@ section {
 .type-video blockquote {
   padding-left: 1em;
 }
-.shared_header {
-  height: 32px;
-  color: #999;
-  border-top: 1px solid #cccccc;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-}
-.shared_header span {
-  margin-left: 9px;
-}
-blockquote.shared_content {
-  margin-left: 32px;
-  color: #000;
-  border: none;
-}
 .oembed.video > a.embed_video {
   display: block;
   position: relative;
index 53874be022206e3b8212c49fbbc360e8279e0289..9a990557e4aa115597b10ef8ca7897636a7c975e 100644 (file)
@@ -770,22 +770,6 @@ section {
         border-top: 1px solid @ThreadBottomBorderColor;
         padding-top: 5px;
         margin-top: 5px;
-
-        img {
-            -webkit-border-radius: 4px;
-            -moz-border-radius: 4px;
-            border-radius: 4px;
-            float: left;
-        }
-
-        span { margin-left: 9px; }
-}
-
-
-blockquote.shared_content {
-        margin-left: 32px;
-        color: #000;
-        border: none;
 }
 
 .oembed.video {
index ac0179ea747ffa8a32532d9f0084a2e6074ee62e..2ea3bd6208305e3fa61168cc3e879f5a2f54708b 100644 (file)
@@ -1815,44 +1815,13 @@ ul .sidebar-group-li .icon {
 .type-link .oembed {
 }
 
-.shared_header {
-  height: 32px;
-  color: #999;
-  border-top: 1px solid #D2D2D2;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-
 .shared_header a {
   color: black;
-  -webkit-transition: all 0.2s ease-in-out;
-  -moz-transition: all 0.2s ease-in-out;
-  -o-transition: all 0.2s ease-in-out;
-  -ms-transition: all 0.2s ease-in-out;
-  transition: all 0.2s ease-in-out;
 }
-
 .shared_header a:hover {
   color: #36c;
 }
 
-.shared_header img {
-  -webkit-border-radius: 4px;
-  -moz-border-radius: 4px;
-  border-radius: 4px;
-  float: left;
-}
-
-.shared_header span {
-  margin-left: 9px;
-}
-
-blockquote.shared_content {
-  margin-left: 32px;
-  color: #000;
-  border: none;
-}
-
 .icon.drop,
 .icon.drophide {
        float: left;
index 7d9c09e3eeacdfc169fab5bcf8633c95293c3cb8..23d63e76655c0319a1882f9237fe08b6881e8d9f 100644 (file)
@@ -345,15 +345,6 @@ div.pager, ul.tabs {
   line-height: normal;
 }
 
-.shared_header {
-  min-height: 32px;;
-  color: #999;
-  border-top: 0px;
-  padding-top: 5px;
-  margin-top: 5px;
-}
-
-
 /* Post footer */
 .wall-item-like { font-size:12px; }
 
index 8bf982018e0c9b4474f42cc213a6b6f68f9b0da0..0484a4ea1b03d6e7f19bfd39c5ebae74551ad13a 100644 (file)
@@ -1438,10 +1438,6 @@ section.minimal {
        font-size: 12px;
 }
 
-.shared_header {
-       line-height: 14px;
-}
-
 .wall-item-network {
        color: #999;
        font-size: 12px;