diff options
author | mms <michal@sapka.me> | 2024-04-12 23:12:40 +0200 |
---|---|---|
committer | mms <michal@sapka.me> | 2024-04-12 23:12:40 +0200 |
commit | 3fa9e3b890e3510363118fece51a3d8ab815b4e7 (patch) | |
tree | 91cde625dd5fbff4b7f47e3da8b3e17258197a00 | |
parent | 8dd36320e39cc2d47df7f8af920c32b497059b38 (diff) |
chore: simplify css:
-rw-r--r-- | assets/logos/logo-brain.svg | 1 | ||||
-rw-r--r-- | layouts/partials/header/header.html | 3 | ||||
-rw-r--r-- | static/style.css | 23 |
3 files changed, 17 insertions, 10 deletions
diff --git a/assets/logos/logo-brain.svg b/assets/logos/logo-brain.svg new file mode 100644 index 0000000..5da957b --- /dev/null +++ b/assets/logos/logo-brain.svg @@ -0,0 +1 @@ +<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="url(#pattern)" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M253.97 17.375c-103.018 0-188.532 105.858-188.532 238.813 0 55.877 15.12 106.972 40.28 147.437 42.148 18.042 95.884 27.67 149.75 27.72 51.97.047 103.873-8.805 145.438-25.658 25.932-40.785 41.563-92.667 41.563-149.5 0-132.954-85.484-238.812-188.5-238.812zm1.75 18.75c80.747 0 146.03 65.252 146.03 146s-65.283 146.03-146.03 146.03c-80.75 0-146-65.282-146-146.03s65.25-146 146-146zm-.345 19.563l-4.72 2.718-41.936 24.282 21.968 37.78c-5.85 2.394-11.28 5.59-16.157 9.47l-22-37.875-41.218 23.843-4.687 2.72.03 5.405.157 48.782h43.22c-.424 3.037-.657 6.13-.657 9.282 0 3.196.222 6.33.656 9.406h-43.155l.156 48.156v5.375l4.626 2.69 41.188 24 21.75-37.44c4.876 3.87 10.31 7.053 16.156 9.44L209 281.124l42.375 24.72 4.688 2.75 4.687-2.72 41.97-24.28-22-37.845c5.846-2.382 11.277-5.572 16.155-9.438l22.03 37.907 41.22-23.845 4.656-2.72v-5.405l-.155-48.75h-43.188c.435-3.076.688-6.21.688-9.406 0-3.152-.233-6.246-.656-9.28h43.092l-.156-48.22v-5.344l-4.625-2.688-41.155-24-21.72 37.344c-4.87-3.866-10.285-7.05-16.124-9.437l21.69-37.345-42.408-24.72-4.687-2.718zm-86.22 278.75c18.365 0 33.157 14.84 33.157 33.5s-14.792 33.53-33.156 33.53c-18.364 0-33.125-14.87-33.125-33.53 0-18.66 14.762-33.5 33.126-33.5zm165.532 0c18.365 0 33.125 14.84 33.125 33.5s-14.76 33.53-33.125 33.53c-18.364 0-33.156-14.87-33.156-33.53 0-18.66 14.793-33.5 33.158-33.5zm-208.687 97c11.517 13.484 24.36 25.147 38.22 34.687l-7.095-26.375c-10.68-2.355-21.077-5.124-31.125-8.313zm254.594 1.53c-8.895 2.675-18.044 5.03-27.406 7.063L346.75 464c12.174-8.752 23.526-19.176 33.844-31.03zm-203.03 10.75l9.592 35.782c11.34 5.465 23.184 9.572 35.406 12.188l-5.062-43.125c-13.51-1.048-26.87-2.656-39.938-4.844zm155.217.22c-10.152 1.668-20.503 2.99-30.936 3.968l-4.813 40.813c9.134-2.722 18.008-6.313 26.595-10.658l9.156-34.125zm-49.905 5.343c-9.106.492-18.26.76-27.406.75-6.36-.005-12.72-.128-19.064-.374l5.313 44.844c4.052.333 8.135.53 12.25.53 8.026 0 15.935-.656 23.718-1.905l5.187-43.844z" fill="#fff" fill-opacity="1"></path></g></svg>
\ No newline at end of file diff --git a/layouts/partials/header/header.html b/layouts/partials/header/header.html index c32cadd..08a3b24 100644 --- a/layouts/partials/header/header.html +++ b/layouts/partials/header/header.html @@ -15,6 +15,9 @@ {{ else if in .Page.Params.Categories "emacs" }} {{ $logo := resources.Get "logos/logo-emacs-white.svg" }} <img src="{{$logo.Permalink}}" class="emacslogo" alt="Emacs"> + {{ else if in .Page.Params.Categories "brainrot" }} + {{ $logo := resources.Get "logos/logo-brain.svg" }} + <img src="{{$logo.Permalink}}" class="emacslogo" alt="Emacs"> {{ end }} </div> diff --git a/static/style.css b/static/style.css index e788bbe..7d9ba5d 100644 --- a/static/style.css +++ b/static/style.css @@ -195,7 +195,8 @@ h1 { margin: 0; text-decoration: none; } -h1 a { +h1 a, +h2 a { text-decoration: none; color: inherit; } @@ -467,7 +468,7 @@ body.blog h5 { color: var(--blog-highlight-color); border-color: var(--blog-high body.blog h6 { color: var(--blog-highlight-color); border-color: var(--blog-highlight-color) } /* emacs_article_end */ -/* brain_rot_article_start */ +/* brain_rot_start */ :root { --brain-rot-highlight-color: #978b27; } @@ -478,22 +479,24 @@ body.blog h6 { color: var(--blog-highlight-color); border-color: var(--blog-high .brain-rot > header > .logo > img { position: absolute; bottom: 0px; - right: -2px; + right: -5px; transform: scale(0.9); } .brain-rot h1 { color: var(--brain-rot-highlight-color); } -.brain-rot h2 { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } -.brain-rot h2 a { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } -.brain-rot h3 { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } -.brain-rot h4 { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } -.brain-rot h5 { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } -.brain-rot h6 { color: var(--brain-rot-highlight-color); border-color: var(--brain-rot-highlight-color) } +.brain-rot h2, +.brain-rot h3, +.brain-rot h4, +.brain-rot h5, +.brain-rot h6 { + color: var(--brain-rot-highlight-color); + border-color: var(--brain-rot-highlight-color) +} .brain-rot .new { color: var(--brain-rot-highlight-color); } -/* brain_rot_article_end */ +/* brain_rot__end */ blockquote { border: 0; |