From 78d0c6db37531ad702d5b680dcbf5adf2563e224 Mon Sep 17 00:00:00 2001 From: Gitea Date: Wed, 27 Jul 2022 10:00:53 -0400 Subject: [PATCH] UPDATES: * Custom link handlers for profile (icon-links.html) * Custom classes for homepage styles (border, tables, etc) --- README.md | 11 ++++ assets/css/template-styles.css | 78 ++++++++++++++++++++++++++ layouts/.index.html.swp | Bin 0 -> 12288 bytes layouts/index.html | 34 ++++++++++- layouts/partials/.icon-links.html.swp | Bin 0 -> 12288 bytes layouts/partials/head.html | 5 ++ layouts/partials/icon-links.html | 14 +++++ 7 files changed, 140 insertions(+), 2 deletions(-) create mode 100644 layouts/.index.html.swp create mode 100644 layouts/partials/.icon-links.html.swp create mode 100644 layouts/partials/icon-links.html diff --git a/README.md b/README.md index 26da950..6c34a0a 100644 --- a/README.md +++ b/README.md @@ -86,3 +86,14 @@ Adblocker easyfilter has some filter on “plausible.js” string, especially if - `static/js/pdf.js` - `static/js/pdf.worker.js` +### Layout & CSS + +#### Homepage `layout/index.html` + +Homepage splited into two main section, Greetings section and Recent Post section. Both of the section is wrapped using `inf-border` class to give them borders. The Greetings section now has subsection of important links which is paritally loaded from custom layout of `icon-links.html`. + +The Recent Posts section is managed by `inf-patterns-list` class, using html table instead of html lists format. + + + + diff --git a/assets/css/template-styles.css b/assets/css/template-styles.css index 4bcac59..fa539f8 100644 --- a/assets/css/template-styles.css +++ b/assets/css/template-styles.css @@ -442,6 +442,22 @@ caption { margin-top: 0.5rem; } + +/* Infidel borders */ +.inf-border { + font-size: 1rem; + border: 2px solid; + padding: 1.5rem; + box-shadow: 5px 10px; +} +.inf-border nav { + margin-top: 1rem; +} +.inf-border ol { + margin-left: 0.75rem; + margin-top: 0.5rem; +} + /* Disqus Comments */ #disqus-container { text-align: center; @@ -454,6 +470,62 @@ caption { display: none; } +/* infidel Pattern lists */ +.inf-patterns-list { + list-style: none; + margin-left: 0; +} +.inf-patterns-list h2 { + font-size: 1.0; + line-height: 1.6; +} + +.inf-patterns-list span { + font-size: 1.0; + line-height: 1.6; +} + +.inf-patterns-list li + li { + margin-top: 1rem; + padding-top: 1rem; + border-top: 2px solid; +} +.inf-patterns-list a { + border-bottom: none !important; +} + +.inf-patterns-list table,th,td { + + border: none !important; +} + +.inf-patterns-list table,tr:first-child { + + border: none !important; +} + + +.inf-patterns-list table,tr { + + border-top: 2px solid !important; +} + +.inf-patterns-list th, td:first-child { + margin-top: 1rem; + padding-top: 1rem; + text-align: left; +} + +.inf-patterns-list th, td { + margin-top: 1rem; + padding-top: 1rem; + text-align: right; +} + +.inf-patterns-list td, a { + border-bottom: none !important; +} + /* Pattern lists */ .patterns-list { list-style: none; @@ -898,6 +970,12 @@ h1 svg { /* Media queries */ @media screen and (max-width: 45em) { + /* Infidel Customs for mobile screen */ + + .inf-td-hide { + display: none; + } + body a { hyphens: auto; } diff --git a/layouts/.index.html.swp b/layouts/.index.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..a488590860b0d9324f762a33f78da38ea69d60f2 GIT binary patch literal 12288 zcmeI2&x_PZ6vs>Vu&C?$>*TF0S5&Y&aU4Y?-LNW(f-(&1%|oU0x)VBGX_Cq~y`uXk z?0Nryg}v>0LD<83_Toj4UPRElC&6!J5^Wug;*Y~HFYu+3diCSIPrWK=xod@~jrE9H8^L(D9?*-+QRW$=N8Jf|Hl_&` zUTy0P%ITEyPF3rrdX|;e86#Tl#&+^)XFlZw+nK;-Bv9I6=k!i-V&S;&!at}E$bEaS zZ$=UvGZSC}On?b60Vco%m;e*lv;^#Qi})SUZ>I%{vWmr@ekzw|8IW(zt|LW|HL=;_Zw+=Kpx z3dn=@LjroTQ;5GHAA0_i5ci?G&`qcZZHFH0z+D6AB6Jwq1HFU~&!C6UedvGaU#RkJ z1F~h8nE(@D0!)AjFaajO1ip;G?c0(}B=6i2a_&_I-b5#+FNCb0z%zQK|K`)x2A4Q$kShFiKF8+Bsb3s$XNzAKfhdP1KWb;Z^zRz_{!Hmezw1<6&%GB!kQ-sq;iTauFFUabA*=!)#C%Ehy8@?p$W9bFRiv)d%p<*{&rvT}$h4;4(rE-0@g3bT0@4 PlSDL33`tehI4@oUY|D#! literal 0 HcmV?d00001 diff --git a/layouts/index.html b/layouts/index.html index ecd5d7d..8848bdd 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,36 @@ {{ define "main" }}
-

{{ .Title }}

- {{ .Content }} + + + +
{{ end }} diff --git a/layouts/partials/.icon-links.html.swp b/layouts/partials/.icon-links.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..04aeb519762131c68ef392f1f4373bd7a3559f76 GIT binary patch literal 12288 zcmeI2-D(su6vxwoc%jvzK0qA7yV>+Zt(KXU;zgKy9h1;*Z?s1X4oKm>>Y5g-CYfCvzQGfp58xq97aoF~En4sbMX z$4*QZO!tYXbra;cmT1*adc;ZsGlgF{o_P4!;k$Q8E)+H1b6^f$dE=a z2O7*?#7ifKX;g+#`As1T6?)yiVRYV9)A~Ou$Xl&)j+JFLm+`=X$;ya>QxKOb&!tJD z;A)Bg6-Yz00XTnvi#^f@JcKs>($oI_e$PoS!DVFuLH3LcqH=bqv=lF_harS`tEl}< z$BoC_HjaR$2|NS6EwU*~{!mWGX;V*7*CSPNlh7d+E~ZmANw< zt!!a?IJ1l+@P&iCZUe*_RP*cDZZq?zVVYwU+td05AFJ Qpe(_s4R=<{G>ZD{7s&0GT>t<8 literal 0 HcmV?d00001 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 88a6e6c..f5846cf 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -16,6 +16,11 @@ {{ end }} + + + + + diff --git a/layouts/partials/icon-links.html b/layouts/partials/icon-links.html new file mode 100644 index 0000000..a0a8877 --- /dev/null +++ b/layouts/partials/icon-links.html @@ -0,0 +1,14 @@ +
+ +