fix indent

This commit is contained in:
Flummi 2021-03-03 07:56:46 +01:00
parent d6c12b9311
commit d553e71b50
8 changed files with 68 additions and 105 deletions

View File

@ -53,8 +53,8 @@ li.post:hover > span.item-mime {
}
a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover, a.navbar-item.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, .navbar-link.is-active {
background-color: #000000;
color: #ffffff;
background-color: #000;
color: #fff;
}
a#next, a#prev {
@ -64,7 +64,7 @@ a#next, a#prev {
bottom: 932px;
margin: unset;
font-size: 30px;
color: #99ff00;
color: #9f0;
padding: 140px 40px 140px 40px;
cursor: pointer;
align-content: inherit;
@ -322,7 +322,7 @@ a#prev {
display: flex;
width: 100%;
align-items: center;
justify-content: end;
justify-content: flex-end;
}
.arrow-next {
@ -363,11 +363,7 @@ a#prev {
vertical-align: baseline;
zoom: 1; *display: inline;
*vertical-align: auto;
background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: -moz-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: -o-linear-gradient(top, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0));
-webkit-box-shadow: 0 1px rgba(255, 255, 255, 0.05);
box-shadow: 0 1px rgba(255, 255, 255, 0.05);
}
@ -396,15 +392,8 @@ a#prev {
text-shadow: 0 1px black;
background-clip: padding-box;
border-color: rgba(0, 0, 0, 0.9);
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px rgba(255, 255, 255, 0.04), inset 0 -1px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.1);
-webkit-transition: 0.1s ease-out;
-moz-transition: 0.1s ease-out;
-o-transition: 0.1s ease-out;
transition: 0.1s ease-out;
}
@ -419,7 +408,6 @@ a#prev {
background: #1c1c1c;
background: rgba(255, 255, 255, 0.01);
border-color: black rgba(0, 0, 0, 0.65) rgba(0, 0, 0, 0.6);
-webkit-box-shadow: inset 0 1px rgba(0, 0, 0, 0.05), inset 0 2px 2px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
box-shadow: inset 0 1px rgba(0, 0, 0, 0.05), inset 0 2px 2px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
}
@ -446,20 +434,20 @@ span#f0ck {
/* nav overhaul */
.nav-item {
width: 100%;
text-align: center
text-align: center;
}
.navbar-brand {
padding-top: 0
padding-top: 0;
}
.navbar-nav.mr-auto {
flex-flow: row;
justify-content: space-between
justify-content: space-between;
}
.navbar.navbar-expand-lg {
background: #242424
background: #242424;
}
.navigation-links {
@ -469,7 +457,6 @@ span#f0ck {
border-radius: 3px;
border: 1px solid #000;
background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0));
-webkit-box-shadow: 0 1px rgba(255,255,255,.05);
box-shadow: 0 1px rgba(255,255,255,.05);
border: 1px solid;
border-top-color: currentcolor;
@ -482,7 +469,7 @@ span#f0ck {
border-left-color: currentcolor;
border-color: #070809 #0d0e0f #131517;
border-color: rgba(0,0,0,.8) rgba(0,0,0,.65) rgba(0,0,0,.5);
border-radius: 3px
border-radius: 3px;
}
.nav-link {
@ -490,47 +477,44 @@ span#f0ck {
display: flex;
border: 1px solid #000;
border-radius: 3px;
transition: .1s ease-out
transition: .1s ease-out;
}
.nav-link {
min-width: 17px;
line-height: 27px;
background-image: -webkit-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -moz-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -o-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1)
box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
}
.nav-item:hover>a:hover {
background-color: #333;
background-color: rgba(255,255,255,.05)
background-color: rgba(255,255,255,.05);
}
.navbar-nav {
padding: 5px
padding: 5px;
}
.nav-item {
width: 100%;
text-align: center
text-align: center;
}
#navbarSupportedContent {
padding: 5px
padding: 5px;
}
.pagination-container-fluid {
display: flex;
margin-left: 15px
margin-left: 15px;
}
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
margin-right: 5px;
margin-left: 5px
margin-left: 5px;
}
.pagination {
@ -542,12 +526,9 @@ span#f0ck {
border-radius: 3px;
display: inline-block;
vertical-align: baseline;
zoom:1;background-image: -webkit-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0));
background-image: -moz-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0));
background-image: -o-linear-gradient(top,rgba(0,0,0,.12),rgba(0,0,0,0));
zoom: 1;
background-image: linear-gradient(to bottom,rgba(0,0,0,.12),rgba(0,0,0,0));
-webkit-box-shadow: 0 1px rgba(255,255,255,.05);
box-shadow: 0 1px rgba(255,255,255,.05)
box-shadow: 0 1px rgba(255,255,255,.05);
}
.pagination>a,.pagination>span {
@ -563,11 +544,15 @@ span#f0ck {
text-align: center;
text-decoration: none;
border: 1px solid #000;
border-radius: 3px
border-radius: 3px;
}
.pagination > span {
border: 1px solid #68da20 !important;
}
.pagination :first-child {
margin-left: 0
margin-left: 0;
}
.pagination>a {
@ -575,21 +560,14 @@ span#f0ck {
text-shadow: 0 1px #000;
background-clip: padding-box;
border-color: rgba(0,0,0,.9);
background-image: -webkit-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -moz-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: -o-linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
background-image: linear-gradient(to bottom,rgba(255,255,255,.04),rgba(255,255,255,0));
-webkit-box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
background-image: linear-gradient(top,rgba(255,255,255,.04),rgba(255,255,255,0));
box-shadow: inset 0 0 0 1px rgba(255,255,255,.04),inset 0 1px rgba(255,255,255,.04),inset 0 -1px rgba(0,0,0,.15),0 1px 1px rgba(0,0,0,.1);
-webkit-transition: .1s ease-out;
-moz-transition: .1s ease-out;
-o-transition: .1s ease-out;
transition: .1s ease-out
transition: .1s ease-out;
}
.pagination>a:hover {
background-color: #333;
background-color: rgba(255,255,255,.05)
background-color: rgba(255,255,255,.05);
}
.pagination>a:active,.pagination>span {
@ -598,83 +576,82 @@ span#f0ck {
background: #1c1c1c;
background: rgba(255,255,255,.01);
border-color: #000 rgba(0,0,0,.65) rgba(0,0,0,.6);
-webkit-box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06);
box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06)
box-shadow: inset 0 1px rgba(0,0,0,.05),inset 0 2px 2px rgba(0,0,0,.3),0 1px rgba(255,255,255,.06);
}
.pagination .next,.pagination .prev {
font-family: Noteworthy,Arial,sans-serif;
font-size: 14px
font-size: 14px;
}
.navbar-nav {
width: 100%;
padding: 5px
padding: 5px;
}
.nav-link-identifier {
text-align: center;
width: 100%
width: 100%;
}
@media (max-width: 768px) {
ul#posts {
grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
text-align: center;
padding-top: 5px
padding-top: 5px;
}
}
@media (max-width: 422px) {
ul#posts {
grid-column-gap: 0;
grid-row-gap: 5px
grid-row-gap: 5px;
}
.container-fluid,.container-lg,.container-md,.container-sm,.container-xl {
padding-right: 5px;
padding-left: 5px
padding-left: 5px;
}
}
@media (max-width: 410px) {
ul#posts {
grid-column-gap: 15px;
grid-row-gap: 10px
grid-row-gap: 10px;
}
.container-fluid,.container-lg,.container-md,.container-sm,.container-xl {
padding-right: 15px;
padding-left: 15px
padding-left: 15px;
}
}
@media (max-width: 991px) {
.navbar-nav {
width: 100%;
padding: 0
padding: 0;
}
.navbar-expand-lg .navbar-nav .nav-link {
margin: 0
margin: 0;
}
.pagination-container-fluid {
display: flex;
justify-content: center;
padding-top: 5px;
margin-bottom: 0
margin-bottom: 0;
}
.navbar {
padding: .5rem 1rem 0
padding: .5rem 1rem 0;
}
.navigation-links {
border-color: transparent transparent transparent
border-color: transparent transparent transparent;
}
.pagination-container-fluid {
margin-left: 0
margin-left: 0;
}
}

