{{title}}
- -{{title}}
+{{primary_tag.name}} • + +
++
Comments
+ +-
diff --git a/assets/css/fonts.css b/assets/css/fonts.css index 59fcb7e..4478529 100644 --- a/assets/css/fonts.css +++ b/assets/css/fonts.css @@ -41,9 +41,9 @@ @font-face { font-family: 'Roboto'; font-style: normal; - font-weight: 400; + font-weight: 700; font-display: swap; - src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } diff --git a/assets/css/screen.css b/assets/css/screen.css index 00a0e15..c390b1f 100755 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -54,6 +54,7 @@ html, body { color: white; width: 100%; background-color: #151515; + scroll-behavior: smooth; } a { @@ -117,7 +118,7 @@ img { color: #2d0670; /* - We need RGBA because Chrome forces it to be semi-trasparent, making white look like grey. + We need RGBA because Chrome forces it to be semi-transparent, making white look like grey. By setting it to 99.5% opacity, we can override this. 100% does not work, however. */ background: rgba(255, 255, 255, 0.995); @@ -134,6 +135,7 @@ Used to define how every page is displayed. */ main { + min-height: calc(100vh - 400px); display: block; box-sizing: border-box; width: 100%; @@ -405,8 +407,7 @@ Used to style the tag feed, seen in the custom-tags page. /* Style */ background-color: rgb(50, 50, 50); - border: 1px solid; - border-color: transparent; + border: 1px solid transparent; border-radius: 5px; box-shadow: 0 1px 1px black, 0 2px 4px black; transition: 0.5s; @@ -536,7 +537,7 @@ footer.mind-post-card-big_footer { } .mind-post-card-sidebar_meta { - font-family: 'Open Sans'; + font-family: 'Roboto', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 12px; @@ -632,12 +633,11 @@ instead of pages ".mind-page*". .mind-post-header div { /* Leave space for the floating arrow */ - margin: 0; - margin-bottom: 70px; + margin: 0 0 70px; } .mind-post-header p { - font-family: 'Open Sans'; + font-family: 'Roboto', sans-serif; font-weight: 700; text-transform: uppercase; color: rgb(200, 200, 200); @@ -703,7 +703,7 @@ img.mind-post_feature-image { margin: 0 20px 2em; } -.mind-post_content { +.mind-post_central-column { overflow: hidden; /* to hide, eg., overflowing code */ padding: 0 60px; text-align: justify; @@ -945,6 +945,28 @@ if an image has a description, class ".kg-card-hascaption" is applied to the con /* 5.4. Sidebar -------------------------------------------------- */ +#mind-post_sidebar-left { +} + +#mind-post_sidebar-left a { + color: white; + font-family: 'Open Sans', sans-serif; + font-weight: 300; + transition: 0.3s; +} +#mind-post_sidebar-left a:hover { + color: paleturquoise; +} + +#mind-post_sidebar-left h2 { + font-size: 18px; + padding: 10px 0; +} + +#mind-post_sidebar-left h3 { + font-size: 15px; + padding: 0 0 0 10px; +} .mind-post_sidebar { padding: 0 20px; @@ -1061,7 +1083,7 @@ div.mind-policy-popup { /* ANIMATED GRADIENT BACKGROUND */ @keyframes gradient { 0% { - background-position: 0% + background-position: 0 } 100% { background-position: 100% diff --git a/assets/js/get-headers-list.js b/assets/js/get-headers-list.js new file mode 100644 index 0000000..6de7f89 --- /dev/null +++ b/assets/js/get-headers-list.js @@ -0,0 +1,16 @@ +$(document).ready(function () { + const headers = $(".mind-post_content h2, .mind-post_content h3").toArray(); + const sidebar = $("#mind-post_sidebar-left"); + + for (let i = 0; i < headers.length; i++) { + const currentHeader = headers[i]; + const headerText = $(currentHeader).text(); + const headerId = $(currentHeader).attr("id"); + const headerType = $(currentHeader).prop("nodeName").toLowerCase(); + + //
{{primary_tag.name}} • + +
+