diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-07-25 15:58:18 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-07-25 15:58:18 +0300 |
commit | d897ce565fdd609efcc8377d45f98dc616db3fce (patch) | |
tree | 3c6adbec928e2a41be65b4add45e30b3db294de8 | |
parent | 9bee90d9ffac4ae352befc9ec43803a50524871f (diff) | |
download | arching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.tar.gz arching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.tar.bz2 arching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.zip |
some styling updates
-rw-r--r-- | src/css/akn.css | 19 | ||||
-rw-r--r-- | src/js/arching-kaos-modules-news.js | 6 |
2 files changed, 17 insertions, 8 deletions
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); |