George S. Baugh 5 anni fa
parent
commit
cdd11320a1
3 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 5 0
      www/styles/screen.css
  2. 5 0
      www/styles/structure.css
  3. 4 0
      www/templates/posts.tx

+ 5 - 0
www/styles/screen.css

@@ -353,3 +353,8 @@ p.posteditortitle {
     background-size: 75%;
     background-position-y: center;
 }
+
+.bigprofile {
+    background-size: 100%;
+    background-position-y: center;
+}

+ 5 - 0
www/styles/structure.css

@@ -99,6 +99,11 @@ blockquote {
     width: 35rem;
     height: 20rem;
 }
+.square {
+    width: 20rem;
+    height: 20rem;
+}
+
 @media(max-width: 35rem) {
     .responsive {
         width: 100%;

+ 4 - 0
www/templates/posts.tx

@@ -27,7 +27,11 @@
                 Your browser does not support the video tag.
             </video>
         : } else {
+            : if ($post.is_profile) {
+            <div class="square circle bigprofile preview" style="background-image:url(<: $post.preview :>)"></div>
+            : } else {
             <div class="responsive preview" style="background-image:url(<: $post.preview :>)"></div>
+            : }
         : }
             <p class="midtitle"><: $post.title :></p>
         </a>