home » zplus/freepost.git
Author zPlus <zplus@peers.community> 2023-07-04 08:50:49
Committer zPlus <zplus@peers.community> 2023-07-04 08:50:49
Commit 3f4365e (patch)
Tree c0427ba
Parent(s)

Add CSS file. Freepost used to use Stylus files, which were converted to CSS files. This step has been removed in favor of plain CSS. During the switch the CSS file got left out, so it's now being added.


commits diff: ebe84c3..3f4365e
2 files changed, 825 insertions, 1 deletiondownload


Diffstat
-rw-r--r-- .gitignore 1
-rw-r--r-- freepost/static/css/freepost.css 825

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+0/-1 M   .gitignore
index a3430b3..355b7d0
old size: 91B - new size: 69B
@@ -2,6 +2,5 @@ __pycache__/
2 2 venv/
3 3 *.pyc
4 4
5 - /freepost/static/css/
6 5 /database.sqlite
7 6 /settings.production.yaml

+825/-0 A   freepost/static/css/freepost.css
index 0000000..d5b641b
old size: 0B - new size: 21K
new file mode: -rw-r--r--
@@ -0,0 +1,825 @@
1 + * {
2 + margin: 0;
3 + padding: 0;
4 + font-family: sans-serif;
5 +
6 + -moz-box-sizing: border-box;
7 + -webkit-box-sizing: border-box;
8 + box-sizing: border-box;
9 + }
10 +
11 + a, a:hover, a:visited {
12 + background: transparent;
13 + color: #337ab7;
14 + text-decoration: none;
15 + }
16 +
17 + blockquote {
18 + background-color: #f8f8f8;
19 + border-left: 5px solid #e9e9e9;
20 + font-size: .85em;
21 + margin: 1em 0;
22 + padding: .5em 1em;
23 + }
24 +
25 + blockquote cite {
26 + color: #999;
27 + display: block;
28 + font-size: .8em;
29 + margin-top: 1em;
30 + }
31 +
32 + blockquote cite:before {
33 + content: "\2014 \2009";
34 + }
35 +
36 + h3 {
37 + font-size: 1.5em;
38 + font-weight: normal;
39 + margin: 1em 0 .5em 0;
40 + }
41 +
42 + p {
43 + margin: 0 0 10px 0;
44 + }
45 +
46 + .bg-green {
47 + background-color: #d9ffca;
48 + border-radius: 4px;
49 + padding: .5em 1em;
50 + }
51 +
52 + .bg-red {
53 + background-color: #f2dede;
54 + border-radius: 4px;
55 + padding: .5em 1em;
56 + }
57 +
58 + .bg-blue {
59 + background-color: #337ab7;
60 + border-radius: 4px;
61 + padding: .5em 1em;
62 + }
63 +
64 + .bg-light-blue {
65 + background-color: #d9edf7;
66 + border-radius: 4px;
67 + padding: .5em 1em;
68 + }
69 +
70 + /* Some styles for buttons */
71 + .button {
72 + border: 0px;
73 + border-radius: 4px;
74 + cursor: pointer;
75 + display: inline-block;
76 + padding: .5em 1em;
77 + text-align: center;
78 + }
79 +
80 + @media only screen and (max-width: 800px) {
81 + .button {
82 + font-size: 1.2rem;
83 + padding: .5em 1em;
84 + width: 100%;
85 + }
86 + }
87 +
88 + .button_transparent, /* Green */
89 + .button_transparent:hover,
90 + .button_transparent:visited {
91 + background-color: transparent;
92 + border: 0;
93 + color: black;
94 + }
95 +
96 + .button_ok, /* Green */
97 + .button_ok:hover,
98 + .button_ok:visited {
99 + background-color: #4caf50;
100 + color: #fff;
101 + }
102 +
103 + .button_info, /* Blue */
104 + .button_info:hover,
105 + .button_info:visited {
106 + background-color: #008cba;
107 + color: #fff;
108 + }
109 +
110 + .button_alert, /* Red */
111 + .button_alert:hover,
112 + .button_alert:visited {
113 + background-color: #f44336;
114 + color: #fff;
115 + }
116 +
117 + .button_default, /* Gray */
118 + .button_default:hover,
119 + .button_default:visited {
120 + background-color: #e7e7e7;
121 + color: #000;
122 + }
123 +
124 + .button_default1, /* Black */
125 + .button_default1:hover,
126 + .button_default1:visited {
127 + background-color: #555;
128 + color: #fff;
129 + }
130 +
131 + img {
132 + /* Prevent images from taking up too much space in comments */
133 + max-width: 100%;
134 + }
135 +
136 + label {
137 + cursor: pointer;
138 + font-weight: normal;
139 + }
140 +
141 + /* Add light blue shadow to form controls */
142 + .form-control:focus {
143 + border-color: #66afe9;
144 + outline: 0;
145 + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
146 + box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
147 + }
148 +
149 + .form-control {
150 + display: block;
151 + padding: .5em 1em;
152 + line-height: 1.42857143;
153 + color: #555;
154 + border: 1px solid #ccc;
155 + border-radius: 4px;
156 + width: 100%;
157 + -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
158 + box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
159 + -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
160 + -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
161 + transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
162 + }
163 +
164 + .form-control-inline {
165 + display: inline;
166 + width: auto;
167 + }
168 +
169 + textarea.form-control {
170 + height: 8rem;
171 + }
172 +
173 + .pagination {}
174 +
175 + .pagination > form {
176 + display: inline-block;
177 + }
178 +
179 + .pagination > .page_number {
180 + font-size: .7rem;
181 + font-weight: bold;
182 + margin: 0 1rem;
183 + }
184 +
185 + /* When users vote, this <iframe/> is used as target, such that
186 + * the page is not reloaded
187 + */
188 + .vote_sink {
189 + height: 1px;
190 + left: -10px;
191 + position: fixed;
192 + top: -10px;
193 + width: 1px;
194 + }
195 +
196 + html, body {
197 + background-color: #fff;
198 + font-size: 1em;
199 + height: 100%;
200 + line-height: 1em;
201 + margin: 0;
202 + padding: 0;
203 + width: 100%;
204 + }
205 +
206 + pre {
207 + background-color: #efefef;
208 + font-family: "Courier 10 Pitch", Courier, monospace;
209 + font-size: 95%;
210 + line-height: 140%;
211 + margin: 1rem 0;
212 + padding: 1rem;
213 + white-space: pre;
214 + white-space: pre-wrap;
215 + white-space: -moz-pre-wrap;
216 + white-space: -o-pre-wrap;
217 + }
218 +
219 + pre code {
220 + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
221 + font-size: 95%;
222 + line-height: 140%;
223 + white-space: pre;
224 + white-space: pre-wrap;
225 + white-space: -moz-pre-wrap;
226 + white-space: -o-pre-wrap;
227 + }
228 +
229 + /* Monospace <pre/> to write some nice ASCII art in frontpage */
230 + pre.new_year {
231 + background-color: transparent;
232 + color: #BF0000;
233 + font-family: monospace;
234 + font-size: .8rem;
235 + font-webkit: bold;
236 + margin: 0 0 2em 0;
237 + text-align: center;
238 + white-space: pre;
239 + white-space: pre-wrap;
240 + white-space: -moz-pre-wrap;
241 + white-space: -o-pre-wrap;
242 + }
243 +
244 + /* Inline code */
245 + :not(pre) > code {
246 + background-color: #efefef;
247 + border-radius: 3px;
248 + display: inline-block;
249 + font-family: monospace, sans-serif;
250 + font-size: 85%;
251 + line-height: 140%;
252 + margin: 0 .2em;
253 + padding: .2em;
254 + white-space: pre;
255 + white-space: pre-wrap;
256 + white-space: -moz-pre-wrap;
257 + white-space: -o-pre-wrap;
258 + }
259 +
260 + /* A <div> that respects \n without converting to <br> */
261 + div.pre {
262 + white-space: pre;
263 + }
264 +
265 + select {
266 + -webkit-appearance: none;
267 + -moz-appearance: none;
268 + appearance: none;
269 + background: transparent;
270 + border: 0;
271 + cursor: pointer;
272 + }
273 +
274 + ul, ol {
275 + margin: 1.2em 2em;
276 + }
277 +
278 + /* Burger menu icon
279 + *
280 + * How to use:
281 + * <div class="burger-icon">
282 + * <div class="line1"></div>
283 + * <div class="line2"></div>
284 + * <div class="line3"></div>
285 + * </div>
286 + */
287 + .burger-icon {
288 + display: inline-block;
289 + cursor: pointer;
290 + position: relative;
291 + }
292 +
293 + .burger-icon > .line1,
294 + .burger-icon > .line2,
295 + .burger-icon > .line3 {
296 + background-color: #000;
297 + height: 4px;
298 + margin: 4px 0;
299 + transition: .5s;
300 + width: 36px;
301 + }
302 +
303 + .burger-icon.open > .line1 {
304 + transform: rotate(-45deg) translate(-0px, 11px);
305 + }
306 +
307 + .burger-icon.open > .line2 {
308 + opacity: 0;
309 + }
310 +
311 + .burger-icon.open > .line3 {
312 + transform: rotate(45deg) translate(-0px, -11px);
313 + }
314 +
315 + .burger-icon.notify > .line1,
316 + .burger-icon.notify > .line2,
317 + .burger-icon.notify > .line3 {
318 + background-color: #f00;
319 + }
320 +
321 +
322 +
323 +
324 +
325 +
326 +
327 +
328 +
329 +
330 +
331 +
332 +
333 +
334 +
335 +
336 +
337 +
338 +
339 +
340 +
341 +
342 +
343 +
344 + /* A class used for displaying URLs domain (under post tile) */
345 + .netloc {
346 + color: #828282;
347 + font-size: 1rem;
348 + font-style: italic;
349 + }
350 +
351 + .monkey {
352 + height: 1.5em;
353 + margin: 0 1em;
354 + vertical-align: middle;
355 + }
356 +
357 + a.topic,
358 + a.topic:hover,
359 + a.topic:visited {
360 + color: rgba(200,0,100,.8);
361 + font-size: 1rem;
362 + padding: 0 .2rem;
363 + text-decoration: none;
364 + }
365 +
366 + /* Text icon near the title, to display the post content */
367 + .text_preview {
368 + height: .8rem;
369 + margin: 0 .5rem;
370 + vertical-align: middle;
371 + }
372 +
373 + /* Logo text */
374 + a.logo,
375 + a.logo:hover,
376 + a.logo:visited {
377 + color: #000;
378 + font-weight: bold;
379 + text-decoration: none;
380 + }
381 +
382 + /* List of posts, for example in the homepage */
383 + .posts {}
384 +
385 + .posts > .menu {
386 + border-bottom: 0px transparent;
387 + font-size: .8rem;
388 + margin-bottom: 1rem;
389 + }
390 +
391 + .posts > .menu > a {
392 + padding: .2rem;
393 + }
394 +
395 + /* A singe post */
396 + .posts > .post {
397 + display: grid;
398 + grid-template-columns: min-content auto;
399 + grid-column-gap: 1.5rem;
400 +
401 + margin-bottom: 2rem;
402 + }
403 +
404 + /* Show numbered position in the list */
405 + .posts > .post > .position {
406 + color: #555;
407 + font-style: italic;
408 + line-height: 1.9rem;
409 + text-align: right;
410 + }
411 +
412 + .posts > .post > .info > .title > a {
413 + color: #000;
414 + font-size: 1.6rem;
415 + }
416 +
417 + /* Some post info showed below the title */
418 + .posts > .post > .info > .about {
419 + color: #666;
420 + margin: .5rem 0 0 0;
421 + }
422 +
423 + .posts > .pagination > form {
424 + width: 100%;
425 + }
426 +
427 + .container {
428 + margin: auto;
429 + max-width: 90%;
430 + }
431 +
432 +
433 + /**************************************************************************
434 + * Page header
435 + *************************************************************************/
436 +
437 +
438 + .container > .header {
439 + margin-top: 1rem;
440 + }
441 +
442 + @media only screen and (max-width: 800px) {
443 + .container > .header {
444 + display: grid;
445 + grid-template-columns: auto;
446 + }
447 +
448 + .container > .header > .title-large {
449 + display: none;
450 + }
451 +
452 + .container > .header > .title-small {
453 + display: grid;
454 + grid-template-columns: auto max-content;
455 + }
456 + }
457 +
458 + @media only screen and (min-width: 800px) {
459 + .container > .header {
460 + display: grid;
461 + grid-template-columns: max-content auto;
462 + }
463 +
464 + .container > .header > .title-small {
465 + display: none;
466 + }
467 + }
468 +
469 + /* Menu under the logo */
470 + @media only screen and (max-width: 800px) {
471 + .burger-icon {
472 + display: inline-block;
473 + }
474 +
475 + .menu {
476 + border-bottom: 2px dashed #aaa;
477 + display: none;
478 + padding: 1rem 0;
479 + }
480 +
481 + /* This class is toggled when the burger icon is clicked */
482 + .menu.visible {
483 + display: block;
484 + }
485 +
486 + /* Every menu item */
487 + .menu.visible a {
488 + border: 0;
489 + color: #000;
490 + display: block;
491 + margin: 0;
492 + padding: .8rem 0;
493 + text-align: left;
494 + text-decoration: none;
495 + }
496 +
497 + /* Highlight menu item of the current active page (Hot/New/Submit/...) */
498 + .menu.visible .active_page {
499 + font-weight: bold;
500 + text-decoration: underline dotted;
501 + text-transform: uppercase;
502 + }
503 +
504 + /* Highlight username if there are unread messages */
505 + .menu.visible .new_messages {
506 + background-color: rgb(255, 175, 50);
507 + color: #fff;
508 + font-weight: bold;
509 + padding-left: 1rem;
510 + }
511 + }
512 +
513 + @media only screen and (min-width: 800px) {
514 + .burger-icon {
515 + display: none;
516 + }
517 +
518 + .menu {
519 + border-bottom: 1px solid transparent;
520 + display: flex;
521 + flex-direction: row;
522 + flex-wrap: wrap;
523 + justify-content: flex-start;
524 + align-content: flex-start;
525 + align-items: flex-end;
526 + }
527 +
528 + .menu > .flex-item {
529 + flex: 0 1 auto;
530 + align-self: auto;
531 + order: 0;
532 +
533 + border: 0;
534 + border-bottom: 3px solid transparent;
535 + color: #000;
536 + margin: 0;
537 + padding: 0 .5rem .5rem .5rem;
538 + }
539 +
540 + /* Highlight menu item of the current active page (Hot/New/Submit/...) */
541 + .menu > .active_page {
542 + border-bottom: 3px solid #000;
543 + }
544 +
545 + /* Highlight username if there are unread messages */
546 + .menu .new_messages {
547 + background-color: rgb(255, 175, 50);
548 + border: 0;
549 + border-radius: 4px;
550 + color: #fff;
551 + font-weight: bold;
552 + margin: 0;
553 + padding: .5em .5em;
554 + text-decoration: none;
555 + }
556 + }
557 +
558 +
559 + /**************************************************************************
560 + * Page content
561 + *************************************************************************/
562 +
563 +
564 + .container > .content {
565 + padding: 1em 0;
566 + line-height: 1.5em;
567 + }
568 +
569 + .container > .content .vote {
570 + margin: 0 1rem 0 0;
571 + padding: 0 .5rem;
572 + }
573 +
574 + .container > .content .vote > form {
575 + display: inline-block;
576 + margin: 0;
577 + padding: 0;
578 + }
579 +
580 + .container > .content .vote > form > button {
581 + background: transparent;
582 + border: 0;
583 + cursor: pointer;
584 + display: inline-block;
585 + height: 1rem;
586 + margin: 0;
587 + overflow: hidden;
588 + padding: 0;
589 + text-decoration: none;
590 + vertical-align: middle;
591 + width: 1rem;
592 + }
593 +
594 + /* Votes counter */
595 + .container > .content .vote > .count {
596 + margin: 0 .5rem;
597 + }
598 +
599 + .container > .content .vote.upvoted {
600 + background-color: #d1ffd5;
601 + border: 1px dashed;
602 + border-color: #00e313;
603 + border-radius: .5rem;
604 + color: #00a200;
605 + font-weight: bolder;
606 + }
607 +
608 + .container > .content .vote.downvoted {
609 + background-color: #ffd9d9;
610 + border: 1px dashed;
611 + border-color: #ff7171;
612 + border-radius: .5rem;
613 + color: #f00;
614 + font-weight: bolder;
615 + }
616 +
617 + /* Community page */
618 + .container > .content > .community {
619 +
620 + }
621 +
622 + .container > .content > .community > .about {
623 + border-left: 1px solid #aaa;
624 + float: right;
625 + font-size: .9rem;
626 + margin: 0 0 5% 5%;
627 + padding: 0 5%;
628 + width: 40%;
629 + }
630 +
631 + /* New submission page */
632 + .container > .content > form.submit {
633 + width: 100%;
634 + }
635 +
636 + /* Page for a post */
637 + .container > .content > .post {
638 + }
639 +
640 + /* Style used to format Markdown tables */
641 + .container > .content > .post table {
642 + background: #fff;
643 + border-collapse: collapse;
644 + text-align: left;
645 + }
646 +
647 + .container > .content > .post table > th {
648 + border-bottom: 2px solid #6678b1;
649 + color: #039;
650 + font-weight: normal;
651 + padding: 0 1em;
652 + }
653 +
654 + .container > .content > .post table > td {
655 + border-bottom: 1px solid #ccc;
656 + color: #669;
657 + padding: .5em 1em;
658 + }
659 +
660 + /* The post title */
661 + .container > .content > .post > .title {
662 + font-size: 1.5em;
663 + }
664 +
665 + /* Info below post title */
666 + .container > .content > .post > .info {
667 + margin: 1em 0;
668 + }
669 +
670 + .container > .content > .post > .info > .username {
671 + margin-left: 1rem;
672 + }
673 +
674 + /* Post text */
675 + .container > .content > .post > .text {
676 + margin: 2rem 0;
677 + word-wrap: break-word;
678 + }
679 +
680 + /* The "new comment" form for this post page */
681 + .container > .content > .post .new_comment > input[type=submit] {
682 + margin: 1em 0;
683 + }
684 +
685 + /* Comments tree for the Post page */
686 + .container > .content > .post > .comments {
687 + margin: 5em 0 0 0;
688 + }
689 +
690 + /* A single comment in the tree */
691 + .container > .content > .post > .comments > .comment {
692 + margin: 0 0 1rem 0;
693 + overflow: hidden;
694 + }
695 +
696 + /* Some info about this comment */
697 + .container > .content > .post > .comments > .comment > .info {
698 + display: inline-block;
699 + font-size: .9rem;
700 + }
701 +
702 + .container > .content > .post > .comments > .comment > .info > .username {
703 + display: inline-block;
704 + margin: 0 1rem;
705 + }
706 +
707 + .container > .content > .post > .comments > .comment .info a,
708 + .container > .content > .post > .comments > .comment .info a:hover,
709 + .container > .content > .post > .comments > .comment .info a:visited {
710 + display: inline-block;
711 + text-decoration: none;
712 + }
713 +
714 + .container > .content > .post > .comments > .comment > .info > .op {
715 + background-color: rgb(255, 175, 50);
716 + border-radius: 4px;
717 + font-weight: bold;
718 + padding: 0 1rem;
719 + }
720 +
721 + .container > .content > .post > .comments > .comment > .info > .op a,
722 + .container > .content > .post > .comments > .comment > .info > .op a:hover,
723 + .container > .content > .post > .comments > .comment > .info > .op a:visited {
724 + color: #fff;
725 + }
726 +
727 + /* The comment text */
728 + .container > .content > .post > .comments > .comment > .text {
729 + word-wrap: break-word;
730 + }
731 +
732 + /* Give the comment that's linked to in the URL location hash a lightyellow background color */
733 + .container > .content > .post > .comments > .comment:target {
734 + background-color: lightyellow;
735 + }
736 +
737 + .container > .content > .search {
738 + margin-bottom: 3rem;
739 + }
740 +
741 + /* User home page */
742 + .container > .content > form > .user {
743 + display: grid;
744 + grid-column-gap: 3rem;
745 + grid-row-gap: 1rem;
746 + grid-template-columns max-content: auto;
747 + }
748 +
749 + /* User activity */
750 + .container > .content > .user_activity > * {
751 + margin: 0 0 2em 0;
752 + }
753 +
754 + /* Login page */
755 + .container > .content > .login {
756 + margin: auto;
757 + max-width: fit-content;
758 + }
759 +
760 + .container > .content > .login form > div {
761 + margin: 1rem 0;
762 + }
763 +
764 + /* Page to edit a post or a comment */
765 + .container > .content > .edit
766 + {
767 + }
768 +
769 + /* Page to reply to a comment */
770 + .container > .content > .reply
771 + {
772 + }
773 +
774 + /* About page */
775 + .container > .content > .about {}
776 +
777 + .container > .content > .about > h3 {
778 + margin: 1em 0 .5em 0;
779 + }
780 +
781 + .container > .content > .about > p {
782 + line-height: 1.5em;
783 + }
784 +
785 +
786 + /**************************************************************************
787 + * Page footer
788 + *************************************************************************/
789 +
790 +
791 + .container > footer {
792 + margin: 0;
793 + padding: 2em 0;
794 + text-align: center;
795 + }
796 +
797 + .container > footer img {
798 + height: 1.2em;
799 + margin: 0 .5em 0 0;
800 + vertical-align: middle;
801 + }
802 +
803 + .container > footer > .monkey {
804 + height: auto;
805 + margin: 0 0 3rem 0;
806 + width: 3%;
807 + }
808 +
809 + .container > footer > ul {
810 + list-style: none;
811 + margin: auto;
812 + overflow: hidden;
813 + padding: 0;
814 + width: fit-content;
815 + }
816 +
817 + .container > footer > ul > li {
818 + float: left;
819 + margin: 0 2em 0 0;
820 +
821 + @media only screen and (max-width: 1024px) {
822 + float: none;
823 + margin: 1rem 0;
824 + }
825 + }