From 3dcdccb162af2433b44a3d16e9229dcd8a0e54a5 Mon Sep 17 00:00:00 2001 From: infidel Date: Sat, 30 Dec 2023 18:38:38 +0700 Subject: [PATCH] Update style --- assets/css/template-styles.css | 52 +++++++++++++++-------- layouts/index.html | 33 +++++++-------- layouts/partials/header.html | 3 -- layouts/partials/nav.html | 3 +- static/images/logo.svg | 77 +++++++++++++++++++++++++++++++++- static/images/logo.svg.bak | 1 + 6 files changed, 130 insertions(+), 39 deletions(-) create mode 100644 static/images/logo.svg.bak diff --git a/assets/css/template-styles.css b/assets/css/template-styles.css index 49865a0..2b10664 100644 --- a/assets/css/template-styles.css +++ b/assets/css/template-styles.css @@ -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 */ diff --git a/layouts/index.html b/layouts/index.html index 274310d..c58b029 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,29 +6,28 @@ {{ .Content }} {{ partial "icon-links.html" . }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 286568a..ff751dd 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -26,8 +26,5 @@ {{ partial "nav.html" . }} - {{ if eq .Site.Params.moveFooterToHeader true }} - {{ partial "footer.html" . }} - {{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 491442e..e9ba717 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -9,7 +9,7 @@ {{ $current := . }} +{{ partial "footer.html" . }} diff --git a/static/images/logo.svg b/static/images/logo.svg index b0a4220..5cfa7cd 100644 --- a/static/images/logo.svg +++ b/static/images/logo.svg @@ -1 +1,76 @@ - + + + + + + + + + + + + diff --git a/static/images/logo.svg.bak b/static/images/logo.svg.bak new file mode 100644 index 0000000..b0a4220 --- /dev/null +++ b/static/images/logo.svg.bak @@ -0,0 +1 @@ +