From ae63d226577d636fd340eb4cff9ff65727b77505 Mon Sep 17 00:00:00 2001 From: HT Date: Fri, 28 Jul 2023 04:00:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=82=8A=E2=81=BA=E2=9C=BF=CB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06-Determination | 384 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 272 insertions(+), 112 deletions(-) diff --git a/06-Determination b/06-Determination index cbc2ce9..80e8ac6 100644 --- a/06-Determination +++ b/06-Determination @@ -4,7 +4,11 @@ Made by glenthemes Initial release: 2015/08/29 Remake date: 2019/02/05 -Last updated: 2023/05/06 +Last updated: 2023/07/27 + +What's new: +✱ NPF audio post support +✱ improved NPF post types detection TERMS OF USE: 1) Do not remove the theme credit. @@ -81,7 +85,7 @@ $(document).ready(function(){ $('.photo-slideshow').pxuPhotoset({ lightbox: true, rounded: false, - gutter: '{text:photoset gutter width}px', + gutter: '{select:photos spacing}', borderRadius: '0px', photoset: '.photo-slideshow', photoWrap: '.photo-data', @@ -135,10 +139,10 @@ if (june.length > kar) { + + + + + + + + + + + + @@ -262,31 +334,133 @@ $(document).ready(function(){ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + @@ -300,22 +474,6 @@ $(document).ready(function(){ - - - - - - - - - - - - - - - - @@ -341,7 +499,7 @@ $(document).ready(function(){ font-size:9px; letter-spacing:-1px; color: {color:text}; - max-width: calc({text:post width}px * 1.25); + max-width: calc({select:post width} * 1.25); } /*--------------------TUMBLR CONTROLS--------------------*/ @@ -405,7 +563,7 @@ color:{color:text}; cursor:normal; font-family:{select:body font family}; line-height:1.6em; -font-size:{text:font size}px; +font-size:{select:font size}; text-align:left; overflow-x:hidden; } @@ -443,7 +601,7 @@ hr { background-color:rgba({RGBcolor:text},0.3); } -p.npf_quirky, p.npf_quote {font-size:calc({text:font size}px + 5px);line-height:1em;} +p.npf_quirky, p.npf_quote {font-size:calc({select:font size} + 5px);line-height:1em;} /*--------------------LINKS--------------------*/ a { @@ -461,7 +619,7 @@ a:hover {text-decoration:none;} img {opacity:1;text-decoration:none;} h1 { - font-size:calc({text:font size}px + 1px); + font-size:calc({select:font size} + 1px); font-family:quicksand regular; text-transform: uppercase; letter-spacing: 2px; @@ -478,22 +636,22 @@ h1:first-child {margin-top:0px} #container { position:absolute; margin:0 auto; - margin-top:{text:top gap}px; - margin-bottom:{text:top gap}px; + margin-top:{select:top gap}; + margin-bottom:{select:top gap}; top:0;left:0;right:0; - width:calc(var(--Sidebar-Width) + {text:side margins}px + {text:post width}px + ({text:post padding}px * 2) + (({text:post width}px + ({text:post padding}px * 2)) * 0.025) + {text:side margins}px + {text:corner image width}px); + width:calc(var(--Sidebar-Width) + {select:side gaps} + {select:post width} + ({select:post padding} * 2) + (({select:post width} + ({select:post padding} * 2)) * 0.025) + {select:side gaps} + {select:corner image width}); } #nudge { - margin-left:calc(var(--Sidebar-Width) + {text:side margins}px); + margin-left:calc(var(--Sidebar-Width) + {select:side gaps}); } #c0rner { position:fixed; - margin-left:calc((var(--Sidebar-Width) + {text:side margins}px + {text:post width}px + ({text:post padding}px * 2) + (({text:post width}px + ({text:post padding}px * 2)) * 0.025)) + {text:side margins}px); - bottom:0;margin-bottom:{text:corner image from bottom}px; - width:{text:corner image width}px; + margin-left:calc((var(--Sidebar-Width) + {select:side gaps} + {select:post width} + ({select:post padding} * 2) + (({select:post width} + ({select:post padding} * 2)) * 0.025)) + {select:side gaps}); + bottom:0;margin-bottom:{select:corner image from bottom}; + width:{select:corner image width}; height:auto; } @@ -821,18 +979,18 @@ h1:first-child {margin-top:0px} .pcontent { margin-top:0px; - padding-top:{text:post padding}px; + padding-top:{select:post padding}; } .posts { overflow:hidden; -margin-bottom:{text:post margin}px; -width:{text:post width}px; +margin-bottom:{select:post spacing}; +width:{select:post width}; min-width:210px; -padding:{text:post padding}px; +padding:{select:post padding}; background-color:{color:post}; border:1px solid {color:post borders}; -box-shadow:calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) {color:post box shadow}; +box-shadow:calc(({select:post width} + ({select:post padding} * 2)) * 0.025) calc(({select:post width} + ({select:post padding} * 2)) * 0.025) {color:post box shadow}; } .posts:last-of-type {margin-bottom:0px;} @@ -856,7 +1014,7 @@ a.post_media_photo_anchor { .photos, .photos img { position:relative; overflow:hidden; - width:{text:post width}px; + width:{select:post width}; {block:IndexPage} {block:ifphotofade} @@ -913,15 +1071,15 @@ a.post_media_photo_anchor { /*--------------------PERMALINK--------------------*/ .permawrap { - margin-top:{text:post padding}px; - margin-left:-{text:post padding}px; - margin-bottom:-{text:post padding}px; - width:calc({text:post width}px + ({text:post padding}px * 2)); + margin-top:{select:post padding}; + margin-left:-{select:post padding}; + margin-bottom:-{select:post padding}; + width:calc({select:post width} + ({select:post padding} * 2)); border-top:1px solid {color:post borders}; } .poof{ - padding:{text:permalink padding}px; + padding:{select:permalink padding}; overflow:auto; } @@ -1015,21 +1173,21 @@ a.post_media_photo_anchor { /*--------------------POST NOTES--------------------*/ ol.notes { margin-top:-2px; -margin-bottom:{text:post margin}px; -width:{text:post width}px; -padding:{text:post padding}px; +margin-bottom:{select:post spacing}; +width:{select:post width}; +padding:{select:post padding}; background:{color:post}; border:1px solid {color:post borders}; list-style-type:none; -box-shadow:calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) {color:post box shadow}; +box-shadow:calc(({select:post width} + ({select:post padding} * 2)) * 0.025) calc(({select:post width} + ({select:post padding} * 2)) * 0.025) {color:post box shadow}; } .heyho { -width:calc(({text:post width}px + ({text:post padding}px * 2)) - ({text:permalink padding}px * 2)); -padding:{text:permalink padding}px; +width:calc(({select:post width} + ({select:post padding} * 2)) - ({select:permalink padding} * 2)); +padding:{select:permalink padding}; background:{color:post}; border:1px solid {color:post borders}; -box-shadow:calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) {color:post box shadow}; +box-shadow:calc(({select:post width} + ({select:post padding} * 2)) * 0.025) calc(({select:post width} + ({select:post padding} * 2)) * 0.025) {color:post box shadow}; } ol.notes li.note { @@ -1069,7 +1227,8 @@ text-decoration:none; box-shadow:none !important; border-radius:0px !important; max-width:none; - padding:{text:post padding}px !important; + margin-top:-{select:post padding}!important; + padding:{select:post padding} !important; background:{color:post} !important; border:1px solid {color:post borders} !important; } @@ -1090,7 +1249,7 @@ text-decoration:none; } .glae { - width:calc((({text:post width}px + ({text:post padding}px * 2)) - 38px) / 2); + width:calc((({select:post width} + ({select:post padding} * 2)) - 38px) / 2); height:1px; background:{color:post borders}; } @@ -1098,19 +1257,19 @@ text-decoration:none; .glae.g1 { float:left; margin-top:calc(-20px); - margin-left:calc(-{text:post padding}px); + margin-left:calc(-{select:post padding}); } .glae.g2 { float:right; margin-top:calc(-20px); - margin-right:calc(-{text:post padding}px); + margin-right:calc(-{select:post padding}); } .quote { - margin-top:{text:post padding}px; + margin-top:{select:post padding}; font-family:domine;letter-spacing:0.5px; - font-size:{text:font size}px; + font-size:{select:font size}; font-style:italic; line-height:2em; text-align:center; @@ -1151,7 +1310,7 @@ text-transform:uppercase; font-weight:bold; } -p.npf_chat { font-family:Courier; font-size:{text:font size}px; } +p.npf_chat { font-family:Courier; font-size:{select:font size}; } /*---------------------------ASKS---------------------------*/ .q-wrap { @@ -1211,7 +1370,7 @@ height:0px; /*---------------------------VIDEO---------------------------*/ .tumblr_video_container { - width:{text:post width}px!important; + width:{select:post width}!important; min-width:210px!important; height:auto!important; max-height:540px!important; @@ -1247,12 +1406,12 @@ video { /*------------------------BOT PAGI------------------------*/ .botpagi { - margin-bottom:{text:post margin}px; - width:calc(({text:post width}px + ({text:post padding}px * 2)) - ({text:permalink padding}px * 2)); + margin-bottom:{select:post spacing}; + width:calc(({select:post width} + ({select:post padding} * 2)) - ({select:permalink padding} * 2)); background:{color:post}; - padding:{text:permalink padding}px; + padding:{select:permalink padding}; border:1px solid {color:post borders}; - box-shadow:calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) calc(({text:post width}px + ({text:post padding}px * 2)) * 0.025) {color:post box shadow}; + box-shadow:calc(({select:post width} + ({select:post padding} * 2)) * 0.025) calc(({select:post width} + ({select:post padding} * 2)) * 0.025) {color:post box shadow}; text-align:center; } @@ -1467,43 +1626,44 @@ video {
{block:Date} - {block:Text} - {PostType} — {Timestamp} - {/block:Text} - - {block:Photo} - image — {Timestamp} - {/block:Photo} - - {block:Photoset} - photoset — {Timestamp} - {/block:Photoset} - - {block:Quote} - {PostType} — {Timestamp} - {/block:Quote} - - {block:Link} - {PostType} — {Timestamp} - {/block:Link} - - {block:Chat} - {PostType} — {Timestamp} - {/block:Chat} - - {block:Audio} - {PostType} — {Timestamp} - {/block:Audio} - - {block:Video} - {PostType} — {Timestamp} - {/block:Video} - - {block:Answer} - {PostType} — {Timestamp} - {/block:Answer} + {block:Text} + {PostType} — {Timestamp} + {/block:Text} + + {block:Photo} + image — {Timestamp} + {/block:Photo} + + {block:Photoset} + photoset — {Timestamp} + {/block:Photoset} + + {block:Quote} + {PostType} — {Timestamp} + {/block:Quote} + + {block:Link} + {PostType} — {Timestamp} + {/block:Link} + + {block:Chat} + {PostType} — {Timestamp} + {/block:Chat} + + {block:Audio} + {PostType} — {Timestamp} + {/block:Audio} + + {block:Video} + {PostType} — {Timestamp} + {/block:Video} + + {block:Answer} + {PostType} — {Timestamp} + {/block:Answer} {/block:Date} +