initial cleanup of the styling.
authordanix <danix@danix.xyz>
Fri, 27 Jan 2023 17:02:53 +0000 (18:02 +0100)
committerdanix <danix@danix.xyz>
Fri, 27 Jan 2023 17:02:53 +0000 (18:02 +0100)
assets/sass/main.scss
layouts/partials/footer-addition.html
layouts/partials/head-addition.html
layouts/partials/head.html
layouts/post/single-baseof.html

index 55e11c4..8a037a9 100644 (file)
@@ -8,8 +8,7 @@
 // MY COLOR DEFINITIONS
 @import "colors";
 // GOOGLE FONTS
-@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,600;1,400;1,600&display=swap');
-
+ @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,600;1,400;1,600&family=Red+Hat+Mono&display=swap');
 html {
        margin: 0;
        padding: 0;
@@ -76,8 +75,7 @@ html {
                                                                a {
                                                                        color: $dark-orange;
                                                                        &:hover {
-                                                                               animation-name: fa-bounce;
-                                                                               color: shade($dark-orange, 60%);
+                                                                               color: shade($dark-orange, 40%);
                                                                        }
                                                                }
                                                        }
@@ -91,4 +89,18 @@ html {
 .screen-reader-text,
 .hidden {
        @include hide-visually;
+}
+pre {
+       margin: 1em;
+       padding: 0.7em;
+       max-width: 90vw;
+       background-color: $light-grey;
+       color: $light-orange;
+       font-size: 1.4em;
+       font-family: 'Red Hat Mono', monospace;
+}
+div#backtotop {
+       a {
+               color: $light-orange;
+       }
 }
\ No newline at end of file
index d5da406..dce3e8c 100644 (file)
@@ -1,4 +1,4 @@
 <!-- here will appear eventual js code and other additions to the footer -->
 <div id="backtotop">
-       <a href="#top">back to top</a>
+       <a href="#top"><i class="fa-solid fa-chevron-up"></i><span class="screen-reader-text">back to top</span></a>
 </div>
index b298b5e..fdfaef9 100644 (file)
@@ -4,7 +4,11 @@
 {{ if isset .Params "featured_image" }}
 <style media="screen">
        header#masthead {
-               background-image: url( {{ $.Params.featured_image | urlize }} );
+               height: 60vh;
+               background-image: url( {{ $.Params.featured_image | absURL }} );
+               background-repeat: no-repeat;
+               background-position: center center;
+               background-attachment: fixed;
        }
 </style>
 {{ end }}
index 4c451a9..e100d06 100644 (file)
@@ -6,8 +6,6 @@
        {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }}
        {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options }}
 
-
-       <link rel="stylesheet" href="{{ "assets/css/dagreynix_fonts.css" | absURL }}">
        <link rel="stylesheet" href="{{ $style.RelPermalink }}">
        {{ partial "funcs/favicon.html" . }}
        <link rel="canonical" href="{{ .Permalink }}">
index 10afcb1..dbe68c7 100644 (file)
@@ -2,7 +2,7 @@
 <html lang="{{ $.Site.LanguageCode | default "en" }}">
        {{- partial "head.html" . -}}
        <body class="single-post blog">
-               <div id="blog-post">
+               <div id="page" class="blog-post">
                        <a id="top" class="skip-link screen-reader-text" href="#primary">skip to content</a>
                        {{- partial "header.html" . -}}
                        <div id="content" class="site-content">