*/}}
Browse Source

Added margin to p_thumb

YimingWu 1 year ago
parent
commit
5662d51d5c
1 changed files with 9 additions and 9 deletions
  1. 9 9
      index.php

+ 9 - 9
index.php

@@ -579,7 +579,7 @@ overflow:auto;max-height:calc(100vh - 2.6em);}
 .center{display:inline-block;vertical-align:top;width:50%;overflow:visible;padding-bottom:4rem;}
 .center_wide{display:inline-block;vertical-align:top;width:75%;padding-left:0.3em;overflow:visible;padding-bottom:4rem;}
 .center_full{display:inline-block;vertical-align:top;width:100%;overflow:visible;padding-bottom:4rem;}
-.center_wide .p_thumb{height:12rem;margin:0;}
+.center_wide .p_thumb{height:12rem;margin:0;margin-right:1em;margin-bottom:1em;box-shadow:5px 5px 15px 2px black;}
 .linked_posts{margin-right:1.5em;padding:0.5em;padding-left:2.5em;background-color:%grayslice%;box-shadow:0px 0.2em 0.2em -0.2em inset %shadow%;}
 .active_post .linked_posts{background-color:%highlight_slice%;}
 input:checked~.linked_posts{display:none;}
@@ -675,7 +675,7 @@ h1,h2,h3,h4,h5{scroll-margin:2.5em;}
 .side_thumb li{margin:0.4em;display:inline-block;}
 .file_thumb{width:4em;height:4em;display:inline-block;line-height:0;vertical-align:middle;overflow:hidden;}
 .p_row{display:flex;flex-wrap:wrap;width:100%;}
-.p_thumb{display:flex;flex-grow:100;height:6rem;margin-right:0.25rem;margin-bottom:0.25rem;overflow:hidden;position:relative;}
+.p_thumb{display:flex;flex-grow:100;height:6rem;overflow:hidden;position:relative;margin-right:0.5em;margin-bottom:0.5em;box-shadow:box-shadow:2px 2px 10px 1px #000a;}
 .p_thumb_narrow{width:1rem;flex-grow:1;opacity:0.2;}
 .p_thumb img,.p_thumb video{object-fit:cover;max-height:100%;min-width:100%;}.p_thumb a{display:contents;}
 .p_thumb:hover .post_menu_button{display:block;}
@@ -699,10 +699,10 @@ h1,h2,h3,h4,h5{scroll-margin:2.5em;}
 #dropping_background{background-color:rgba(255,255,255,0.4);position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;text-align:center;
 box-shadow:0px 0px 500px black inset;display:flex;align-items:center;}
 img,video{cursor:pointer;max-height:100%;max-width:100%;vertical-align:middle;}
-.post img,.post video{max-height:min(70vh, 20rem);max-width:min(100%, 20rem);}
+.post img,.post video{max-height:min(70vh, 20rem);max-width:min(100%, 20rem);margin-right:0.5em;margin-bottom:0.5em;box-shadow:2px 2px 10px 1px #000a;}
 .post > a > img,.post > a > video{display:block;margin:0.3em auto;}
 .post .original_img{max-width:100%;display:inline-block;vertical-align:middle;
-margin-left:auto;margin-right:auto;max-width:100%;max-height:90vh;}
+margin-left:auto;margin-right:auto;max-width:100%;max-height:90vh;margin-right:0.5em;margin-bottom:0.5em;box-shadow:2px 2px 10px 1px #000a;}
 .center_exp .post .original_img{display:block;}
 .original_img img,.original_img video{max-height:90vh;max-width:100%;}
 .p_row .original_img{margin-bottom:0;}
@@ -794,7 +794,7 @@ width:2em;height:2em;display:block;border:1px solid %black%;background-color:rgb
 @media screen and (max-width:1000px) and (min-width:666px){
 .left{width:35%;}
 .center,.center_wide{width:65%;}
-.center_wide .p_thumb{height:8rem;}
+.center_wide .p_thumb{height:8rem;margin-right:0.7em;margin-bottom:0.7em;box-shadow:3px 3px 12px 2px black;}
 .post_width{width:calc(100% - 1.5rem);padding-left:0.2em;}
 .hidden_on_wide{display:unset;}
 .pop_right{width:30%;}
@@ -829,7 +829,7 @@ header::before{box-shadow:none;display:none;}
 .small_footer::before{box-shadow:none;display:none;}
 .left{position:relative;width:100%;top:unset;height:unset;max-height:unset;padding-right:0;display:block;}
 .center,.center_wide,.center_full{position:relative;left:0;top:0;width:100%;padding-left:0;display:block;}
-.center_wide .p_thumb{height:6rem;}
+.center_wide .p_thumb{height:6rem;margin-right:0.5em;margin-bottom:0.5em;box-shadow:2px 2px 10px 1px black;}
 .pop_right,.pop_right_big{top:unset;right:0;bottom:0;left:0;width:100%;}
 .pop_right{height:30%;}
 .pop_right_big{height:70%;}
@@ -2758,10 +2758,10 @@ blockquote{border-left:2px solid black;}
                 $this->NeedWriteImages = 1;
                 if($do_image_redirect) return 0;
             }
-            //if(isset($_GET['rewrite_styles'])){
+            if(isset($_GET['rewrite_styles'])){
                 $this->WriteStyles();
-            //    $redirect='?extras=true'; return 0;
-            //}
+                $redirect='?extras=true'; return 0;
+            }
             if(isset($_GET['regenerate_thumbnails'])){
                 $this->RegenerateThumbnails();
                 $redirect='?extras=true'; return 0;