View File

@ -31,6 +31,7 @@ router.get(/\/(p\/\d+)?$/, async (req, res) => {
const data = {
items: query,
pagination: {
start: 1,
end: pages,
prev: (page > 1) ? page - 1 : null,
next: (page < pages) ? page + 1 : null,
@ -80,6 +81,7 @@ router.get(/^\/([0-9]+)$/, async (req, res) => {
prev: query.prev ? query.prev : null,
title: `${query.id} - f0ck.me`,
pagination: {
start: qmax,
end: 1,
prev: query.id + 1,
next: Math.max(query.id - 1, 1),

View File

@ -17,9 +17,9 @@
<p>#f0ck specific don'ts:</p>
<ul>
<li>Animal cruelty is forbidden and will lead to an immediate ban</li>
<li>All kinds of terrorist shit, we dont want any of it, f0ck off k?</li>
<li>Snuff/Beastiality is not welcome here</li>
<li>pictures of you grandmas furburger also might be too hardcore for us</li>
<li>All kinds of terrorist shit, we dont want any of it, f0ck off k?</li>
<li>Snuff/Beastiality is not welcome here</li>
<li>pictures of you grandmas furburger also might be too hardcore for us</li>
</ul>
<h4>What the f0ck is a f0ck?</h4>
<p>A f0ck is basically giving a fuck about some internet bullshit, like stupid images, videos and so on, but also
@ -30,7 +30,7 @@
<p>f0ck will f0ck any media link posted in the channel ending with: jpg|gif|png|webm|mp3|mp4|ogg|flac</p>
<p>If you don't want f0ck to f0ck it put !ignore behind your link. Example:
https://retard-journal.com/stupidshit.png !ignore</a>
<p>f0ck will only f0ck media links with the maximum size of 40MB for cool people ??MB</p>
<p>f0ck will only f0ck media links with the maximum size of 40MB for cool people ??MB</p>
<h4>Alternative domains</h4>
<p>f0ck onions and moons, but fockulite!</p>
<p>http://fockmoonsb24iczs7odozzy5uktlzbcgp337nabrgffzxv5ihabgpvyd.onion</p>

View File

@ -1,7 +1,7 @@
{{include main/header}}
<div class="container">
<div class="contact">
<p>Got a problem? We have the answer: <a href="mailto:admin@f0ck.space">admin@f0ck.space</a></p>
<p>Got a problem? We have the answer: <a href="mailto:admin@f0ck.me">admin@f0ck.me</a></p>
</div>
</div>
{{include main/footer}}

View File

@ -4,12 +4,12 @@
<div class="next-post">
{{if next}}
<a id="next" href="/{{=next}}">
<div class="arrow-next">«</div>
</a>
<div class="arrow-next">«</div>
</a>
{{else}}
<a id="next" href="#" style="color: #ccc !important;">
<div class="arrow-next">«</div>
</a>
<div class="arrow-next">«</div>
</a>
{{/if}}
</div>
<div class="media-object">
@ -33,12 +33,12 @@
<div class="previous-post">
{{if prev}}
<a id="prev" href="/{{=prev}}">
<div class="arrow-prev">»</div>
</a>
<div class="arrow-prev">»</div>
</a>
{{else}}
<a id="prev" href="#" style="color: #ccc !important;">
<div class="arrow-prev">»</div>
</a>
<div class="arrow-prev">»</div>
</a>
{{/if}}
</div>
</div>

View File

@ -1,15 +1,15 @@
{{if typeof pagination !== "undefined"}}
<nav class="pagination">
<a href="{{=pagination.link}}1" class="start{{if !pagination.prev}} disabled{{/if}}">&laquo;</a>
<a href="{{=pagination.link}}{{=pagination.prev}}" class="prev{{if !pagination.prev}} disabled{{/if}}">&lsaquo;</a>
<a href="{{=pagination.link}}{{=pagination.start}}" class="btn start{{if !pagination.prev}} disabled{{/if}}">&#11164;&#11164;</a>
<a href="{{=pagination.link}}{{=pagination.prev}}" class="btn prev{{if !pagination.prev}} disabled{{/if}}">&#11164;</a>
{{each pagination.cheat as i}}
{{if i == pagination.page}}
<span>{{=i}}</span>
<span class="btn disabled">{{=i}}</span>
{{else}}
<a href="{{=pagination.link}}{{=i}}">{{=i}}</a>
<a href="{{=pagination.link}}{{=i}}" class="btn">{{=i}}</a>
{{/if}}
{{/each}}
<a href="{{=pagination.link}}{{=pagination.next}}" class="next{{if !pagination.next}} disabled{{/if}}">&rsaquo;</a>
<a href="{{=pagination.link}}{{=pagination.end}}" class="start{{if !pagination.next}} disabled{{/if}}">&raquo;</a>
<a href="{{=pagination.link}}{{=pagination.next}}" class="btn next{{if !pagination.next}} disabled{{/if}}">&#11208;</a>
<a href="{{=pagination.link}}{{=pagination.end}}" class="btn start{{if !pagination.next}} disabled{{/if}}">&#11208;&#11208;</a>
</nav>
{{/if}}

View File

@ -1,9 +1,9 @@
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="/">
<span id="f0ck" width="" height="">F0CK</span>
<span id="f0ck" width="" height="">F0CK</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse show" id="navbarSupportedContent">
@ -19,9 +19,9 @@
<a class="nav-link" href="/contact"><span class="nav-link-identifier">Contact</span></a>
</li>
</ul>
</div>
</div>
<div class="pagination-container-fluid">
{{include partials/pagination}}
{{include partials/pagination}}
</div>
</div>
</nav>

View File

@ -1,16 +0,0 @@
{{include main/header}}
<div class="container-fluid">
{{include partials/pagination}}
<ul id="posts">
{{each items as item}}
<li class="post">
<a href="/{{=item.id}}" title="{{=item.mime}}">
<img class="thumb" src="/t/{{=item.id}}.png" />
<span class="item-mime">{{=item.mime}}</span>
</a>
</li>
{{/each}}
</ul>
{{include partials/pagination}}
</div>
{{include main/footer}}