From d897ce565fdd609efcc8377d45f98dc616db3fce Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 25 Jul 2024 15:58:18 +0300 Subject: some styling updates --- src/css/akn.css | 19 ++++++++++++------- src/js/arching-kaos-modules-news.js | 6 +++++- 2 files changed, 17 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/css/akn.css b/src/css/akn.css index 0c548b2..b7a03f1 100644 --- a/src/css/akn.css +++ b/src/css/akn.css @@ -200,7 +200,10 @@ select { } article { - border: 2px dashed #672178; + border: none; + border-radius: 40px; + border-left: 2px dashed #672178; + border-right: 1px dashed rgba(255,255,255,0.2); padding: 24px; margin: 1vh 10vw; } @@ -347,17 +350,19 @@ button:hover { } article hr { - border-width: 1px; - border-color: #672178; - border-style: dotted; + border: none; + border-top-width: 1px; + border-top-color: #672178; + border-top-style: dotted; margin-left: 0vw; margin-right: 0vw; } hr { - border-width: 1px; - border-color: #7ef07e; - border-style: dashed; + border: none; + border-top-width: 1px; + border-top-color: #7ef07e; + border-top-style: dashed; margin-left: 10vw; margin-right: 10vw; } diff --git a/src/js/arching-kaos-modules-news.js b/src/js/arching-kaos-modules-news.js index 6bd3b60..a4371e6 100644 --- a/src/js/arching-kaos-modules-news.js +++ b/src/js/arching-kaos-modules-news.js @@ -5,8 +5,12 @@ function akModuleNews(zblockIPFSHash, zblockObject, blockObject, json){ var articleContainerElement = document.createElement("article"); articleContainerElement.id = 'news-'+zblockIPFSHash; if(json.title){ + var ubs = document.createElement("a"); + ubs.innerText = json.title; + ubs.href = '#news-'+zblockIPFSHash; + articleContainerElement.appendChild(ubs); var ahref = document.createElement("a"); - ahref.innerText = json.title +' [permalink]'; + ahref.innerText = '[permalink]'; ahref.target = '_blank'; ahref.href = 'https://news.arching-kaos.net/?from_zblock='+zblockIPFSHash; articleContainerElement.appendChild(ahref); -- cgit v1.2.3