Update style

This commit is contained in:
infidel 2023-12-30 18:38:38 +07:00
parent 3278bd5c66
commit 3dcdccb162
6 changed files with 130 additions and 39 deletions

View File

@ -46,10 +46,11 @@ p + p {
.priority {
margin-top: 0;
}
a {
text-decoration: none;
border-bottom: 1px solid;
}
abbr {
text-decoration: none;
cursor: help;
@ -268,9 +269,19 @@ td {
line-height: 1.25;
margin: 0;
}
th {
font-weight: bold;
font-weight: 700;
background: rgba(0,0,0,.5);
padding: 0.5rem;
color: #dfdfdf;
}
tr:last-child{
border-bottom: 2px solid;
}
th:empty {
border: 0;
}
@ -345,8 +356,6 @@ caption {
.logo img {
width: 100%;
max-width: 12rem;
-webkit-filter: white(100%); /* Safari 6.0 - 9.0 */
filter: white(100%);
}
@ -394,30 +403,38 @@ caption {
.patterns ul ul {
margin-left: 0.75rem;
}
.pattern a {
border: 0;
.nav-pattern a {
text-decoration: none;
border: none;
display: flex;
flex-wrap: nowrap;
align-items: baseline;
font-weight: bold;
padding: 0 1rem;
padding-top: 0.5em;
padding-bottom: 0.5em;
padding: .5rem;
}
.pattern a:focus {
.nav-pattern a:focus {
outline: none;
}
.pattern span {
.nav-pattern a:hover {
border-radius: 4px;
border-right: 4px solid !important ;
}
.nav-pattern span {
margin-left: 0.125rem;
}
/* After */
.pattern [aria-current] {
.nav-pattern [aria-current] {
background-color: #efefef;
color: #39424E;
border-radius: 5px;
}
.nav-pattern td{
border-bottom: none;
}
/* Menu button */
#menu-button {
display: none;
@ -493,6 +510,7 @@ caption {
}
.inf-patterns-list a {
border-bottom: none !important;
text-decoration: none;
}
.inf-patterns-list table,th,td {
@ -506,18 +524,17 @@ caption {
}
.inf-patterns-list table,tr {
border-top: 2px solid !important;
.inf-patterns-list table tr {
border-bottom: 2px solid !important;
}
.inf-patterns-list th, td:first-child {
.inf-patterns-list tr td:first-child {
margin-top: 1rem;
padding-top: 1rem;
text-align: left;
}
.inf-patterns-list th, td {
.inf-patterns-list tr td {
margin-top: 1rem;
padding-top: 1rem;
text-align: right;
@ -543,6 +560,7 @@ caption {
}
.patterns-list a {
border: 0;
text-decoration: none;
}
/* Tags */

View File

@ -6,12 +6,11 @@
{{ .Content }}
</nav>
<nav class="inf-border" aria-labelledby="toc-heading">
<div class="inf-patterns-list" id="list">
<h3> <a href="/post"> Check My Recent Posts </a> </h3>
<table>
<ul class="inf-patterns-list" id="list">
{{ range (.Paginator 5).Pages.ByPublishDate.Reverse }}
<tr>
<td>
<a href="{{ .RelPermalink }}" >
<svg class="bookmark-icon" aria-hidden="true" focusable="false" viewBox="0 0 40 50">
@ -27,8 +26,8 @@
</td>
</tr>
{{ end }}
</ul>
</table>
</div>
</nav>
{{ partial "icon-links.html" . }}

View File

@ -26,8 +26,5 @@
</div>
{{ partial "nav.html" . }}
{{ if eq .Site.Params.moveFooterToHeader true }}
{{ partial "footer.html" . }}
{{ end }}
</div>
</header>

View File

@ -9,7 +9,7 @@
{{ $current := . }}
<ul id="patterns-list">
{{ range .Site.Menus.nav }}
<li class="pattern">
<li class="nav-pattern">
{{ $active := or ($current.IsMenuCurrent "nav" .) ($current.HasMenuCurrent "nav" .) }}
{{ $active = or $active (eq .Name $current.Title) }}
{{ $active = or $active (and (eq .Name "Home") (eq $current.Section "")) }}
@ -25,3 +25,4 @@
{{ end }}
</ul>
</nav>
{{ partial "footer.html" . }}

View File

@ -1 +1,76 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152.7 100.69"><path d="M1.96 0C.88 0 0 .85 0 1.88v88.3c0 1 .88 1.86 1.94 1.86h26.1v-1.65H1.96c-.15 0-.25-.1-.25-.23V1.87c0-.14.1-.22.24-.22h148.8c.15 0 .24.08.24.23v88.3c0 .13-.1.22-.24.22h-27.4v1.64h27.4c1.07 0 1.95-.86 1.95-1.88V1.87c0-1.02-.88-1.87-1.94-1.87H1.96z" white-space="normal" style="text-decoration-color:#000000;isolation:auto;mix-blend-mode:normal;text-indent:0;block-progression:tb;text-decoration-line:none;text-transform:none;text-decoration-style:solid" color="#000" solid-color="#000000"/><path d="M72.43 75.45c-3.22-.35-4.48-.54-6.43-.97-4.5-1-8.23-2.75-11.48-5.4-8.24-6.7-13-19.6-14.36-38.8-.32-4.66-.4-7.98-.23-8.34.25-.5.93-1.27 1.48-1.7 4.06-3.24 14-5.02 30.3-5.44 7.44-.18 16.9.22 23.04.98 5.87.73 9.62 1.64 12.4 3 1.04.52 1.3.7 1.95 1.34 1.12 1.1 1.14 1.2 1.27 4.88.05 1.65.1 3 .12 3.02 0 0 .25-.07.54-.18 1.34-.52 3.74-1.3 5.06-1.63 2.38-.6 3.17-.72 5.18-.72 2.04 0 2.84.15 4.15.8 1.93.95 4.3 3.56 5.42 5.96.97 2.14 1.3 3.56 1.28 5.85 0 1.9-.16 2.8-.75 4.58-2.3 6.9-10.07 14.34-20.6 19.8-4.68 2.4-9.83 4.25-13.62 4.86l-1.05.16-.82.67c-4.08 3.3-9.88 5.82-15.56 6.73-2.63.42-6 .66-7.3.53zm34.03-19.1c3.4-.8 6.9-2.25 9.45-3.93 4.18-2.75 7-6.07 8.3-9.84.46-1.34.64-2.35.64-3.64-.02-2-.5-3.4-1.58-4.45-1.07-1.06-2.34-1.5-4.08-1.38-2.25.13-4.6 1.07-7.45 2.98-2.05 1.36-1.87 1.1-2.14 3.02-.86 6.16-2.45 11.7-4.7 16.46l-.55 1.2.46-.07c.26-.04 1-.2 1.64-.35zm-27.14-7.77c1.38-2.07 2.65-3.9 2.82-4.03.58-.5 1.44-.46 2 .06.16.17 1.45 2.02 2.85 4.12l2.55 3.82.02-12.5V27.5c-.02 0-.74.08-1.62.2-2.67.4-4.73.55-8.16.6l-3.3.06.03 7.1c.04 9.5.13 17.06.22 16.96.04-.04 1.2-1.77 2.6-3.85zm-6.06-21.57c.04-.75.07-.9.3-1.2.5-.66.47-.65 4.97-.66 5.52 0 7.38-.14 11-.82 1.87-.35 2.17-.34 2.63.04.47.4.6.78.6 1.68 0 1-.2.94 1.98.6 4.34-.7 6.84-1.46 7.82-2.4.45-.45.47-.8.06-1.26-.35-.4-.9-.72-1.78-1.05-4.46-1.68-14.23-2.7-25.75-2.7-11.48.02-21.44 1.06-25.65 2.7-.84.33-1.65.9-1.87 1.28-.55 1 1.2 2 4.94 2.84 4.5 1 12.1 1.7 19.08 1.78h1.66l.03-.84zM43.42 96.62q-1.468 0-2.71-.723-1.22-.723-1.943-1.965-.723-1.243-.723-2.71v-2.734q0-1.47.723-2.71t1.942-1.966q1.24-.723 2.71-.723 1.13 0 2.17.47 1.03.45 1.78 1.29.16.16.16.36 0 .25-.21.45l-.97.97q-.16.16-.37.16t-.39-.21q-.88-.88-2.19-.88-1.11 0-1.9.79-.77.76-.77 1.87v2.96q0 1.1.77 1.89.79.77 1.89.77 1.31 0 2.19-.88.18-.21.38-.21t.36.16l.97.97q.2.2.2.45 0 .2-.16.36-.75.83-1.79 1.31-1.04.45-2.17.45zm11.26 0q-1.288 0-2.327-.61-1.016-.61-1.604-1.694-.59-1.084-.59-2.44v-8.02q0-.203.13-.338t.34-.136h1.76q.2 0 .34.136t.13.34v7.68q0 1.197.61 1.852.61.632 1.71.632 1.33 0 2.1-.858.79-.88.79-2.395v-6.92q0-.21.13-.34t.34-.14h1.76q.2 0 .34.13t.13.34v12q0 .2-.14.34t-.34.13h-1.76q-.21 0-.34-.14t-.14-.34v-1.06q-.63.86-1.52 1.35-.86.47-1.9.47zm10.17 4.07q-.203 0-.34-.136t-.134-.338V83.86q0-.203.135-.338t.34-.136h1.47q.21 0 .34.136t.14.34v1.015q.59-.88 1.45-1.333.88-.45 1.88-.45 1.33 0 2.49.72 1.18.702 1.86 1.9.7 1.196.7 2.574v3.14q0 1.378-.67 2.576t-1.83 1.92q-1.15.7-2.53.7-.83 0-1.62-.34-.762-.36-1.4-1.015v4.94q0 .2-.13.34t-.34.13h-1.77zm4.925-6.664q1.107 0 1.875-.768.79-.79.79-1.898v-3.004q0-1.107-.79-1.875-.768-.79-1.875-.79t-1.898.79q-.79.77-.79 1.88v3.01q0 1.11.79 1.9.79.77 1.898.77zm8.935 6.664q-.203 0-.34-.136t-.134-.338V83.86q0-.203.135-.338t.34-.136h1.47q.21 0 .34.136t.14.34v1.015q.59-.88 1.45-1.333.88-.45 1.88-.45 1.33 0 2.49.72 1.18.702 1.86 1.9.7 1.196.7 2.574v3.14q0 1.378-.67 2.576t-1.83 1.92q-1.15.7-2.53.7-.83 0-1.62-.34-.762-.36-1.4-1.015v4.94q0 .2-.13.34t-.34.13h-1.77zm4.925-6.664q1.107 0 1.875-.768.79-.79.79-1.898v-3.004q0-1.107-.79-1.875-.768-.79-1.875-.79t-1.898.79q-.79.77-.79 1.88v3.01q0 1.11.79 1.9.79.77 1.898.77zM97.12 96.33q-1.468 0-2.71-.723-1.22-.723-1.943-1.965-.723-1.243-.723-2.71v-2.44q0-1.47.722-2.71t1.943-1.967q1.24-.723 2.71-.723t2.68.723q1.24.723 1.96 1.966.72 1.25.72 2.71v1.52q0 .41-.3.7-.27.27-.68.27h-7.07v.12q0 1.11.76 1.9.79.77 1.9.77h3.59q.2 0 .34.14t.13.34v1.63q0 .21-.14.34t-.338.14H97.1zm2.666-7.794v-.203q0-1.107-.79-1.875-.77-.79-1.876-.79t-1.898.79q-.768.768-.768 1.875v.203h5.33zm5.424 7.794q-.203 0-.34-.136t-.134-.338v-1.672q0-.203.135-.34t.34-.134h1.72v-7.77h-1.94q-.2 0-.34-.137t-.13-.34V83.86q0-.203.14-.34t.34-.134h3.5q.41 0 .68.294.3.27.3.677v.813l1.22-.97q.68-.543 1.18-.746.5-.226 1.18-.226h.7q.21 0 .34.135t.14.34v1.738q0 .21-.13.34t-.34.14h-.58q-.59 0-1.02.21-.43.21-1.31.91l-1.24 1v5.7h2.238q.21 0 .34.14t.14.34v1.67q0 .21-.132.34t-.34.14h-6.59z"/></svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Do not edit this file with editors other than diagrams.net -->
<svg
version="1.1"
width="197px"
height="197px"
viewBox="-0.5 -0.5 197 197"
content="&lt;mxfile host=&quot;Electron&quot; modified=&quot;2022-04-02T10:51:12.033Z&quot; agent=&quot;5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/17.2.1 Chrome/96.0.4664.174 Electron/16.1.0 Safari/537.36&quot; etag=&quot;gBoGvGm-4LQOVi_zB5OT&quot; version=&quot;17.2.1&quot; type=&quot;device&quot;&gt;&lt;diagram id=&quot;TJL8ZRxknA05ODQ8n_-y&quot; name=&quot;Page-1&quot;&gt;zZXLboMwEEW/hmUrsHmEbWjSKEqlSvShLC1wglWDkXEK6dfXwPBSEqlZtOkGeY7HM/a9BgwcpNWjJHnyJGLKDWTGlYEfDIRcz9PPGhxbgH3Ugr1kcYusAYTsiwI0gR5YTItJohKCK5ZPYSSyjEZqwoiUopym7QSfds3Jnp6AMCL8lL6zWCVALdcfJlaU7RNoPUNw4JR0yXCSIiGxKEcILwwcSCFUO0qrgPJau06Xdt3ywmy/MUkz9ZMFh3Duva63m+XLdrVJ18TBb/kdVPkk/AAHhs2qY6eArqLF1sG8TJiiYU6ieqbUdmuWqJTryNJDUuStAztWUd10XigpPnrZPE12jPNAcCF1nImsLhqTIqmzmxJ18EyUojJrCDKtvk63zkAYYdt2mg6dpqYO4ChUKlpd1Mjqldc3loqUKnnUKbDAscGs7rbOIC5H3vvAkpHtPSRw3/Z97cESPQBXrnAI3dyhP5Tfcaby+86p/O45+d3fkt++ufz/6wXxvPupR7bVk7FLlnPGpQ5e4ZIOh09kMzf6z+DFNw==&lt;/diagram&gt;&lt;/mxfile&gt;"
id="svg12"
sodipodi:docname="logo.svg"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview14"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="2.5699922"
inkscape:cx="86.965245"
inkscape:cy="112.0626"
inkscape:window-width="1920"
inkscape:window-height="950"
inkscape:window-x="0"
inkscape:window-y="44"
inkscape:window-maximized="1"
inkscape:current-layer="g10"
inkscape:snap-global="false" />
<defs
id="defs2" />
<g
id="g10">
<ellipse
cx="98"
cy="98"
fill="none"
stroke="#23445d"
stroke-width="7"
stroke-dasharray="7 7"
pointer-events="all"
id="ellipse4"
ry="95"
rx="95"
style="stroke:#333333" />
<ellipse
cx="98"
cy="98"
fill="none"
stroke="#23445d"
stroke-width="7"
pointer-events="all"
id="ellipse6"
ry="80"
rx="80"
style="stroke:#333333" />
<ellipse
cx="98"
cy="98"
fill="none"
stroke="#23445d"
stroke-width="7"
stroke-dasharray="7 7"
pointer-events="all"
id="ellipse8"
ry="57.5"
rx="57.5"
style="stroke:#333333" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 152.7 100.69"><path d="M1.96 0C.88 0 0 .85 0 1.88v88.3c0 1 .88 1.86 1.94 1.86h26.1v-1.65H1.96c-.15 0-.25-.1-.25-.23V1.87c0-.14.1-.22.24-.22h148.8c.15 0 .24.08.24.23v88.3c0 .13-.1.22-.24.22h-27.4v1.64h27.4c1.07 0 1.95-.86 1.95-1.88V1.87c0-1.02-.88-1.87-1.94-1.87H1.96z" white-space="normal" style="text-decoration-color:#000000;isolation:auto;mix-blend-mode:normal;text-indent:0;block-progression:tb;text-decoration-line:none;text-transform:none;text-decoration-style:solid" color="#000" solid-color="#000000"/><path d="M72.43 75.45c-3.22-.35-4.48-.54-6.43-.97-4.5-1-8.23-2.75-11.48-5.4-8.24-6.7-13-19.6-14.36-38.8-.32-4.66-.4-7.98-.23-8.34.25-.5.93-1.27 1.48-1.7 4.06-3.24 14-5.02 30.3-5.44 7.44-.18 16.9.22 23.04.98 5.87.73 9.62 1.64 12.4 3 1.04.52 1.3.7 1.95 1.34 1.12 1.1 1.14 1.2 1.27 4.88.05 1.65.1 3 .12 3.02 0 0 .25-.07.54-.18 1.34-.52 3.74-1.3 5.06-1.63 2.38-.6 3.17-.72 5.18-.72 2.04 0 2.84.15 4.15.8 1.93.95 4.3 3.56 5.42 5.96.97 2.14 1.3 3.56 1.28 5.85 0 1.9-.16 2.8-.75 4.58-2.3 6.9-10.07 14.34-20.6 19.8-4.68 2.4-9.83 4.25-13.62 4.86l-1.05.16-.82.67c-4.08 3.3-9.88 5.82-15.56 6.73-2.63.42-6 .66-7.3.53zm34.03-19.1c3.4-.8 6.9-2.25 9.45-3.93 4.18-2.75 7-6.07 8.3-9.84.46-1.34.64-2.35.64-3.64-.02-2-.5-3.4-1.58-4.45-1.07-1.06-2.34-1.5-4.08-1.38-2.25.13-4.6 1.07-7.45 2.98-2.05 1.36-1.87 1.1-2.14 3.02-.86 6.16-2.45 11.7-4.7 16.46l-.55 1.2.46-.07c.26-.04 1-.2 1.64-.35zm-27.14-7.77c1.38-2.07 2.65-3.9 2.82-4.03.58-.5 1.44-.46 2 .06.16.17 1.45 2.02 2.85 4.12l2.55 3.82.02-12.5V27.5c-.02 0-.74.08-1.62.2-2.67.4-4.73.55-8.16.6l-3.3.06.03 7.1c.04 9.5.13 17.06.22 16.96.04-.04 1.2-1.77 2.6-3.85zm-6.06-21.57c.04-.75.07-.9.3-1.2.5-.66.47-.65 4.97-.66 5.52 0 7.38-.14 11-.82 1.87-.35 2.17-.34 2.63.04.47.4.6.78.6 1.68 0 1-.2.94 1.98.6 4.34-.7 6.84-1.46 7.82-2.4.45-.45.47-.8.06-1.26-.35-.4-.9-.72-1.78-1.05-4.46-1.68-14.23-2.7-25.75-2.7-11.48.02-21.44 1.06-25.65 2.7-.84.33-1.65.9-1.87 1.28-.55 1 1.2 2 4.94 2.84 4.5 1 12.1 1.7 19.08 1.78h1.66l.03-.84zM43.42 96.62q-1.468 0-2.71-.723-1.22-.723-1.943-1.965-.723-1.243-.723-2.71v-2.734q0-1.47.723-2.71t1.942-1.966q1.24-.723 2.71-.723 1.13 0 2.17.47 1.03.45 1.78 1.29.16.16.16.36 0 .25-.21.45l-.97.97q-.16.16-.37.16t-.39-.21q-.88-.88-2.19-.88-1.11 0-1.9.79-.77.76-.77 1.87v2.96q0 1.1.77 1.89.79.77 1.89.77 1.31 0 2.19-.88.18-.21.38-.21t.36.16l.97.97q.2.2.2.45 0 .2-.16.36-.75.83-1.79 1.31-1.04.45-2.17.45zm11.26 0q-1.288 0-2.327-.61-1.016-.61-1.604-1.694-.59-1.084-.59-2.44v-8.02q0-.203.13-.338t.34-.136h1.76q.2 0 .34.136t.13.34v7.68q0 1.197.61 1.852.61.632 1.71.632 1.33 0 2.1-.858.79-.88.79-2.395v-6.92q0-.21.13-.34t.34-.14h1.76q.2 0 .34.13t.13.34v12q0 .2-.14.34t-.34.13h-1.76q-.21 0-.34-.14t-.14-.34v-1.06q-.63.86-1.52 1.35-.86.47-1.9.47zm10.17 4.07q-.203 0-.34-.136t-.134-.338V83.86q0-.203.135-.338t.34-.136h1.47q.21 0 .34.136t.14.34v1.015q.59-.88 1.45-1.333.88-.45 1.88-.45 1.33 0 2.49.72 1.18.702 1.86 1.9.7 1.196.7 2.574v3.14q0 1.378-.67 2.576t-1.83 1.92q-1.15.7-2.53.7-.83 0-1.62-.34-.762-.36-1.4-1.015v4.94q0 .2-.13.34t-.34.13h-1.77zm4.925-6.664q1.107 0 1.875-.768.79-.79.79-1.898v-3.004q0-1.107-.79-1.875-.768-.79-1.875-.79t-1.898.79q-.79.77-.79 1.88v3.01q0 1.11.79 1.9.79.77 1.898.77zm8.935 6.664q-.203 0-.34-.136t-.134-.338V83.86q0-.203.135-.338t.34-.136h1.47q.21 0 .34.136t.14.34v1.015q.59-.88 1.45-1.333.88-.45 1.88-.45 1.33 0 2.49.72 1.18.702 1.86 1.9.7 1.196.7 2.574v3.14q0 1.378-.67 2.576t-1.83 1.92q-1.15.7-2.53.7-.83 0-1.62-.34-.762-.36-1.4-1.015v4.94q0 .2-.13.34t-.34.13h-1.77zm4.925-6.664q1.107 0 1.875-.768.79-.79.79-1.898v-3.004q0-1.107-.79-1.875-.768-.79-1.875-.79t-1.898.79q-.79.77-.79 1.88v3.01q0 1.11.79 1.9.79.77 1.898.77zM97.12 96.33q-1.468 0-2.71-.723-1.22-.723-1.943-1.965-.723-1.243-.723-2.71v-2.44q0-1.47.722-2.71t1.943-1.967q1.24-.723 2.71-.723t2.68.723q1.24.723 1.96 1.966.72 1.25.72 2.71v1.52q0 .41-.3.7-.27.27-.68.27h-7.07v.12q0 1.11.76 1.9.79.77 1.9.77h3.59q.2 0 .34.14t.13.34v1.63q0 .21-.14.34t-.338.14H97.1zm2.666-7.794v-.203q0-1.107-.79-1.875-.77-.79-1.876-.79t-1.898.79q-.768.768-.768 1.875v.203h5.33zm5.424 7.794q-.203 0-.34-.136t-.134-.338v-1.672q0-.203.135-.34t.34-.134h1.72v-7.77h-1.94q-.2 0-.34-.137t-.13-.34V83.86q0-.203.14-.34t.34-.134h3.5q.41 0 .68.294.3.27.3.677v.813l1.22-.97q.68-.543 1.18-.746.5-.226 1.18-.226h.7q.21 0 .34.135t.14.34v1.738q0 .21-.13.34t-.34.14h-.58q-.59 0-1.02.21-.43.21-1.31.91l-1.24 1v5.7h2.238q.21 0 .34.14t.14.34v1.67q0 .21-.132.34t-.34.14h-6.59z"/></svg>

After

Width:  |  Height:  |  Size: 4.3 KiB